github.com/containers/podman/v5@v5.1.0-rc1/docs/source/markdown/options/log-opt.md (about) 1 ####> This option file is used in: 2 ####> podman create, kube play, run 3 ####> If file is edited, make sure the changes 4 ####> are applicable to all of those. 5 #### **--log-opt**=*name=value* 6 7 Logging driver specific options. 8 9 Set custom logging configuration. The following *name*s are supported: 10 11 **path**: specify a path to the log file 12 (e.g. **--log-opt path=/var/log/container/mycontainer.json**); 13 14 **max-size**: specify a max size of the log file 15 (e.g. **--log-opt max-size=10mb**); 16 17 **tag**: specify a custom log tag for the container 18 (e.g. **--log-opt tag="{{.ImageName}}"**. 19 It supports the same keys as **podman inspect --format**. 20 This option is currently supported only by the **journald** log driver.