You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having trouble getting the http.request.id to log in correctly. Looking at the lib @elastic/ecs-winston-format and @elastic/ecs-helpers , I couldn't find any parse of the X-Request-ID or X-Correlation-ID headers as it says in the documentation and in our observability stack we couldn't get our logs to index the field in question. Is this already on the radar or planned for some version? If not, how can I contribute so that it can enter a future version?
@diegoneemu Thanks very much for the issue! My apologies for not having responded sooner. The http.request.id field had not yet been implemented, which is why it wasn't showing up for you. I've now opened a PR to do that, so within a week or so there will be a release with this functionality.
I'm closing this issue in favour of #76 (duplicate).
Hello everybody
I'm having trouble getting the http.request.id to log in correctly. Looking at the lib @elastic/ecs-winston-format
and @elastic/ecs-helpers
, I couldn't find any parse of the X-Request-ID or X-Correlation-ID headers as it says in the documentation and in our observability stack we couldn't get our logs to index the field in question. Is this already on the radar or planned for some version? If not, how can I contribute so that it can enter a future version?
I noticed that there are two issues already open on the subject, http.request.id field from ECS 1.9 and event.id -> http.request.id in formatHttpRequest, but I couldn't understand if the implementation was carried out.
Sorry for the bad English.
Imported packages from npm:
"@elastic/ecs-winston-format": "^1.3.1"
"winston": "3.2.1"
Header example:
Create logger using
winston
and@elastic/ecs-winston-format
Inject logger in a express request middleware for using in other middlewares and services
Resulting log:
The text was updated successfully, but these errors were encountered: