-
Notifications
You must be signed in to change notification settings - Fork 73
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
[ BUG ] Get-FalconAsset
with -Include login_events
does not add results for all assets
#296
Comments
Thank you for the report. I'll investigate and update once I've had time to test. |
I believe I have this fixed for the next release. Can you please test it on your end and verify whether or not it resolves the issue for you? First, update your local copy of (Invoke-WebRequest https://raw.githubusercontent.com/CrowdStrike/psfalcon/2.2.5/public/discover.ps1).content > $HOME\Documents\WindowsPowerShell\Modules\PSFalcon\2.2.4\Public\discover.ps1 Then import PSFalcon with the modified file (removing the module first, if already loaded), request your token and run the command again: if (Get-Module PSFalcon) { Remove-Module PSFalcon }
Import-Module PSFalcon
Request-FalconToken <your API client parameters go here>
Get-FalconAsset -Detailed -All -Include 'login_event' -Filter "entity_type:'managed'" | Select-Object hostname,login_event |
Yes, i have login_event for all hosts hosts now. Thanks for the quick fix! |
Keeping open for people to utilize fix before release. |
Get-FalconAsset
with -Include login_events
does not add results for all assets
Describe the bug
The Get-FalconAsset commandlet with the "-include 'login_event'" parameter does not work as expected
To Reproduce
1/ Run command to get login events for all falcon assets:
Get-FalconAsset -detailed -All -include 'login_event' -Filter "entity_type:'managed'" | select hostname, login_event
Result: Most of the login_events returned are empty. In my environment, just one entry is populated. From the list returned, grab a hostname where there is no login_event for step 2.
2/ Run command with a filter on the specific hostname:
Get-FalconAsset -detailed -All -include 'login_event' -Filter "entity_type:'managed'+hostname:'XXX'" | select hostname, login_event
Result: The login_event information is correctly populated.
Expected behavior
The command to get login events for all falcon assets should work.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: