Page tree
Skip to end of metadata
Go to start of metadata

Apache Ranger by design provides configurable audits destinations. One of destinations is slf4j logging interface, which means audits can be streamed into any logging framework that is bound to slf4j. With this feature, Ranger can support streaming audits into popular messaging bus e.g. Kafka to provide realtime data feeds for various monitoring system.

Enabling audits logging is as simple as adding some configurations in logging properties files and adding a few kafka libraries.

Here is an example of configuring Hive logging properties file to enable sending audit events to Kafka messaging bus. 

hive-log4j.properties

For Kafka 0.8.1.x, the following jar files should be put into $HIVE_DIR/lib

kafka libraries

 

In consumer side, some deserializer should be there to parse normalized audit records

hive audit parser
  • No labels