This commit is contained in:
michaelcade
2022-03-28 10:32:52 +01:00
parent 719d23e3c4
commit ac9ddf3ffd
18 changed files with 553 additions and 5 deletions

View File

@ -0,0 +1,20 @@
<source>
@type tail
format json
read_from_head true
tag file-myapp.log
path /fluentd/log/files/example-log.log
pos_file /tmp/example-log.log.pos
</source>
<filter file-myapp.log>
@type record_transformer
<record>
host_param "#{Socket.gethostname}"
</record>
</filter>
# <match file-myapp.log>
# @type file
# path /output/file-myapp.log
# </match>