Skip to content

Instantly share code, notes, and snippets.

View u2mejc's full-sized avatar

Justin Clark u2mejc

View GitHub Profile
@u2mejc
u2mejc / 03_papertrail_hostname.config
Created October 8, 2015 18:15
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