Clear Audit Log

Dear All,

How do I clear audit log in 2.22. I want to delete a particular event from tracker capture, it prevents me from deleting giving an error “The event could not be deleted because it contains an auditlog.”.

Thank you

···

Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any attachments may be legally privileged and confidential. If you are not an intended recipient, you are hereby notified that any dissemination, distribution, or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender and permanently delete the e-mail and any attachments immediately. You should not retain, copy or use this e-mail or any attachments for any purpose, nor disclose all or any part of the contents to any other person.

Hi Pamod,

when the event has an audit log there is currently no means of deleting it through the api(and therefore not from the apps). It can be done by first deleting entries in the database table trackedentitydatavalueaudit.

Full support is coming, hopefully in 2.23.

Markus

···

Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any attachments may be legally privileged and confidential. If you are not an intended recipient, you are hereby notified that any dissemination, distribution, or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender and permanently delete the e-mail and any attachments immediately. You should not retain, copy or use this e-mail or any attachments for any purpose, nor disclose all or any part of the contents to any other person.

Hi Pamod

Deleting audit logs kinda defeats the purpose of having them to start with, but it’s all logged in the table called ‘trackedentitydatavalueaudit’ in the database… so you could manually clean it up there.

···

On Thu, Mar 10, 2016 at 4:03 AM, Markus Bekken markus.bekken@gmail.com wrote:

Hi Pamod,
when the event has an audit log there is currently no means of deleting it through the api(and therefore not from the apps). It can be done by first deleting entries in the database table trackedentitydatavalueaudit.

Full support is coming, hopefully in 2.23.

Markus

  1. mar. 2016 kl. 18.41 skrev Pamod Amarakoon pamodm@gmail.com:

Dear All,

How do I clear audit log in 2.22. I want to delete a particular event from tracker capture, it prevents me from deleting giving an error “The event could not be deleted because it contains an auditlog.”.

Thank you


Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any attachments may be legally privileged and confidential. If you are not an intended recipient, you are hereby notified that any dissemination, distribution, or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender and permanently delete the e-mail and any attachments immediately. You should not retain, copy or use this e-mail or any attachments for any purpose, nor disclose all or any part of the contents to any other person.


Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Morten

Thank you Markus.

  1. Are there any criteria for an event to appear in audit log or all events appear in audit log. Any option of disabling it?

  2. Can the API support delete records from audit log as of now.

···

On Thu, 10 Mar 2016 02:33 Markus Bekken, markus.bekken@gmail.com wrote:

Hi Pamod,
when the event has an audit log there is currently no means of deleting it through the api(and therefore not from the apps). It can be done by first deleting entries in the database table trackedentitydatavalueaudit.

Full support is coming, hopefully in 2.23.

Markus

  1. mar. 2016 kl. 18.41 skrev Pamod Amarakoon pamodm@gmail.com:

Dear All,

How do I clear audit log in 2.22. I want to delete a particular event from tracker capture, it prevents me from deleting giving an error “The event could not be deleted because it contains an auditlog.”.

Thank you


Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any attachments may be legally privileged and confidential. If you are not an intended recipient, you are hereby notified that any dissemination, distribution, or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender and permanently delete the e-mail and any attachments immediately. You should not retain, copy or use this e-mail or any attachments for any purpose, nor disclose all or any part of the contents to any other person.


Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp