← Back to team overview

dhis2-devs team mailing list archive

Re: Clear Audit Log

 

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@xxxxxxxxx>
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
>
> 7. mar. 2016 kl. 18.41 skrev Pamod Amarakoon <pamodm@xxxxxxxxx>:
>
> 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@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Morten

References