Search for text in a string

Hi, Im fairly new to elastic search and Ive been stuck on these for 8 hrs now. I have a log field like this:

Retry Exhausted Error Get segment: GET request failed after 1 attempts to record the segment (final status code 404, status code map with code/count map[])

How do I extract just 404? Do I use match query? wildcard? regexp? an analyzer?

Welcome to our community! :smiley:

A wildcard should work, but it's pretty inefficient.

Thank you!

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