Skip to content

Instantly share code, notes, and snippets.

@markuskont
Created September 15, 2016 10:59
Show Gist options
  • Save markuskont/14d5642a82130e5016f8019a746d8b6e to your computer and use it in GitHub Desktop.
Save markuskont/14d5642a82130e5016f8019a746d8b6e to your computer and use it in GitHub Desktop.
destination d_auditd {
file("/var/log/auditd.json" template("$(format-json .auditd.*)\n"));
};
parser p_auditd {
linux-audit-parser (prefix(".auditd."));
};
filter f_auditd {program("audispd")};
#log {
# source(s_remote_bsd);
# source(s_remote_ietf);
# source(s_remote_tcp);
# source(s_src);
# filter(f_auditd);
# parser(p_auditd);
# destination(d_auditd);
#};
@markuskont
Copy link
Author

Process Auditd syslog messages into JSON. Tested on syslog-ng 3.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment