1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/daemon/logger
Lars Kellogg-Stedman 869ecba652 journald log driver: use CONTAINER_ID field for container id
This patch modifies the journald log driver to store the container ID in
a field named CONTAINER_ID, rather than (ab)using the MESSAGE_ID field.
Additionally, this adds the CONTAINER_ID_FULL field containing the
complete container ID and CONTAINER_NAME, containing the container name.

When using the journald log driver, this permits you to see log messages
from a particular container like this:

    # journalctl CONTAINER_ID=a9238443e193

Example output from "journalctl -o verbose" includes the following:

    CONTAINER_ID=27aae7361e67
    CONTAINER_ID_FULL=27aae7361e67e2b4d3864280acd2b80e78daf8ec73786d8b68f3afeeaabbd4c4
    CONTAINER_NAME=web

Closes: #12864
Signed-off-by: Lars Kellogg-Stedman <lars@redhat.com>
2015-04-30 10:42:27 -04:00
..
journald journald log driver: use CONTAINER_ID field for container id 2015-04-30 10:42:27 -04:00
jsonfilelog daemon/logger/jsonfilelog: avoid some allocations 2015-04-02 18:33:23 +03:00
syslog Change syslog format and facility 2015-04-15 12:46:43 -07:00
copier.go Wait for copier finishing it's work before closing logger 2015-03-18 13:48:01 -07:00
copier_test.go Wait for copier finishing it's work before closing logger 2015-03-18 13:48:01 -07:00
logger.go Interface Logger for logging drivers 2015-03-13 11:46:59 -07:00