One of our services produces logs of the form:
{
"level": \d+
...
"data": {
"items": [ {...item}, {...item} ...],
...
}
"msg": "searchable log message"
}
using explore I can search for items at specific array locations via: | json id="data.items[0].id" | id = \
target id`` but I’d really like to be able to search at ANY position in the array. Is this possible?
I have tried items[\d+].id
and a few other regex paths but always get parsing errors.
EDIT: added quotes to the json example to avoid confusion. It is valid json data