ufonduo / share-extras

Automatically exported from code.google.com/p/share-extras
0 stars 0 forks source link

Date range for Audit Dashlet #97

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

For Audit dashlet, can you share how to to limit the audit record within date 
range.

For example for login action, by default it will show all the records, but we 
need to see audit records ONLY from date 1 oct 2012 until 12 oct 2012.

I know there is "additional query parameter", but we don't find a reference how 
to use this.

Original issue reported on code.google.com by t...@softbless.com on 16 Oct 2012 at 12:38

GoogleCodeExporter commented 8 years ago

Original comment by will.abson on 16 Oct 2012 at 1:49

GoogleCodeExporter commented 8 years ago
This should be possible out of the box without any code modification. 
The additional query parameter you mention should enable to achieve what you 
want. 

It takes the 'raw' server-side audit query string. 
You could e.g. use the 'fromTime'  parameter to retrieve records from that 
specific date, provided you convert it to epoch milliseconds before. You could 
also filter from a specific event ID. 

See : 
- http://wiki.alfresco.com/wiki/Auditing_(from_V3.4)#Advanced_Query
- 
http://docs.alfresco.com/4.0/topic/com.alfresco.enterprise.doc/references/RESTfu
l-AuditQueryGet.html
- the server side audit webscript .desc.xml files for the possible parameters. 

I advise use to test out your query with curl, as described on the wiki page 
above,  before pasting it in the dashlet config. 

Original comment by romaingu...@gmail.com on 27 Oct 2012 at 10:31