Can Someone help with writing a java-script processor in a filebeat configuration file. I want to index all documents of a JSON response from a URL endpoint which do not have a field value "name" equals to 'PG3' in it. ie. (It should index documents with "name" field with any value execpt PG3).
Hi @saxena_shk7,
Do you have an existing configuration that you are working with? Which version of Filebeat are you using?
I don't believe you need to use a JavaScript processor for this. Have you tried using a HTTP endpoint input to pull the messages, and then process the messages using a drop processor with an equals condition similar to name: "PG3"
?
Let me know if there's a specific reason why you need a JavaScript processor, or have questions about the above approach.