logging in docker
TRANSCRIPT
Logging en DockerJuan Wajnerman, Santiago PalladinoManas Technology Solutions
Scenarios
App logs to local file App logs to stdout/stderr
Logging inside container
AccessRotation
Keep logs in host directory mounted as data volume
Docker manageddocker logs
Logging to stdout/stderr
Configure docker log opts per container or daemon
Docker logging drivers
● json-file● syslog● journald● gelf● fluentd● awslogs
ELK logging stack
Lograge: formatted log output in Rails appsGELF: log driver for all docker containersLogstash: logs processingElasticSearch: logs storageKibana/Poirot: logs visualisation and reports
How it looks like
Application
ContainerDocker
Daemon
Logstash ElasticSearch
Kibana
Application
Container
Poirot
STDOUT
STDOUT
GELF POST
QUERY
DemoShow me the code!
Thanks!Juan WajnermanSantiago Palladino
@waj@smpalladino
@manastech