In my Grafana dashboard, I count the number of "error logs" and send alert if there is at least 1 error.
This is the query I use
count_over_time(