This is the curl request I am using to clear audit entries:

curl -u admin:admin -X POST "http://localhost:8080/alfresco/service/api/audit/clear/{AuditExampleLogin1}?fromTime={2014-03-07T17:26:51.325+05:30}&toTime={2014-03-10T10:01:33.970+05:30}"

but this deletes all the audit entries, I can see that when I do

curl -u admin:admin "http://localhost:8080/alfresco/service/api/audit/query/AuditExampleLogin1?" 

And the audit clear curl request does not delete from the database. Why and which entries does it delete?

有帮助吗?

解决方案

There is an open issue regarding clearing audit data from database. Currently, the audit clear request "only" clears the link between the data fragments that make up an audit entry (alf_audit_* tables), so it can no longer be found but the data still exists in the database (alf_prop_* tables). See https://issues.alfresco.com/jira/browse/MNT-10067 for the open issue.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top