Skip to content

Unable to use -Filter "Group:'Groupname'" to pull a list of Host IDs into a variable. #107

Answered by bk-cs
Sievers79 asked this question in Q&A
Discussion options

You must be logged in to vote

"Group" not being a valid filter is an API restriction and is not related to PSFalcon.

If you wanted to find hosts that exist within a certain group, here is another option besides using the "group" filter in a host search (note that "<groupname>" will only accept lowercase values):

Get-FalconHostGroupMember -Id (Get-FalconHostGroup -Filter "name:'<groupname>'") -All

You can search like this to find hosts matching specific tags (case sensitive):

Get-FalconHost -Filter "tags:'FalconGroupingTags/<tag>'" or Get-FalconHost -Filter "tags:'SensorGroupingTags/<tag>'".

See Filtering and the Falcon Query Language for more complex queries involving OR and AND conditions.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bk-cs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #30 on September 24, 2021 15:28.