Skip to content

Splitting from one input to two outputs #9680

Closed Answered by CobraCo2000
CobraCo2000 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi patrick,

thanks for your support. With the router, I can only create multiple imports on one output. But with the rewrite_tag I can achieve exactly what I need.
My configuration now looks like this und works perfect.

[INPUT]
Name tail
Path /temp/logfile.log
Parser json
Tag logfile

[FILTER]
Name 		  rewrite_tag
Match 		  *
Rule          $name \btest1\b  from.one.out false
Rule          $name ^(?!.*\btest1\b).+$  from.trash.out false
Emitter_Name  re_emitted

[OUTPUT]
Name stdout
Match one.*

[OUTPUT]
Name stdout
Match trash.*

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by CobraCo2000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants