Skip to content

[BUG] ppl retruns syntax error when field name is the ppl keyword #712

Closed

Description

@cashlalala

What is the bug?
PPL failed to parse when some fileds in log are PPL keywords.

How can one reproduce the bug?

  1. Generate a log like { "log": "test mesg", "timestamp": "2022-07-28 22:45:00" } in index logstash-2022.07.28
  2. Query the data by source=logstash-2022.07.28 | parse log "(?<almsg>\w+).*"
  3. UI shows 400 client error.

What is the expected behavior?
Return parsed fields correctly

What is your host/environment?

  • OS: ubuntu 20.04 (but I run the opensearch & dashboard in docker)
  • Version: opensearch 2.1.0, opensearch-dashboard 2.1.0
  • Plugins: default plugins in docker images opensearch 2.1.0

Do you have any screenshots?
image

Do you have any additional context?
Is there any escape grammar for the scenario? I have tried to find in document but found nothing.
Or please show me the documentation I can refer.

Many thanks!

Activity

  1. added
    bug
    on Jul 28, 2022
  2. cashlalala commented on Aug 4, 2022

    @cashlalala
    Author

    Thx! That helps!

  3. MaxKsyunz commented on Aug 12, 2022

    @MaxKsyunz
    Collaborator

    @Yury-Fridlyand don't we still need to make this fix?

  4. Yury-Fridlyand commented on Aug 12, 2022

    @Yury-Fridlyand
    Collaborator

    I think yes

  5. added
    PPL
    and removed on Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    PPLbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions