Configuring logging drivers
Follow the instructions in this topic to configure logging drivers, which can help you get information from running containers and services.
About this task
Every
container management tool offers several different logging drivers. Review the container management
tool of your choice, either Docker or Podman, for the logging drivers provided by it. The following
two drivers are available in both Docker and Podman:
json-file
- By default, the software containers in IBM Z Operational Log and Data Analytics are configured to use the simplest
possible logging driver -
json-file
. Thejson-file
logging driver caches container logs asJSON
internally. journald
- The
journald
logging driver sends container logs to thejournald
facility, which allows container logs to be viewed and managed along with all other application output logged viajournald
. This driver includes log rotation and log compression.