Use regex in Kibana SearchBox properly


(Peter) #1

Hi everyone,

I'm currently trying to filter out a URL pattern on Kibana. We have already amended the mapping to make sure URLs are not split up due to being a analyzed_field.

I want to filter out all URL of a specific field "x" that contain 8 numbers in a row.

e.x. www.domain.com/xx/yy/d12345678

I assume I need some sort of regex but can't sort out how it should look like

Can anyone help me out with it?


(Khalah Jones Golden) #2

Here you go

https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-regexp-query.html#regexp-syntax

Peace,
Khalah


(Peter) #3

Hi Khalah,

Thanks for your reply!

I'd seen this but I'm afraid I need more assistance as I'm not really familiar with regex. Thanks anyway


(system) #4