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

Iplocation command doesn't allow optional parameters on the right side of IP #51

Open
51-code opened this issue Jul 31, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@51-code
Copy link
Contributor

51-code commented Jul 31, 2024

Describe the bug

This query fails:
index=index_A | iplocation otherIP allfields=false

The allfields parameter is not parsed at all. The exception thrown:

line 1:23 mismatched input 'allfields=' expecting {PIPE}

Expected behavior

Should not matter on which side of the IP the parameters are given.

How to reproduce

Run the query above. If it goes through PTH-10, it will currently silently fail the parse and execute commands before the allfields parameter and ignore anything after it. Print the parse tree to see that the allfields parameter is not included in the tree.

Screenshots

Software version

6.1.0

Desktop (please complete the following information if relevant):

  • OS:
  • Browser:
  • Version:

Additional context

@51-code 51-code added the bug Something isn't working label Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant