I'm using @elastic/apm
in a JavaScript client to send errors to Elastic, via .captureError(err)
. I've added a custom property status
to the error to send the status code of a http response.
I can see the status appearing in the events as context.status
(below), but I cannot make queries on it as it's not in the index.
I followed the tooltip instructions, but the field is not being added to the index. We've refreshed it several times, without errors: I've looked in the devtools console and network tabs and nothing is erring. Also the response from /api/index_patterns/_fields_for_wildcard
does not contain the new field. I've refreshed several times today, as has my admin, with no luck.
I'd really like to get it into the index so I can monitor for status codes >=400. Is there anything I can do? Is it an asynchronous process that might take some time to complete?
Thanks,
Henry