I would like to receive an alert when any of the hosts that I have Metricbeat installed on, now longer reports in data, for whatever reason (it could be stopped, server is turned off etc.).
I want to avoid having to maintain an inventory list of servers I have installed Metricbeat on.
I know I can do an elastic query to check of metricbeat returns any hits for a particular server/servers, but is there any clever way to configure a simple alert that just tells me Metricbeat has no hits from a [hostname(s)], without me having to provide the hostnames to query.
If I do need to provide the hostnames, I am having trouble in returning that hostname in a watcher payload because hits = 0.
Any direction appreciated