-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
[DOCS] EQL: Add wildcard support to :
operator
#65237
Conversation
Pinging @elastic/es-ql (Team:QL) |
Pinging @elastic/es-docs (Team:Docs) |
[discrete] | ||
[[eql-syntax-wildcards]] | ||
===== Wildcards | ||
|
||
For string comparisons using the `:` operator, you can use wildcards (`*`) to | ||
match specific patterns: | ||
|
||
[source,eql] | ||
---- | ||
field : "example*wildcard" | ||
field : "*example-wildcard" | ||
field : "example-wildcard*" | ||
---- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@costin Is there an escape sequence for strings containing a literal asterisk (*
)? I tested \*
, but that didn't seem to work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, not at the moment. It's something we need to discuss.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks @costin. |
Updates docs for #65188.
Preview
https://elasticsearch_65237.docs-preview.app.elstc.co/guide/en/elasticsearch/reference/master/eql-syntax.html#eql-syntax-wildcards