Skip to content

Instantly share code, notes, and snippets.

@int128
Created November 19, 2012 04:38
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 int128/4109007 to your computer and use it in GitHub Desktop.
Save int128/4109007 to your computer and use it in GitHub Desktop.
syslog reception config for rsyslog
#rsyslog v3 config file
# Provides UDP syslog reception
$ModLoad imudp.so
$UDPServerRun 514
$AllowedSender UDP, 127.0.0.1, 192.168.0.0/24
# Provides TCP syslog reception
#$ModLoad imtcp.so
#$InputTCPServerRun 514
#### RULES ####
:fromhost-ip, startswith, "192.168.0." /var/log/remote.log
& ~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment