Write your own Java filter plugin - graceful error handling

Write your own Java filter plugin - graceful error handling

Hello everyone,
I hope you are all doing great !

I've been writing my own filter logstash plugin in Java the past couple days and it was quite a learning experience :laughing:

I've been wondering, as I couldn't find much documentation, how could I gracefully handle the errors that could occur while filtering the data ?

I am making some calls to external services that may or may not be down and I'd like to put the event in the DLQ or at least be able to track and monitor errors.

The interface co.elastic.logstash.api.Filter we implement does not have a throws Exception signature and I have a long way to go before being an expert.

Thanks a lot for your help,

Max

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.