Community Articles

Find and share helpful community-sourced technical articles.
Labels (1)
avatar

STATEMENT:

Ambari audit log file gets generated from Ambari ver. 2.4 - https://issues.apache.org/jira/browse/AMBARI-15241.

PROBLEM:

How can I enable ambari audit in Ambari ver. 2.2.2?

SOLUTION:

To get ambari 2.2.2 having the audit, follow up the below instruction. This would be to change log level to DEBUG for this PersistKeyValueService class.

- log into ambari node
- edit /etc/ambari-server/conf/log4j.properties
- set (or add) the following property:
log4j.logger.org.apache.ambari.server.api.services.PersistKeyValueService=DEBUG
- save the changes
- run: $ ambari-server restart
2,859 Views
0 Kudos
Comments
avatar
Contributor

Hi,I use Ambari ver.2.2.2 and do as you said , but I don't find the audit log.

avatar

@w hao

There is not a separate audit log. The details go to ambari-server one.

avatar
Contributor

13988-qq图片20170323103222.png

I find this message,but don't find like audit

avatar

There is no "audit" word. However, you should have some extra entries identifying users being logged in and doing some operations. The details in that file is not presented in the same way like for Ambari 2.4.