03-22-2021 03:52 AM
I need to audit only the user logins, but i got more information than i need (see pic bellow).
Auditing information that i dont need can decrease performance of the server. How to stop alfresco from auditing the information that i dont need?
Here are my global properties that i added
audit.enabled=true
audit.alfresco-access.enabled=true
audit.alfresco-access.sub-actions.enabled=false
audit.filter.alfresco-access.default.enabled=true
audit.filter.alfresco-access.default.user=~System;~null;.*
03-23-2021 07:20 AM
1) Login audit via alfresco-access is unreliable / incomplete - it only supports local authentication with user name + password, not scenarios with SSO. If you only use local authentication, that may be fine with you. Otherwise you may need enhancements - I created a module some years ago specifically to track which users actually used the system via login (nothing else)
2) You would have to set up a filter for the "action" value to suppress any of the non-login events. E.g.
audit.filter.alfresco-access.transaction.action=~.*;null
might do the trick (never tested), as it should filter anything with a real value but allow anything without a value, e.g. the login event, which does not have an "action" associated with it.
03-23-2021 07:20 AM
1) Login audit via alfresco-access is unreliable / incomplete - it only supports local authentication with user name + password, not scenarios with SSO. If you only use local authentication, that may be fine with you. Otherwise you may need enhancements - I created a module some years ago specifically to track which users actually used the system via login (nothing else)
2) You would have to set up a filter for the "action" value to suppress any of the non-login events. E.g.
audit.filter.alfresco-access.transaction.action=~.*;null
might do the trick (never tested), as it should filter anything with a real value but allow anything without a value, e.g. the login event, which does not have an "action" associated with it.
03-23-2021 10:10 AM
Yes, the trick worked thanks
03-24-2021 07:03 AM
Hi @john2994
Great that it worked and thanks for accepting the solution - really helpful to other users with this issue.
Cheers,
Explore our Alfresco products with the links below. Use labels to filter content by product module.