Skip to content

Instantly share code, notes, and snippets.

@ajbrown
Created September 13, 2014 22:47
Show Gist options
  • Select an option

  • Save ajbrown/17e05ed497a35b3880fb to your computer and use it in GitHub Desktop.

Select an option

Save ajbrown/17e05ed497a35b3880fb to your computer and use it in GitHub Desktop.
Add PaperTrail syslog monitoring to ElasticBeanstalk deployed applications.
# Make sure to use the correct hostname and port !
# Your application should be logging to a valid syslog facility.
#
files:
/etc/rsyslog.d/papertrail.conf:
mode: 000400
owner: root
group: root
content: |
*.* @logs2.papertrailapp.com:9999"
$ModLoad imudp
$UDPServerRun 514
$ModLoad imtcp
$InputTCPServerRun 514
$EscapeControlCharactersOnReceive off
container_commands:
01-restart-syslog:
command: service rsyslog restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment