Is there any way to fetch audit logs?

I am using ElasticSearch for audit logging. I have set all the configurations required in nuxeo.conf. How can I fetch audit logs for a period of time and for group creation or permission and other activities?

0 votes

2 answers

1643 views

ANSWER



Hello,

If you need to get the audit trail records for a document, you have to use our REST API adapter: /api/v1/id/{docId}/@audit. You can have a look to the page provider we're using: https://explorer.nuxeo.com/nuxeo/site/distribution/Nuxeo%20Platform%20LTS%202019-10.10/viewComponent/org.nuxeo.ecm.platform.audit.PageProviderservice.es.contrib . If you need more detailed information on audit, please refer to the Audit Documentation Page

Regards

1 votes



Hello,

I think it depends on how are you going to access those logs, and the purpose of doing it. For example, if you just want to access with administrations purpose, you can check them directly in ElasticSearch using the “Head” plugin for Google Chrome browser: https://chrome.google.com/webstore/detail/elasticsearch-head/ffmkiejjmecolpfloofpjologoblkegm](https://chrome.google.com/webstore/detail/elasticsearch-head/ffmkiejjmecolpfloofpjologoblkegm).

If you want to work with Audits inside your nuxeo instance, you can use the “Audit API” for it: https://doc.nuxeo.com/nxdoc/audit/#querying-the-audit-data-store

And if you want to manage all the audits, you can even use Kibana, connecting it to your ElasticSearch instance. It is similar as the “ElasticSearch Head” plugin, but with a lot of advanced features.

Regards.

1 votes