I have a requirement of watching /var/log/messages file and look for a OOM killer message. I want to setup a alert in Grafana based on matching pattern. is it possible with telegraf and yes can u provide an example?
file : /var/log/message
line am interested : Jun 1 12:52:36 kernel: nginx invoked oom-killer: gfp_mask=0xd0, order=0, oom_score_adj=999