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

Commands after teragrep exec syslog stream doesn't work if host and path parameters are given #66

Closed
51-code opened this issue Aug 14, 2024 · 1 comment · Fixed by #67
Assignees
Labels
bug Something isn't working

Comments

@51-code
Copy link
Contributor

51-code commented Aug 14, 2024

Describe the bug

Using any command after teragrep exec syslog stream throws an exception from the parser if the host and path parameters are given.
Example query:

%dpl
index=abc | teragrep exec syslog stream host 12.12.123.123 port 123 | eval a=1

That will result to this exeption:

java.lang.IllegalStateException: Lexer failure on line 2, column 68 due to token recognition error at: '|'
Please check that the query is written correctly. Otherwise, please report this error and include the query used and this error.

This means that it doesn't recognize the pipe token after the syslog command.

If the host and port are removed, everything works.

Expected behavior

Should parse the commands after as well.

How to reproduce

Use the example query.

Screenshots

Software version

pth_03 version: 5.11.0
pth_10 version: 5.4.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 Aug 14, 2024
@51-code 51-code self-assigned this Aug 14, 2024
@51-code
Copy link
Contributor Author

51-code commented Aug 14, 2024

There were no unit tests for the syslog stream command, so I created those. Also a specific unit test for this case with a command after it has been created now.

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
1 participant