Also available as:
loading table of contents...

Configuring Storm Plugin Audit Log to File

When the Storm Ranger plugin sends audit logs to a file via Log4jAuditProvider, a specific configuration must be used.

  <RollingFile name="STORMAUDIT"
            <SizeBasedTriggeringPolicy size="100 MB"/> <!-- Or every 100 MB -->
        <DefaultRolloverStrategy max="9"/>

      <Logger name="xaaudit" level="info">
        <AppenderRef ref="STORMAUDIT"/>

Storm uses log4j2 format for log4j configurations. In log4j.xml, the name of the logger (in this case, “xaaudit”) is needed and not the whole class name with logger name; this is handled by the <Logger> tag.