I have a use case where I want to search for historical activity of services on a large number of hosts (200k+)
Currently this is my approach (using the API):
- Search for hosts
- For each host: get changed events within a time period
- For each changed event: check if the event potentially matches the service criteria (e.g. port or protocol)
- For each of these candidate events: get host details at the candidate event timestamp
- Extract service details from response
- For each of these candidate events: get host details at the candidate event timestamp
- For each changed event: check if the event potentially matches the service criteria (e.g. port or protocol)
- For each host: get changed events within a time period
This works, but is quite involved and consumes a lot of API credits.
Did anyone find a better way to query the service history of multiple hosts?
Thanks!