Advertisement
Guest User

syslog-ng.conf

a guest
Oct 17th, 2013
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. @version:3.4
  2.  
  3. options { chain_hostnames(off); flush_lines(0); threaded(no); };
  4.  
  5. parser pattern_db {
  6. db_parser(
  7. file("/home/ale/httpd.xml")
  8. );
  9. };
  10. source httpd_error_log { file("/home/ale/logs/all.log" program_override("httpd") flags(no-parse) ); };
  11.  
  12. #source src_local { unix-dgram("/dev/log"); file("/proc/kmsg" program-override("kernel") flags(kernel)); };
  13.  
  14. destination d_json {
  15. file("/var/log/messages.json" template("$(format_json --scope nv-pairs --exclude MSG)") );
  16. };
  17.  
  18. log { source(src_local); destination(d_json); };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement