Skip to content

Instantly share code, notes, and snippets.

@magwas
Created March 27, 2015 12:57
Show Gist options
  • Save magwas/8505c913c6be2bbb4651 to your computer and use it in GitHub Desktop.
Save magwas/8505c913c6be2bbb4651 to your computer and use it in GitHub Desktop.
syslog-ng conf
@version: 3.5
@include "scl.conf"
# First, set some global options.
options { chain_hostnames(off); flush_lines(0); use_dns(no); use_fqdn(no);
owner("root"); group("adm"); perm(0640); stats_freq(0);
bad_hostname("^gconfd$");
};
source s_src {
system();
internal();
};
source s_net { udp(ip(127.0.0.1) port(514)); };
destination d_messages { file("/var/log/messages"); };
destination d_xconsole { pipe("/dev/xconsole"); };
log { source(s_src); source(s_net); destination(d_messages); };
log { source(s_src); source(s_net); destination(d_xconsole); };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment