Skip to content

Instantly share code, notes, and snippets.

@tadasv
Created May 15, 2013 21:10
Show Gist options
  • Save tadasv/5587409 to your computer and use it in GitHub Desktop.
Save tadasv/5587409 to your computer and use it in GitHub Desktop.
rsyslog 4.x config for monitoring file contents and pushing them to loggly/papertrail
$InputFileName file.log
$InputFileTag file_tag:
$InputFileStateFile /var/spool/rsyslog/file.log_spool
$InputFileFacility local7
$InputFileMaxLinesAtOnce 100000
$InputRunFileMonitor
#
# Include all config files in /etc/rsyslog.d/
#
$IncludeConfig /etc/rsyslog.d/*.conf
*.* @logs.papertrailapp.com:xxxx
*.* @@logs.loggly.com:xxxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment