Difference between revisions of "Docker logging"

From wikieduonline
Jump to navigation Jump to search
(Created page with "Docker support logging to format or different platforms, such as, json-file, syslog, journald, gelf, fluentd, awslogs, splunk, etwlogs, gcplogs and logentries.<ref>https://doc...")
 
Line 12: Line 12:
 
== See also ==
 
== See also ==
 
* {{Docker}}
 
* {{Docker}}
 +
 +
 +
 +
[[Category:Docker]]

Revision as of 11:36, 28 January 2020

Docker support logging to format or different platforms, such as, json-file, syslog, journald, gelf, fluentd, awslogs, splunk, etwlogs, gcplogs and logentries.[1]

docker logs CONTAINER_NAME_OR_ID (Docker Community Engine only support: local, json-file and journald)
docker logs CONTAINER_NAME_OR_ID 2>&1 | grep "STRING_TO_SEARCH" (You will need to redirect outputs to be able to grep output)[2]
See https://docs.docker.com/config/containers/logging/ for more information


See also

  • https://docs.docker.com/config/containers/logging/configure/
  • https://stackoverflow.com/questions/34724980/finding-a-string-in-docker-logs-of-container
  • Advertising: