Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

@spawn-guy spawn-guy commented Jan 30, 2014

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