Hi,
Im trying out pipeline-to-pipeline connections (https://www.elastic.co/guide/en/logstash/current/pipeline-to-pipeline.html), and apparently the output filter does not recognize existing fields of an event as a parameter.
# if fields.docType exists, send to pipeline "{fields.docType}", else send to pipeline "default"
output {
if [fields][docType] {
pipeline { send_to => "%{[fields][docType]}" }
} else {
pipeline { send_to => default }
}
}
It still goes to the "default" pipeline even fields.docType(="RSA SecOps") exists in the event, and pipeline "RSA SecOps" exists in Logstash.
Please advise if that is even feasible to have dynamic parameter for "send_to" param in pipeline filter. Thanks.
Perry