ecs-logging-nodejs
ecs-logging-nodejs copied to clipboard
Node.js formatters for Elastic Common Schema (ECS) logging
Hi. We have an internal NPM package for logging, which wraps Pino and ecs-pino-format to format logs. We are using this library in multiple services. We also use elastic-apm-node in...
Support customization of fields on a per-request basis
Hi Is there a way to exclude sensitive data from the log? For example the `authorization` header I see there is a fix for the `winston` library but not for...
It does not seem to be possible to configure the log level of pino when using esc format. I would like to configure the log level per environment and this...
Now that [`Error.cause`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause) is somewhat standard, it's be great if the `cause` chain's stack traces would also be extracted when logging errors, sort of like the default .toString() of exceptions...
I noticed in https://github.com/elastic/apm-agent-nodejs/pull/3399 discussion that, while the ecs-logging-nodejs libs are currently setting `span.id` or `transaction.id` for log-correlation, the ecs-logging spec (https://github.com/elastic/ecs-logging/blob/main/spec/spec.json) only mentions setting `transaction.id`. So it appears these...
Support convertReqRes-style ECS field mapping where req/res data is unavailable as Node http objects
In my case I am running Node in an AWS Lambda environment where there is not a Node server running. Request data is available as [APIGatewayProxyEvent](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/d1536cc8b4679229d635908b5ee858b0398a5f09/types/aws-lambda/trigger/api-gateway-proxy.d.ts#L69) or [APIGatewayEventRequestContextV2](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/d1536cc8b4679229d635908b5ee858b0398a5f09/types/aws-lambda/trigger/api-gateway-proxy.d.ts#L160-L180) and responses...
⚠ ./node_modules/.pnpm/@[email protected]/node_modules/@elastic/ecs-winston-format/index.js Module not found: Can't resolve 'elastic-apm-node' in '.pnpm/@[email protected]/node_modules/@elastic/ecs-winston-format' Should I need to install this? I am not using elastic-apm-node anywhere. This happens when I trying to integrate with...
I took some of the changes done in https://github.com/elastic/elastic-otel-node/pull/138 and enable the automation to release through Github workflows using a service machine account. I also created two different workflows: -...