Hello,
I'm trying to drop an event should there be either "Device Product" or "Device Vendor" in the [message] field.
This works fine:
if ("Device Vendor" in [message] or "Device Product" in [message]) {
drop { }
}
However, this does not (causes logstash to crash when launched):
if (["Device Vendor", "Device Product"] in [message]) {
drop { }
}
My questions:
- How can I easily support lists of strings I don't want in a field without and'ing or or'ing excessively?
- How can I format my config files on this forum so they're easily readable (sorry, new here and I can't seem to figure it out)?
Thank you.