Gathering detailed insights and metrics for @elastic/ecs-pino-format
Gathering detailed insights and metrics for @elastic/ecs-pino-format
Gathering detailed insights and metrics for @elastic/ecs-pino-format
Gathering detailed insights and metrics for @elastic/ecs-pino-format
@htempest/ecs-pino-format
A formatter for the pino logger compatible with Elastic Common Schema.
pino-transport-ecs
A Pino transform transport that converts logs to the Elastic Common Schema format, using the official formatters from Elastic.
@cortexcloud/ecs-pino-format
A formatter for the pino logger compatible with Elastic Common Schema.
npm install @elastic/ecs-pino-format
Typescript
Module System
Min. Node Version
Node Version
NPM Version
99.4
Supply Chain
83.4
Quality
83.3
Maintenance
100
Vulnerability
100
License
JavaScript (96.99%)
Shell (2.09%)
Makefile (0.92%)
Total Downloads
49,931,805
Last Day
72,144
Last Week
364,168
Last Month
1,557,057
Last Year
18,303,010
Apache-2.0 License
70 Stars
246 Commits
40 Forks
12 Watchers
8 Branches
254 Contributors
Updated on May 01, 2025
Minified
Minified + Gzipped
Latest Version
1.5.0
Package Id
@elastic/ecs-pino-format@1.5.0
Unpacked Size
24.21 kB
Size
8.01 kB
File Count
5
NPM Version
9.8.1
Node Version
20.6.0
Published on
Oct 31, 2023
Cumulative downloads
Total Downloads
Last Day
93.7%
72,144
Compared to previous day
Last Week
4.4%
364,168
Compared to previous week
Last Month
-10.3%
1,557,057
Compared to previous month
Last Year
32.6%
18,303,010
Compared to previous year
This Node.js package provides a formatter for the pino logger compatible with Elastic Common Schema (ECS) logging. In combination with the filebeat shipper, you can send your logs directly to Elasticsearch and leverage Kibana's Logs app to inspect all logs in one single place.
pino
6.x, 7.x, and 8.x versions are supported.
Please see the Node.js ECS pino documentation.
1npm install @elastic/ecs-pino-format
This package will configure Pino's formatters
, messageKey
and timestamp
options.
1const { ecsFormat } = require('@elastic/ecs-pino-format') 2const pino = require('pino') 3 4const log = pino(ecsFormat(/* options */)) 5log.info('Hello world') 6 7const child = log.child({ module: 'foo' }) 8child.warn('From child')
Running this will produce log output similar to the following:
1{"log.level":"info","@timestamp":"2023-10-16T18:08:02.601Z","process.pid":74325,"host.hostname":"pink.local","ecs.version":"8.10.0","message":"Hello world"} 2{"log.level":"warn","@timestamp":"2023-10-16T18:08:02.602Z","process.pid":74325,"host.hostname":"pink.local","ecs.version":"8.10.0","module":"foo","message":"From child"}
Please see the Node.js ECS pino documentation for more.
This software is licensed under the Apache 2 license.
No vulnerabilities found.
Reason
all changesets reviewed
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
security policy file detected
Details
Reason
branch protection is not maximal on development and all release branches
Details
Reason
5 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 4
Reason
dependency not pinned by hash detected -- score normalized to 2
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-05-05
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More