Skip to content

Instantly share code, notes, and snippets.

@u2mejc
Created October 8, 2015 18:15
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 u2mejc/f9187e2a15c7e85a5135 to your computer and use it in GitHub Desktop.
Save u2mejc/f9187e2a15c7e85a5135 to your computer and use it in GitHub Desktop.
Running Papertrail in Elastic Beanstalk with multiple instances (hosts)
# 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