I
I have this query that searches for all records with errors but I want to have only the results for each jobid
{ "query": { "match_phrase": { "level": "ERROR" }, "aggs": { "unique_jobs": { "terms": { "field": "metadata.CSBJobId" } } } } }
this is the error
“[match_phrase] malformed query, expected [END_OBJECT] but found [FIELD_NAME]”your text
New contributor
Claudio Clemente is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.