KIbana Query: regexp of 10 numbers

Im trying to match in a search (discovery tool):
1234567890
or
123456-1234

Those expressions are not working (only catch 1 number)
message: /[0-9]{10}/
or
message: /[0-9]{6}-[0-9]{4}/

It should find numbers like "1234567890" but it find this message:
VerifyUserContactInformation with id 10, state Disabled

Hey @AndresL, which version of Kibana are you using? I'm unable to replicate what you're seeing.

Also, if you click "Inspect", and open up the "Request" tab, would you mind replying with the request content?

thanks for your awesome answer!

i see that you are using Lucene as query language, now is working.

@AndresL, Yeah... KQL at the moment doesn't support RegEx, so you'll have to either use the Lucene syntax or you can add a filter and edit the Query DSL itself.

Hi, sorry to bother @Brandon_Kobel
but i cant see the way to search this on Lucene
message: whatever 123456-1234
i tried message: (/[0-9]{6}/-/[0-9]{4}/) (using - character space)
but it match values like
"2020"

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