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.
For Kafka 0.8.1.x, the following jar files should be put into $HIVE_DIR/lib
In consumer side, some deserializer should be there to parse normalized audit records