Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @version:3.4
- options { chain_hostnames(off); flush_lines(0); threaded(no); };
- parser pattern_db {
- db_parser(
- file("/home/ale/httpd.xml")
- );
- };
- source httpd_error_log { file("/home/ale/logs/all.log" program_override("httpd") flags(no-parse) ); };
- #source src_local { unix-dgram("/dev/log"); file("/proc/kmsg" program-override("kernel") flags(kernel)); };
- destination d_json {
- file("/var/log/messages.json" template("$(format_json --scope nv-pairs --exclude MSG)") );
- };
- log { source(src_local); destination(d_json); };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement