I am trying to create alert to monitor server for specific machine by using the machine name rather than using the machine.ip but not getting any key value.
Please let me know, How can I do this by using Machine name? Below I have shared a link in which I had used machine.ip value to monitor the server.
@Nitin08bisht Could you try this query in Menu > Management > Dev Tool if there's any hits? (please replace <YOUR_MONITOR_NAME> with the monitor name you'd like to find)
If not, you might want to double-check the monitor name you specified on the alreting rule. You can also use the above API without the query part and inspect what monitor names are available.
You can use any of the indexed fields in the query, which one holds the data you're looking for will depend on the monitor type.
The easiest way to check which field is the one you're looking for would be through Kibana -> Discover. Search for the monitor you're interested in and you'll be able to see all fields indexed for it:
But as I mentioned, it will depend on the monitor config and type. You'll need to have a look into available fields and check whether the information you require is being indexed.
Hi @emilioalvap - I am thankful to you because I was trying to find such query so that host down alert can be triggered and the query url.domain: google.es which you have given is working and I got the result which I want.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.