Skip to content

Instantly share code, notes, and snippets.

@spawn-guy
Created January 30, 2014 12:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spawn-guy/8707510 to your computer and use it in GitHub Desktop.
Save spawn-guy/8707510 to your computer and use it in GitHub Desktop.
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
@spawn-guy
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment