You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of your question
Is there a way to use a leading wildcard when filtering for hostname? I found where hostname uses partial by default but it seems to only work by matching the first characters in the string and auto appending an '*' to the end of the string. It also works if you add the trailing asterisk yourself. I am trying to perform a search like AA*1234 or *1234.
To Reproduce
Have hostnames of:
AAVWXYZ1
AAVWXYZ2
AAVWXYZ3
AAVWXYZ4
AAVWXYZ5
AALMNOP1
AALMNOP2
AALMNOP3
AALMNOP4
AALMNOP5
Get-FalconHost -Filter "hostname:'AA'" and Get-FalconHost -Filter "hostname:'AA*'"
yields all hostnames listed
however:
Get-FalconHost -Filter "hostname:'*VWXYZ'" yields no results but should return the first 5 hosts in the list. Get-FalconHost -Filter "hostname:*'*VWXYZ'" returns an error of "Cannot validate argument on parameter 'Filter'"
Expected behavior
A leading asterisk prior to the search string would yield the expected hostnames.
Environment (please complete the following information):
OS: MacOS14
PowerShell: [e.g. 7.4.5]
PSFalcon: [e.g. 2.2.7]
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Description of your question
Is there a way to use a leading wildcard when filtering for hostname? I found where hostname uses partial by default but it seems to only work by matching the first characters in the string and auto appending an '*' to the end of the string. It also works if you add the trailing asterisk yourself. I am trying to perform a search like
AA*1234
or*1234
.To Reproduce
Have hostnames of:
AAVWXYZ1
AAVWXYZ2
AAVWXYZ3
AAVWXYZ4
AAVWXYZ5
AALMNOP1
AALMNOP2
AALMNOP3
AALMNOP4
AALMNOP5
Get-FalconHost -Filter "hostname:'AA'"
andGet-FalconHost -Filter "hostname:'AA*'"
yields all hostnames listed
however:
Get-FalconHost -Filter "hostname:'*VWXYZ'"
yields no results but should return the first 5 hosts in the list.Get-FalconHost -Filter "hostname:*'*VWXYZ'"
returns an error of "Cannot validate argument on parameter 'Filter'"Expected behavior
A leading asterisk prior to the search string would yield the expected hostnames.
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: