This article shows how easy it is to leverage API of any product and create a continuous monitoring script for any change in the output.
Currently, for fetching the AV last updated endpoint's list customer had to follow below steps:
- Manually filter the Computer's list on AMP Console for a specific group
- Export the output in CSV format
- Filter out the endpoints based on the last-seen column in the CSV
- Find the endpoints with last-seen info for more than 1-2hours ago
This manual effort needs to be eliminated.
Using the /v1/computers AMP API, this script is created to continuously monitor and find the hostname by AV Definitions last updated and Last Seen by requested hours within a specific group.
In addition, the output is pushed in a Teams Space for anyone's consumption. You can run this script using crontab as per requirement on a server for continuous monitoring.