Created
January 30, 2014 12:33
-
-
Save spawn-guy/8707510 to your computer and use it in GitHub Desktop.
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
option_settings: | |
- namespace: aws:elasticbeanstalk:application:environment | |
option_name: LOGENTRIES_TOKEN | |
value: token | |
files: | |
"/etc/rsyslog.d/logentries.conf" : | |
mode: "000644" | |
owner: root | |
group: root | |
content: | | |
$template LogentriesFormat,"LOGENTRIES_TOKEN %HOSTNAME% %syslogtag%%msg%\n" | |
*.* @@api.logentries.com:10000;LogentriesFormat | |
encoding: plain | |
container_commands: | |
00-sed_env: | |
command: sed -i "s/LOGENTRIES_TOKEN/${LOGENTRIES_TOKEN////\/}/g" /etc/rsyslog.d/logentries.conf | |
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
This is a Amazon Elastic Beanstalk extension to pipe all rsyslog data to logentries.com
a bit more proper version, than on website.
One can then modify the TOKEN via Amazon AWS webInterface. and it has no longer be hardcoded in the file