Hi guys,
I would like logstash to use global variables defined in an external file and use them in each event elaboration for doing something like this:
external file:
field1 = [value1,value2]
meta logstash Language:
if the_value_of_an_event_field in field1
drop event
Moreover I would like my solution to be dynamic so, for example, I can extend field 1 to [value1, value2, value3] without stopping logstash and so on..
I tried different solutions (like reading external file via filebeat or via logstash input file, but they, of course, read it one time only; using grok and external path pattern but that's not working cause I don't want to match patterns..).
Any help or suggestion will be appreciated.
Thank you guys.
Andrea