-
Notifications
You must be signed in to change notification settings - Fork 3
/
fluent-test-tail.conf
34 lines (29 loc) · 1.02 KB
/
fluent-test-tail.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Have a source directive for each log file source file.
<source>
# Fluentd input tail plugin, will start reading from the tail of the log
@type tail
# Specify the log file path. This supports wild card character
path /var/lib/docker/containers/*/*json*.log
# This is recommended ?~@~S Fluentd will record the position it last read into this file. Change this folder according to your server
pos_file PATH /var/lib/docker/containers/*/docker-containerid.log.pos
# tag is used to correlate the directives. For example, source with corresponding filter and match directives.
tag dockerlog
format /(?<message>.*)/
#reads the fields from the log file in the specified format
</source>
#<source>
# @type prometheus
#</source>
#<source>
# @type prometheus_output_monitor
#</source>
#<source>
# @type prometheus_monitor
#</source>
#<source>
# @type prometheus_tail_monitor
#</source>
#for printing fluentd collected logs to stdout of host machine when you run fluentd
<match **>
@type stdout
</match>