teragrep / pth_03

Data Processing Language (DPL) parser
GNU Affero General Public License v3.0
0 stars 5 forks source link

Regex command doesn't work without specifying the field #54

Open 51-code opened 3 months ago

51-code commented 3 months ago

Describe the bug

The following query:

%dpl
index=abc | regex "xyz"

Gives the exception:

java.lang.IllegalStateException: Parser failure on line 2, column 40 due to no viable alternative at input '"xyz"'
Please check that the query is written correctly. Otherwise, please report this error and include the query used and this error.

Expected behavior

Should be possible to use regex without the field, which then would default to the _raw column.

How to reproduce

Run the query above.

Screenshots

Software version

6.1.0

Desktop (please complete the following information if relevant):

Additional context