-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ QUESTION ] Get-FalconAlert -Detailed -All
produces 500: Internal Server Error
at 10,000 results
#423
Comments
Can you re-run your test with
[Get-ParamSet] Creating groups of 1000 'composite_ids' values Try re-installing your module: Uninstall-Module -Name PSFalcon -AllVersions
Install-Module -Name PSFalcon -Scope CurrentUser If it is showing up, there might be a difference between the maximum number of |
Get-FalconAlert -All
broken in 2.2.7Get-FalconAlert -All
produces 500: Internal Server Error
Get-FalconAlert -All
produces 500: Internal Server Error
Get-FalconAlert -Detailed -All
produces 500: Internal Server Error
I removed all versions of
The 500 may be because it reached the end of 10000, but there's 161,000 alerts. I tried limiting the number of alerts using FQL, and it still says the pagination.total is 161,000, which doesn't seem right to me, since the total should be less than 10000. |
Like most of the Falcon APIs, The way around this is to break your results into filtered searches of less than 10,000 results (i.e. ~16 groups of searches) and then use |
Get-FalconAlert -Detailed -All
produces 500: Internal Server Error
Get-FalconAlert -Detailed -All
produces 500: Internal Server Error
at 10,000 results
The odd thing is, if querying only Endpoint alerts, there shouldn't be 160k alerts. With
With
Could this be a bug with the API itself? |
I can't reproduce that in either US-1 or US-GOV-1. Both seem to be passing my filter properly. I thought maybe it was a PowerShell difference, but it works in both 5.1 and 7.4.5. US-1
US-GOV-1:
The I recommend opening a ticket with CrowdStrike support for the filtering not being applied. That doesn't seem to be PSFalcon related since it is appearing in the request that's being sent, and it doesn't happen when I try to reproduce it. |
There's an encoding difference in the URL string when you send it
versus when I send it
PSFalcon encodes the query string with
|
This is what I get:
However, with
|
Any difference if you modify Try changing line 194 from:
To:
Given that PSFalcon did not encode quotation marks previously, I don't think that it's the problem... but it's worth a shot. |
The encoding is different in the Verbose output, but still getting 500 error:
|
Describe the bug
When using PSFalcon 2.2.7,
Get-FalconAlert
with parameter-All
results in an HTTP 500 response.To Reproduce
Get-FalconAlert -All
Expected behavior
API endpoint I believe has a limit of 1000 items, so would expect the function to get all Falcon Alerts in pages of 1000 and combine them into a single collection to return.
Environment (please complete the following information):
Transcript content
I can provide an unabridged transcript complete with
$VerbosePreference = 'Continue'
directly to you if you require.The text was updated successfully, but these errors were encountered: