Skip to content

Instantly share code, notes, and snippets.

@cparedes
Created January 19, 2011 19:01
Show Gist options
  • Save cparedes/786640 to your computer and use it in GitHub Desktop.
Save cparedes/786640 to your computer and use it in GitHub Desktop.
Relevant portions of the syslog-ng.conf file
...
source s_sys {
file ("/proc/kmsg" log_prefix("kernel: "));
unix-stream ("/dev/log");
internal();
# udp(ip(0.0.0.0) port(514));
};
...
destination d_chef { file("/var/log/chef.log"); };
...
filter f_chef { program("chef*"); };
...
log { source(s_sys); filter(f_chef); destination(d_chef); };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment