Custom Visualisation

Hello I hope this is the correct category for my question and I wonder if this is even realisable in elastic.

I want to create a custom visualisation for monitoring our interfaces as following:
With filebeat I read the .log files and in case there is a special keyword (i.e. Error) inside the Logs the Visualisation will turn to red and even a mail will be send. Once the Logfiles are archived and the interface is restartet this will turn to green again. Currently we use incinga to monitor on the same way. Of course if you have a better way I am open minded.

Maybe some kind of scripting is possible/necessary but I am quite new to Elastic.
Thank you very much for your help.

@mralladin have you checked Elastic Observability? In the Logs application, you can set up Alerts based in different conditions, triggering different types of actions including sending emails.

A screenshot taking data from packetbeat to email if there are any DNS requests to mail.google.com over the last five minutes, checking every minute

image

If you want to create your own visualization I guess you can combine Transforms to create an aggregation of the search for your keyword and then create a Dashboard or Canvas that presents the result of that aggregation. The tricky part (that Kibana Alerts handle) is how to handle the "restarting" logic.

Thx I will have a look. I was more used with this Kibana Dashboards, but I guess I am pretty limited there.