Parse PHP error log file for fatal errors

I’m currently using Telegraf (1.18) with Prometheus.
I have several WordPress sites, for which I would need to parse PHP error log file and check for PHP fatal errors, so to create an alert to forward to a Slack channel.

Is it possible to achieve this with Telegraf?

Thanks for any help!


Hello @jobet,
There is the logparser telegraf plugin. Have you given it a try?

I find using this helpful: