Skip to content
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

Wildcard usage in hostname filtering #428

Open
c2mfj opened this issue Oct 17, 2024 · 0 comments
Open

Wildcard usage in hostname filtering #428

c2mfj opened this issue Oct 17, 2024 · 0 comments
Labels
question Further information is requested

Comments

@c2mfj
Copy link

c2mfj commented Oct 17, 2024

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.

@c2mfj c2mfj added the question Further information is requested label Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant