Skip to content

Instantly share code, notes, and snippets.

@SlootSantos
Created June 29, 2020 13:27
Show Gist options
  • Save SlootSantos/64bd6a65d91325d968f1ba4de698ed1a to your computer and use it in GitHub Desktop.
Save SlootSantos/64bd6a65d91325d968f1ba4de698ed1a to your computer and use it in GitHub Desktop.
### BEGIN .ebextensions/logs.config
files:
"/etc/awslogs/config/stdout.conf":
mode: "000755"
owner: root
group: root
content: |
[docker-stdout]
log_group_name=/aws/elasticbeanstalk/StreamingTest-env/docker-stdout
log_stream_name={instance_id}
file=/var/log/containers/nginx-*-stdouterr.log
commands:
"00_restart_awslogs":
command: service awslogs restart
### END .ebextensions/logs.config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment