Created
June 20, 2014 18:22
-
-
Save byllc/d8736b6b678960b3c4f7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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