Skip to content

Instantly share code, notes, and snippets.

@byllc
Created June 20, 2014 18:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save byllc/d8736b6b678960b3c4f7 to your computer and use it in GitHub Desktop.
Save byllc/d8736b6b678960b3c4f7 to your computer and use it in GitHub Desktop.
@version: 3.2
@include 'modules.conf'
options {
use_dns(no);
# Disable stats.
stats_freq(0);
# Increase message size limit.
log_msg_size(16384);
perm(0600);
# When we get disconnected from the remote syslog server, try hard to reconnect.
time_reopen(1);
};
source s_local {
unix-dgram("/dev/log");
file("/proc/kmsg" program-override("kernel") flags(kernel));
internal();
@include 'pipe/'
};
destination d_local {
program("multilog s10485760 n4 xmessages /var/log");
};
destination d_bdry {
tcp("192.168.135.56" port(514));
};
log {
source(s_local);
destination(d_bdry);
};
source s_remote {
udp(ip("0.0.0.0") port(514));
};
destination d_local_remote {
program("multilog s10485760 n13 xcmessages /var/log");
};
log {
source(s_remote);
destination(d_bdry);
};
@include 'remote.conf'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment