ecs-logging-nodejs
ecs-logging-nodejs copied to clipboard
Node.js formatters for Elastic Common Schema (ECS) logging
ECS specifies [a lot of top-level fields](https://www.elastic.co/guide/en/ecs/current/ecs-field-reference.html). Currently the node.js ecs-logging loggers in this repo do not, in general, deal with conflicts between a user-specified field and the ECS specified...
Currently the formatting library does not capture request.body and response.body which might be useful at times. ECS though supports these fields in http.request.body.content and http.response.body.content.
Hello, I would like to add custom data so that it gets added to the final formatter for @elastic/ecs-morgan-format Is it possible ?
`service.version`, at least, has been added to the ecs-logging spec: https://github.com/elastic/ecs-logging/blob/d8ee4d4ba5853a10425ac21f41a5ff04f84b355b/spec/spec.json#L88-L96 with the comment that: > When an APM agent is active, it should auto-configure it if not already set....
This pull request add types information to the morgan elastic package (`@elastic/ecs-morgan-format`)
https://github.com/elastic/ecs-logging-nodejs/blob/26aaa6a8e75dd1cfe73023e81f676ef0a526b111/helpers/lib/http-formatters.js#L59 It looks like `url` attribute is being set with information from `req` instead of `ecs` like the rest of the attributes. This is causing `full` to reflect a different...
The current winston usage is a single ecsFormat formatter that handles both (a) putting together the ECS fields and then (b) serializing that to JSON (along with ecs-logging's preference for...
Is possible to add support for body content for request and response based on new spec? [Request body content]( https://www.elastic.co/guide/en/ecs/current/ecs-http.html#field-http-request-body-content) [Response body content](https://www.elastic.co/guide/en/ecs/current/ecs-http.html#field-http-response-body-content) When i try to add it manually...
I used morgan with ecsFormat to record http requests in elasticsearch, but the url field is not accurate. ``` app.use("/base", router); router.get("/:service", (req, res, next) => {...}) ``` In this...
Support these import styles: ```js // 1. `const { ecsFormat } = require('@elastic/ecs-pino-format)` in JS and TS. // The preferred import style for JS code using CommonJS. // 2. `import...