Created
October 8, 2015 18:15
-
-
Save u2mejc/f9187e2a15c7e85a5135 to your computer and use it in GitHub Desktop.
Running Papertrail in Elastic Beanstalk with multiple instances (hosts)
This file contains 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
# Add an Environment Property of PAPERTRAIL_HOSTNAME and set the value to nextkillerapp-$HOSTNAME | |
container_commands: | |
pt_hostname: | |
command: "eval export PAPERTRAIL_HOSTNAME=$PAPERTRAIL_HOSTNAME && sed -i \"s/.*hostname:.*/hostname: $PAPERTRAIL_HOSTNAME/\" /etc/log_files.yml" | |
test: test -e /etc/log_files.yml | |
ignoreErrors: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment