alexus
February 20, 2018, 9:38pm
1
I'm trying to follow Accessing Event Data and Fields in the Configuration | Logstash Reference [6.2] | Elastic and I have a question:
output:
output {
if [beats_input_raw_event] in [tags] or [beats_input_codec_plain_applied] in [tags] {
...
is there a way to configure "if tags exists" somehow? instead of specifying each tags?
Please advise.
if [beats_input_raw_event] in [tags] or [beats_input_codec_plain_applied] in [tags] {
That doesn't mean what you think it means. Do this instead:
if "beats_input_raw_event" in [tags] or "beats_input_codec_plain_applied" in [tags] {
is there a way to configure "if tags exists" somehow? instead of specifying each tags?
You mean "does the event have any tags at all"? This should work:
if [tags] != [] {
system
(system)
Closed
March 21, 2018, 3:36pm
4
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.