
This works well on Amazon Linux 2 (Docker version 20.10.7). "SYSLOG_IDENTIFIER": "livedemo/aee81ff4d735", $ journalctl -since "5 min ago" -o json-pretty CONTAINER_NAME=livedemo States that SYSLOG_IDENTIFIER can be specified
#Docker syslog driver driver#
$ docker run -d -p 8000:80 -name livedemo ghcr.io/djaodjin/djaoapp/livedemo:ĭec 24 13:15:48 ip.compute.internal dockerd-current: 172.17.0.1 - "GET / HTTP/1.0" 200 17308 "-" "Mozilla/5.0"ĭocker journald logging driver documentation We will thus restart the container in detached mode without the -t we started the container with the -t command line option. Through an hex dumper, we notice Carriage Return (0x0d, '\r', CR) characters. compute.internal dockerd-current: īoth show a size followed by blob data which would mean journalctlīelieves the data is in binary form. $ journalctl -since "5 min ago" CONTAINER_NAME=livedemo $ journalctl -since "5 min ago" -l _SYSTEMD_UNIT=rvice We look at the log for the rvice and running The log-driver is already set to journald in this case. OPTIONS='-selinux-enabled -log-driver=journald -log-opt tag=""' We found the environment file where we can override options at /etc/sysconfig/docker.


First we look at the service configuration /usr/lib/systemd/system/rvice.
