Skip to content

Limit + Offset cannot exceed 10000 for discover.py getHosts #1146

Answered by crowdstrikedcs
LarsenEric asked this question in Q&A
Discussion options

You must be logged in to vote

Ah my apoligies, misread your original question you are using the Discover operations, ignore all I said about query_devices_by_filter_scroll 😄

With the Discover operations you'll use limit+offset as you mentioned and the sum of which cannot be greater than 10000 records. So we have to get a bit creative to pull all the 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, these are outlined here

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

  1. Make an initial call with no filter and paginate through all records. Additi…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@LarsenEric
Comment options

@crowdstrikedcs
Comment options

Comment options

You must be logged in to vote
4 replies
@crowdstrikedcs
Comment options

@LarsenEric
Comment options

@crowdstrikedcs
Comment options

Answer selected by LarsenEric
@LarsenEric
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
API usage General API usage issues and questions Discover Discover or Discover for Cloud issues and questions
2 participants