On 2020-09-24 10:27, Danny de Waard wrote:
Hi All,

I am looking for a good way to search and count for texts in logfiles.
For instance i want to count ERROR, WARN, INFO words in a logfile
But also i want to be able to count all the different response codes
of a acces or ssl-request logfile.
So how many 200, 304, 404 and so on and maybe also sum the transfered
bits as an average.

I now have a perl script that does a count based on regex and does
this every minute but im really looking for a exporter that can do
this and publish it like for instance node_exporter.

Is there any exporter that can do this in a siple way?

This sounds like a good fit for mtail or the grok exporter:

https://github.com/google/mtail
https://github.com/fstab/grok_exporter

--
Stuart Clark

--
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/c056a105a6cbd5e1d0ce4bb026912a70%40Jahingo.com.

Reply via email to