Created
September 13, 2014 22:47
-
-
Save ajbrown/17e05ed497a35b3880fb to your computer and use it in GitHub Desktop.
Add PaperTrail syslog monitoring to ElasticBeanstalk deployed applications.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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