cancel
Showing results for 
Search instead for 
Did you mean: 

Audit Filter

g_rathod
Star Contributor
Star Contributor
Hi friends,

I am using alfresco enterprise 4.0 share.

Is there any way I can audit and show from and to values?
Currently I am using alfresco-share-extras audit dashlet for alfresco share 4.0 but it shows log values in unstructured manner.
Also I am facing problem in audit dashlet will only show 100 entries, how to make it unlimited?

I want to filter property like below :

From :  email : abc@yahoo.com   To: email : xyz@yahoo.com

any idea??
6 REPLIES 6

afaust
Legendary Innovator
Legendary Innovator
Hello,

suprisingly, there were two similar questions at the same time. Please observe the answer in this thread.

Regards
Axel

g_rathod
Star Contributor
Star Contributor
Hi Axel,

That is real surprise for similar question in near time range,
Actually I need answer to filter sub-actions FROM and TO for my custom properties / aspect.
I can get FROM and TO for content property changes but I can not get audit log for my user content model changes.

e.g. I have added one more property called PIN while user creation in share interface. When admin change this property it will not showing me
       PIN changes FROM  111 to 222.

I am getting following kind of log

[ action : UPDATE CONTENT ]
[ user : admin ]
[ path : /app:company_home/st:sites/cm:surf-config/cm:components/cm:page.component-2-1.user~admin~dashboard.xml ]
[ from : {{http://www.alfresco.org/model/content/1.0}modified=Fri May 18 12:52:26 IST 2012, {http://www.alfresco.org/model/content/1.0}content=contentUrl=store://2012/5/18/12/52/1c17a826-9e29-4...} ]
[ to : {{http://www.alfresco.org/model/content/1.0}modified=Fri May 18 14:15:43 IST 2012, {http://www.alfresco.org/model/content/1.0}content=contentUrl=store://2012/5/18/14/15/88b1516b-c4cf-4...} ]
[ sub-actions : updateContent updateNodeProperties ]
[ type : cm:content ]

Let me know what filter I have to set to get my custom property UPDATE changes?

afaust
Legendary Innovator
Legendary Innovator
Hello,

I assume your PIN property is set on a content item somewhere in the document library / data list view - if so, it is understandable that the log provided does not show the property change, as it is from the admin dashboard configuration. If you intend to display the change of a property within the Surf component XML, then you are out of luck with the standard audit features, as auditing does not extract changes from content - you would have to implement your own data generators / extractors to be able to do that.

Regards
Axel

g_rathod
Star Contributor
Star Contributor
Hi Axel,

Is it possible I can audit my custom property??
I have tried in alfresco-global.properties with following :
 audit.filter.alfresco-access.default.type=cm:folder;cm:content;st:sites;cm:person;clm:supplier

Whenever I tried to modify content it always works well with its metadata changes and shows me log(updateNodeProperties) :
[ action : updateNodeProperties ]
[ user : admin ]
[ path : /app:company_home/st:sites/cm:clm/cm:documentLibrary/cm:Contracts/cm:Drafts/http://www.alfresco.org/model/content/1.0/cm:sample.txt ]
[ from : {{http://www.alfresco.org/model/content/1.0}modified=Mon May 21 17:18:13 IST 2012, {http://www.alfresco.org/model/content/1.0}description={en=ABC}} ]
[ to : {{http://www.alfresco.org/model/content/1.0}modified=Mon May 21 17:18:25 IST 2012, {http://www.alfresco.org/model/content/1.0}description={en=XYZ}} ]
[ sub-actions : updateNodeProperties ]
[ type : cm:content ]

but whenever I tried to change any userFirstName or lastName it only shows me UPDATE CONTENT :
[ action : UPDATE CONTENT ]
[ user : admin ]
[ path : /app:company_home/st:sites/cm:clm/cm:surf-config/cm:components/cm:page.component-2-1.site~clm~dashboard.xml ]
[ from : {{http://www.alfresco.org/model/content/1.0}modified=Mon May 21 17:07:05 IST 2012, {http://www.alfresco.org/model/content/1.0}content=contentUrl=store://2012/5/21/17/7/eed181dc-da46-4b...} ]
[ to : {{http://www.alfresco.org/model/content/1.0}modified=Mon May 21 17:18:36 IST 2012, {http://www.alfresco.org/model/content/1.0}content=contentUrl=store://2012/5/21/17/18/a827fbac-4031-4...} ]
[ sub-actions : updateContent updateNodeProperties ]
[ type : cm:content ]

I could not exactly findout the reason why this happens. It should display changes for cmSmiley Tongueerson as its out of box property I am changing.

g_rathod
Star Contributor
Star Contributor
Hello Friends,

Finally I resolved after much debugging, as alfresco wiki is not much more explanatory for audit topic.
You can find solution here http://alfrescocms.blogspot.in/2012/05/auditing-custom-content-types.html

power
Champ in-the-making
Champ in-the-making
Hi Ghanshyam,

We had similar questions, thanks a lot for your link, it resolved my query.

Thanks a lot.