Folks - I'm not even sure what kind of search this is called. I'm searching some logs, but the problem is each log starts with the same text - but the string can end with other text. Is there a way to do this without regex?
Example:
They all start with this - but I want to ignore any text that IS ONLY THIS STRING.
Skip this:
"Generic Error found."
However, if it contains that string AND additional text, I need to match the entire string:
Match this:
"Generic Error found. - some specific error text"
I was hoping a match_phrase did it but, it's still matching any string that includes the starting text.
Just point me in the right direction with the type of query I need to run, please.
{
"match_phrase": {
"field": {
"query": "Generic Error found. "
}
}
}
Thanks,
Steve