Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 04-16-2016 02:36 AM
where do the audit log files get posted when I enable audit to log4j on ranger using xasecure.audit.log4j.is.enabled=true? I know there is a property
| xasecure.audit.hdfs.config.destination.directroy |
however that is when i have logging to hdfs enabled.
Created 04-16-2016 07:11 AM
Hi @Sunille Manjee, if you enable audit to log4j then you decide by yourself where to send audits by configuring log4appender properties.However, I'm not sure how exactly to do that: This document talks abut "Logging using Log4j" by configuring log4j.logger.xaaudit property. And there is also an example of Ranger-4 log4j audit to Kafka here, which uses slightly different property. No mention of this in docs for latest versions of Ranger, but I guess it can be done somehow.
Created 04-16-2016 07:11 AM
Hi @Sunille Manjee, if you enable audit to log4j then you decide by yourself where to send audits by configuring log4appender properties.However, I'm not sure how exactly to do that: This document talks abut "Logging using Log4j" by configuring log4j.logger.xaaudit property. And there is also an example of Ranger-4 log4j audit to Kafka here, which uses slightly different property. No mention of this in docs for latest versions of Ranger, but I guess it can be done somehow.
Created 04-19-2016 12:24 AM
@Predrag Minovic I have seen that link and it is helpful. I found more info here as well on log4j appender ranger hive.