I have source:
<source>
@type tail
tag service
path /tmp/l.log
format json
read_from_head true
</source>
I would like to make several filters on it and match
it to several outputs:
<source>
@type tail
tag service.pi2
path /tmp/out.log
format json
read_from_head true
</source>
<source>
@type tail
tag service.data
path /tmp/out.log
format json
read_from_head true
</source>
<filter service.data>
# some filtering
</filter>
<filter service.pi2>
# some filtering
</filter>
<match service.data>
@type file
path /tmp/out/data
</match>
<match service.pi2>
@type file
path /tmp/out/pi
</match>
So far, to make everything working I have to duplicate source
with different tags. Can I make it working from one source definition?