Skip to content

Instantly share code, notes, and snippets.

@jdotpz
Created June 15, 2015 13:56
Show Gist options
  • Save jdotpz/b6b87de5468488fc6e3c to your computer and use it in GitHub Desktop.
Save jdotpz/b6b87de5468488fc6e3c to your computer and use it in GitHub Desktop.
rsyslog remote shipping
#not set by default, needed to spool queues to disk
$WorkDirectory /tmp
$RepeatedMsgReduction off
# put forward action on dedicated queue so it doesn't block writing logs
# locally to disk if the server can't be contacted
$ActionQueueType LinkedList
$ActionQueueFileName rsyslog-forward-local.q
$ActionQueueTimeoutEnqueue 10 #ms
$ActionQueueSize 10000
$ActionResumeRetryCount -1
$ActionQueueSaveOnShutdown on
# This is only for shipping using tcp
# *.* @@remotelogserver:syslogport
# This is only for shipping using udp (recommended)
# *.* @remotelogserver:syslogport
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment