Created
June 14, 2016 01:34
-
-
Save Jammink2/d505c3524b1509385ae608f03baa6866 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Examples: | |
# time="2016-02-04T06:51:03.053580605Z" level=info msg="GET /containers/json" | |
# time="2016-02-04T07:53:57.505612354Z" level=error msg="HTTP Error" err="No such image: -f" statusCode=404 | |
<source> | |
type tail | |
format /^time="(?<time>[^)]*)" level=(?<severity>[^ ]*) msg="(?<message>[^"]*)"( err="(?<error>[^"]*)")?( statusCode=($<status_code>\d+))?/ | |
time_format %Y-%m-%dT%H:%M:%S.%NZ | |
path /var/log/docker.log | |
pos_file /var/log/gcp-docker.log.pos | |
tag docker | |
</source> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment