Regular expression search

I'm trying to search for a request with search query - request:/api/user//[0-9a-z]{24}//status/summary
example request: /api/user/<24CharID>/status/summary
The search result shows any combination of the result. ex: /api, /api/search/user, /api/user/<24CharID>. How can I get results that only march regex?

Kibana version: 4.6.4
Elasticsearch version: 2.4.4

I would recommend using a regex tester to verify your regex. https://regex101.com/ is one option.

I would recommend against using regex searches as it extremely inefficient and does not scale well at all. If you have specific things you are looking for it is better to extract this into separate fields or tag documents at index time as this means you do the processing once and can use the indices when querying rather than scan through all terms.

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