Hello,
I have the same question as described in this post.
Since there hasnt been any replies I thought i would just open the same topic again.
I am currently using Logstash-7.3.1 with this configuration for all incoming data:
output {
if [type] {
pipeline { send_to => "%{[type]}" }
}
else {
pipeline { send_to => "default" }
}
}
This is supposed to work like The distributor pattern, but without me having to add a "else if " statement for each new pipeline. My goal is that every event with a field called "type", should send their data to the matching pipeline (virtual address = type). Also if there is no type field defined it should go to the default pipeline.
However i am getting the following error:
Attempted to send event to '%{[type]}' but that address was unavailable. Maybe the destination pipeline is down or stopping? Will Retry.
I appreciate any kind of feedback on this.
Thanks,
Lukas L.