Skip to content

EQL: revising usage of quote (single or double) for escaping identifiers #57194

Closed
@costin

Description

@costin

User feedback when running an EQL query: I cannot escape the event category for the query: system.cpu where cpu.cores = 16

line 1:8: mismatched input '.' expecting 'where'

Tried escaping (with " or "):
"system.cpu" where ...

line 1:1: no viable alternative at input '\"system.cpu\"'"

Finally fixed by using backticks:
`system.cpu` where ...

This is a poor experience from an internal uses, that is interested in EQL and know about it. And yet gets caught off-guard by our use of quotes and escaping.

I'm raising this issue to revisit this topic and improve the current situation.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions