mirror of
https://github.com/MichaelCade/90DaysOfDevOps.git
synced 2025-07-31 15:21:03 +07:00
Day 81
This commit is contained in:
@ -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>
|
Reference in New Issue
Block a user