Advertisement
Guest User

syslog-ng

a guest
Nov 22nd, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. options {
  2. chain_hostnames(off);
  3. sync(0);
  4.  
  5. # The default action of syslog-ng 1.6.0 is to log a STATS line
  6. # to the file every 10 minutes. That's pretty ugly after a while.
  7. # Change it to every 12 hours so you get a nice daily update of
  8. # how many messages syslog-ng missed (0).
  9. stats(0);
  10. };
  11.  
  12. source src { unix-stream("/dev/log"); internal(); };
  13. source kernel { file("/proc/kmsg" log_prefix("kernel: ")); };
  14.  
  15. destination messages { file("/var/log/messages"); };
  16.  
  17. log {
  18. source(src);
  19. source(kernel);
  20. destination(messages);
  21. };
  22. ~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement