Hi,
I am going to route source with tag a.b.c.d.e to some output file destinations. Messages will be route following rules below
- Tag and sub-tag 'a' will be store to out1
- Tag and sub-tag 'a.b' will be store to out2
- Only tag 'a.b' will be store to out2
- Only tag 'a.b.c' will be store to out3
- Tag and sub-tag 'a.b.c.d' will be store to out4
So i tried to create match filters
<match a.**>
type file
append true
path /tmp/f/test/out1.log
</match>
<match a.b.**>
type file
append true
path /tmp/f/test/out2.log
</match>
<match a.b>
type file
append true
path /tmp/f/test/out3.log
</match>
<match a.b.c>
type file
append true
path /tmp/f/test/out4.log
</match>
<match a.b.c.d.**>
type file
append true
path /tmp/f/test/out5.log
</match>
==================
Unfortunately, it didn't work as expected. Message just store on file /tmp/f/test/out1.log
I read about out_copy type, but I don't know how to impement for my case.
Is any idea how to solve it?
--Rizal