--- title: "Audit Parser" date: 2018-12-17 --- Audit Parser tool can be used for querying the ozone audit logs. This tool creates a sqllite database at the specified path. If the database already exists, it will avoid creating a database. The database contains only one table called `audit` defined as: CREATE TABLE IF NOT EXISTS audit ( datetime text, level varchar(7), logger varchar(7), user text, ip text, op text, params text, result varchar(7), exception text, UNIQUE(datetime,level,logger,user,ip,op,params,result)) Usage: {{< highlight bash >}} ozone auditparser [COMMAND] [PARAM] {{< /highlight >}} To load an audit log to database: {{< highlight bash >}} ozone auditparser load {{< /highlight >}} Load command creates the audit table described above. To run a custom read-only query: {{< highlight bash >}} ozone auditparser query