Created
January 30, 2014 12:37
-
-
Save spawn-guy/8707543 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 | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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