Hey,
i try to configure a 2nd output for "special" Data in logstash.
First a tagged the special data in a filter:
grok {
match => { "source" => "%{GREEDYDATA}/specialservice/%{GREEDYDATA}_access.log" }
add_field => { "special_output" => "YES" }
}
But now i get in trouble, by working with conditions in the output area:
if "true" == "true" {
if "YES" in [special_output] {
syslog {
host => "192.168.0.100"
facility => "log audit"
port => "20750"
severity => "informational"
}
}
}
Can this even work? In my syslog-ng Backend there are not Data. In mein ElasticSearch DB i can sea the extra field "special_output" : "YES", but it thems that logstash is never using my syslog backend...
Any Ideas?