Files
ReillyProcentive bcf9cb9f31 [stable/sumologic-fluentd] Update sumologic fluentd collector to 2.4.2 (#16871)
* Update sumologic fluentd collector to 2.4.2

Signed-off-by: Reilly Brogan <Reilly@procentive.com>

* Ensure all fluentd config files end in newline

Signed-off-by: Reilly Brogan <Reilly@procentive.com>
2019-12-10 11:02:05 -08:00

20 lines
750 B
Plaintext

# 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/lib/docker.log
exclude_path "#{ENV['EXCLUDE_PATH']}"
pos_file /mnt/pos/ggcp-docker.log.pos
tag docker
enable_stat_watcher "#{ENV['ENABLE_STAT_WATCHER']}"
</source>
<filter docker.**>
@type kubernetes_sumologic
source_category docker
source_name k8s_docker
source_category_prefix "#{ENV['SOURCE_CATEGORY_PREFIX']}"
</filter>