Coder Social home page Coder Social logo

{"code":400,"message":"offset 10000 and limit 100 are invalid; offset + limit must be less than or equal to 10000"} about psfalcon HOT 3 CLOSED

brushenas avatar brushenas commented on June 11, 2024
{"code":400,"message":"offset 10000 and limit 100 are invalid; offset + limit must be less than or equal to 10000"}

from psfalcon.

Comments (3)

bk-cs avatar bk-cs commented on June 11, 2024

This is normal and expected behavior; the majority of the CrowdStrike APIs won't return more than 10,000 results--they're designed to return the results of a filtered search, not "all data". -All is provided as a "best effort" fashion to return whatever the API will allow you to retrieve through pagination.

In general, it's best to try different filter values until you have a total result set of less than 10,000. Breaking the results into groups using timestamps, names, etc.

Here's an example script that will break "applications" up into smaller groups when using the Falcon Discover APIs: https://github.com/CrowdStrike/psfalcon/blob/dev/samples/discover/retrieve_hosts_and_their_applications.ps1

from psfalcon.

brushenas avatar brushenas commented on June 11, 2024

I have seen in other CrowdStrike GIT repository where they are able to return all data by leveraging the meta data as explained in the following link. is it something that can be leveraged for this PS module?

CrowdStrike/falconpy#536

from psfalcon.

bk-cs avatar bk-cs commented on June 11, 2024

That's a difference in the APIs. Get-FalconHost, which calls the API referenced in that python issue (GET /devices/queries/devices-scroll/v1), will return all results when used with -All. It is one of the few that will return all results without a limit.

PSFalcon's -All will return all results when the API allows. If the API doesn't allow it, you're going to get an error at 10,000 results. This is also mentioned in the documentation for the All parameter: https://github.com/CrowdStrike/psfalcon/wiki/Importing,-Syntax-and-Output#all

from psfalcon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.