ecs-logging-nodejs icon indicating copy to clipboard operation
ecs-logging-nodejs copied to clipboard

Node.js formatters for Elastic Common Schema (ECS) logging

Results 40 ecs-logging-nodejs issues
Sort by recently updated
recently updated
newest added

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...

agent-nodejs

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.

agent-nodejs
triage
community

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 ?

help wanted
agent-nodejs
community

`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....

agent-nodejs

This pull request add types information to the morgan elastic package (`@elastic/ecs-morgan-format`)

agent-nodejs
triage
community

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...

agent-nodejs
community

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...

agent-nodejs

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...

agent-nodejs

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...

agent-nodejs
triage
community

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...

agent-nodejs
8.0-candidate