Kibana Discovery Regex

Hi Elastic Community,
Im trying to use regex in Kibana Discovery search bar but i think im to stupid :smiley:
I Found some Threads and Blog Post but it doesnt work for me.

Event 1:
Some Message: C:\ProgramData\Package Cache{A50FA50F-A50F-A50F-A50F-A50FA50FA50F}Other\Path. Clientprozess-ID: 8888.
Event 2:
Some Message: {A50FA50F-A50F-A50F-A50F-A50FA50FA50F}. Clientprozess-ID: 8888.

I want to filter out Event 2. A Working Regex is to find Event 2 is:
Some Message:\ {.}. Clientprozess.

I tried the following ways to search in Kabana but no one of them worked:
message:Some Message:\ {.}. Clientprozess.
message:/Some Message:\ {.}. Clientprozess./
message:"/Some Message:\ {.}. Clientprozess./"
message:/"Some Message:\ {.}. Clientprozess."/
message:'/Some Message:\ {.}. Clientprozess./'
message:/'Some Message:\ {.}. Clientprozess.'/

I have realy no idea what I am doing wrong.

I Hope anyone can help me.


Welcome, @GaffaOverflow!

This is likely because message is a text field and is using the standard analyzer, so a space is not going to exist in the indexed data. You can check your mapping using the mapping API.

Hi @alisongoryachev,
Thanks for this Information.
But it doesnt work as i would expect.
Message: The Software Protection service has stopped.

message:/Protection/ -> works
message:/Prot[eE]ction/ -> doesnt work
message:/Prot[A-z]ction/ -> doesnt work

I also get every time entering a search with / the message:
It looks like you may be trying to use Lucene query syntax, although you have Kibana Query Language (KQL) selected. Please review the KQL docs.

Is there another Syntax for searching regex?


@GaffaOverflow KQL does not yet support regex. You can turn off KQL via the search bar in Discover and use Lucene query syntax.

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