Skip to content

Wildcards not Working in Filters #96

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

You must be logged in to vote

Filters, and the Falcon Query Language, work differently for each API. This issue is not specific to PSFalcon. PSFalcon passes the filter value you provide to the API, so the error 400: Invalid filter expression supplied is coming from the API itself--that's not how wildcards work with this API.

The API that is used by the command Get-FalconHost uses wildcards by default with the hostname property. To search for a hostname that starts with vp-, you can use this filter:

Get-FalconHost -Filter "hostname:'vp-'"

To search for an exact hostname, you have to explicitly define the exact search format (which is also case sensitive):

Get-FalconHost -Filter "hostname:['vp-example']"

If the filter…

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 #50 on September 24, 2021 15:22.