Skip to content

Instantly share code, notes, and snippets.

@spawn-guy
Created January 30, 2014 12:37
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/8707543 to your computer and use it in GitHub Desktop.
Save spawn-guy/8707543 to your computer and use it in GitHub Desktop.
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
Copy link
Author

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