Writing a regex to find substring in kibana discover search bar

Hi All,
I was just playing with kibana discover page , I wanted to search a string using regex expression but somehow was not able to do. Need some help over this.
I only want to use KQL not Lucene.

I want to search any string containing substring as Saurabh Singh

For this i tried searching using regex as

message: Saurabh Singh

But i am getting output which has Singh and which has Saurabh seperately.

Question : Can anybody help me with the regex for finding substring Saurabh Singh for field.

Hi

KQL currently doesn't support RegExp, you need to do it in Lucene in this case. Here is the issue you could follow about adding RegExp support to KQL:

Best,
Matthias

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.