Elastic Search cant find the results from Regex pattern

I am searching a particular regex pattern in the discover tab through KQL and Lucence but I got the

error Expected ":", "<", "<=", ">", ">=", AND, OR, end of input, whitespace but "\" found. log:"api.mydomain.com" AND ' \s5..\s' ----------------------------^

Here is the query I want to search log: "api.mydomain.com" AND ' \s5..\s'

How to do that?

Hi @rishabhtryroll,
KQL doesn't support regular expresions. Have you tried with Lucene?https://github.com/elastic/kibana/issues/46855

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