Skip to content

GetQueriesAlertsV2 shows wrong count when compared to console #1153

Answered by crowdstrikedcs
Ni-ka-sH asked this question in Q&A
Discussion options

You must be logged in to vote

HI @Ni-ka-sH

Few items on the pagination, this API returns a maximum of 10000 records. The Limit + Offset must always be less than 10k records.

To get around this limitation I reccomend using a filter to reduce the total count below 10000. Based on your environment there may be a few different options for this filter, timestamp is a good bet as you can use a rolling window.

For my usage I used a created_timestamp and the polling logic goes something like this

Make an initial call with no filter and limit 10000. Additionally sort the records using created_timestamp.asc which will return records sorted in ascending order by when they were last seen.
For each page of 10000 use the get_alerts…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Ni-ka-sH
Comment options

@crowdstrikedcs
Comment options

@Ni-ka-sH
Comment options

@crowdstrikedcs
Comment options

Answer selected by jshcodes
@Ni-ka-sH
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants