Get-FalconHost
with all, detailed, group name, limit and sort does not complete
#244
-
Running Is this a limitation with the Get-FalconHost commandlet? The intent is to retrieve all falcon end-points including group names and sort descending by last seen and show only first unique value per end-point. |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
This is functioning properly when I test using PowerShell 7 on MacOS. Is there a reason you're using Can you provide a transcript? |
Beta Was this translation helpful? Give feedback.
-
This is using PowerShell 5.1 on Windows 10. The reason for using This is the transcript. The "access denied, invalid bearer token" errors are after it timed-out.
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I also confirmed that this command works as expected on PowerShell 5.1 within Windows 10:
|
Beta Was this translation helpful? Give feedback.
-
Not sure why but
The expected output is to only get the latest "last_seen" for every unique Falcon end-point. I'll work something out in PowerShell to get the required output. You may close this out if it is not something currently possible directly with |
Beta Was this translation helpful? Give feedback.
-
I think you're misunderstanding how the APIs work. There is no way to use the APIs to only return the most recently seen device, unless:
Do you have an issue with duplicate hosts? There is a command that will help you clean those up: https://github.com/CrowdStrike/psfalcon/wiki/Host-and-Host-Group-Management#finding-potential-duplicate-hosts You can find and hide duplicate hosts in a single step:
|
Beta Was this translation helpful? Give feedback.
-
I have been able to work out a solution to -
|
Beta Was this translation helpful? Give feedback.
I think you're misunderstanding how the APIs work. There is no way to use the APIs to only return the most recently seen device, unless:
-Filter "hostname:'PC'"
) and return with-Limit 1 -Sort last_seen.desc
Do you have an issue with duplicate hosts? There is a command that will help you clean those up: https://github.com/CrowdStrike/psfalcon/wiki/Host-and-Host-Group-Management#finding-potential-duplicate-hosts
You can find and hide duplicate hosts in a single step: