Skip to content

Instantly share code, notes, and snippets.

@yegorg
Created November 12, 2015 02:06
Show Gist options
  • Save yegorg/929eeac4346bd3557dab to your computer and use it in GitHub Desktop.
Save yegorg/929eeac4346bd3557dab to your computer and use it in GitHub Desktop.
enable remote logging / server
$modload imtcp
$InputTCPServerRun 10514
# $ActionQueueType LinkedList # use asynchronous processing
# $ActionQueueFileName srvrfwd # set file name, also enables disk mode
# $ActionResumeRetryCount -1 # infinite retries on insert failure
# $ActionQueueSaveOnShutdown on # save in-memory data if rsyslog shuts down
# *.notice @@logserver.local:10514
auth,authpriv.* -/var/log/auth.log
kern.notice -/var/log/kern.log
mail.* -/var/log/mail.log
*.=debug;\
auth,authpriv.none;\
news.none;mail.none -/var/log/debug
*.=info;*.=notice;*.=warn;\
cron,daemon.none;\
mail,news.none -/var/log/messages
*.notice -/var/log/syslog
*.emerg :omusrmsg:*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment