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
container_commands:
01_edit-rsyslog-conf:
command: echo \$template LogentriesFormat,\"$LOGENTRIES_TOKEN %HOSTNAME% %syslogtag%%msg%\\n\" > /etc/rsyslog.d/logentries.conf
02_add-second-line:
command: echo '*.* @@api.logentries.com:10000;LogentriesFormat' >> /etc/rsyslog.d/logentries.conf
03_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 one is SLIGHTLY modified version of the .ebextension file provided by logentries.com.
FIXED: multiple occurrences of added lines after re-deployment -> dedicated conf file is now created and fetched by rsyslog
NEW: added a ebTalk configuration setting to not to hardcode the token inside the file

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