Skip to content

Instantly share code, notes, and snippets.

@jonuwz
Created August 1, 2019 11:49
Show Gist options
  • Save jonuwz/d8487da7fb303728729ca15db5904393 to your computer and use it in GitHub Desktop.
Save jonuwz/d8487da7fb303728729ca15db5904393 to your computer and use it in GitHub Desktop.
options {
flush_lines (0);
time_reopen (10);
log_fifo_size (1000);
chain_hostnames (off);
use_dns (no);
use_fqdn (no);
create_dirs (no);
keep_hostname (yes);
};
source s_sys {
unix-dgram("/dev/log");
udp(ip(0.0.0.0) port(514));
tcp(ip(0.0.0.0) port(514));
};
destination d_msg { file("/var/log/messages"); };
log { source(s_sys); destination(d_msg); };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment