Installations
npm install @htempest/ecs-pino-format
Developer Guide
Typescript
Yes
Module System
CommonJS
Min. Node Version
>=10
Node Version
18.17.1
NPM Version
9.6.7
Releases
Unable to fetch releases
Contributors
Languages
JavaScript (96.99%)
Shell (2.09%)
Makefile (0.92%)
validate.email 🚀
Verify real, reachable, and deliverable emails with instant MX records, SMTP checks, and disposable email detection.
Developer
Download Statistics
Total Downloads
1,572
Last Day
1
Last Week
25
Last Month
144
Last Year
1,572
GitHub Statistics
Apache-2.0 License
69 Stars
245 Commits
40 Forks
11 Watchers
6 Branches
248 Contributors
Updated on Mar 11, 2025
Bundle Size
4.43 kB
Minified
1.81 kB
Minified + Gzipped
Package Meta Information
Latest Version
1.5.5
Package Id
@htempest/ecs-pino-format@1.5.5
Unpacked Size
24.60 kB
Size
8.10 kB
File Count
5
NPM Version
9.6.7
Node Version
18.17.1
Published on
Jul 08, 2024
Total Downloads
Cumulative downloads
Total Downloads
1,572
Last Day
-75%
1
Compared to previous day
Last Week
-49%
25
Compared to previous week
Last Month
-1.4%
144
Compared to previous month
Last Year
0%
1,572
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads

@elastic/ecs-pino-format
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.
Install
1npm install @elastic/ecs-pino-format
Usage
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.
License
This software is licensed under the Apache 2 license.

No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
all changesets reviewed
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0
Reason
security policy file detected
Details
- Info: security policy file detected: github.com/elastic/.github/SECURITY.md:1
- Info: Found linked content: github.com/elastic/.github/SECURITY.md:1
- Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/elastic/.github/SECURITY.md:1
- Info: Found text in security policy: github.com/elastic/.github/SECURITY.md:1
Reason
6 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 5
Reason
branch protection is not maximal on development and all release branches
Details
- Info: 'allow deletion' disabled on branch 'main'
- Info: 'force pushes' disabled on branch 'main'
- Warn: 'branch protection settings apply to administrators' is disabled on branch 'main'
- Warn: 'stale review dismissal' is disabled on branch 'main'
- Warn: required approving review count is 1 on branch 'main'
- Warn: codeowners review is required - but no codeowners file found in repo
- Warn: 'last push approval' is disabled on branch 'main'
- Info: status check found to merge onto on branch 'main'
- Info: PRs are required in order to make changes on branch 'main'
Reason
dependency not pinned by hash detected -- score normalized to 2
Details
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/labeler.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/elastic/ecs-logging-nodejs/labeler.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/labeler.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/elastic/ecs-logging-nodejs/labeler.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-ecs-helpers.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/elastic/ecs-logging-nodejs/release-ecs-helpers.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/release-ecs-helpers.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/elastic/ecs-logging-nodejs/release-ecs-helpers.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/elastic/ecs-logging-nodejs/release.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/elastic/ecs-logging-nodejs/release.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/elastic/ecs-logging-nodejs/release.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/slack-lite.yml:122: update your workflow using https://app.stepsecurity.io/secureworkflow/elastic/ecs-logging-nodejs/slack-lite.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tav.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/elastic/ecs-logging-nodejs/tav.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tav.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/elastic/ecs-logging-nodejs/tav.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/elastic/ecs-logging-nodejs/test.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/elastic/ecs-logging-nodejs/test.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/elastic/ecs-logging-nodejs/test.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/elastic/ecs-logging-nodejs/test.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/update-specs.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/elastic/ecs-logging-nodejs/update-specs.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/update-specs.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/elastic/ecs-logging-nodejs/update-specs.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/update-specs.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/elastic/ecs-logging-nodejs/update-specs.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/update-specs.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/elastic/ecs-logging-nodejs/update-specs.yml/main?enable=pin
- Warn: npmCommand not pinned by hash: utils/run-install.sh:7
- Warn: npmCommand not pinned by hash: utils/run-install.sh:12
- Warn: npmCommand not pinned by hash: .github/workflows/tav.yml:28
- Warn: npmCommand not pinned by hash: .github/workflows/test.yml:40
- Info: 0 out of 10 GitHub-owned GitHubAction dependencies pinned
- Info: 4 out of 12 third-party GitHubAction dependencies pinned
- Info: 0 out of 4 npmCommand dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Info: jobLevel 'contents' permission set to 'read': .github/workflows/docs-build.yml:18
- Info: jobLevel 'pull-requests' permission set to 'read': .github/workflows/docs-build.yml:19
- Warn: jobLevel 'deployments' permission set to 'write': .github/workflows/docs-build.yml:16
- Info: found token with 'none' permissions: .github/workflows/docs-cleanup.yml:12
- Warn: jobLevel 'deployments' permission set to 'write': .github/workflows/docs-cleanup.yml:14
- Info: jobLevel 'contents' permission set to 'read': .github/workflows/update-specs.yml:17
- Info: jobLevel 'packages' permission set to 'read': .github/workflows/update-specs.yml:18
- Info: topLevel 'contents' permission set to 'read': .github/workflows/addToProject.yml:7
- Warn: no topLevel permission defined: .github/workflows/docs-build.yml:1
- Warn: no topLevel permission defined: .github/workflows/docs-cleanup.yml:1
- Info: topLevel 'contents' permission set to 'read': .github/workflows/labeler.yml:10
- Warn: topLevel 'contents' permission set to 'write': .github/workflows/release-ecs-helpers.yml:12
- Info: topLevel 'pull-requests' permission set to 'read': .github/workflows/release-ecs-helpers.yml:13
- Warn: topLevel 'contents' permission set to 'write': .github/workflows/release.yml:12
- Info: topLevel 'pull-requests' permission set to 'read': .github/workflows/release.yml:13
- Warn: no topLevel permission defined: .github/workflows/slack-lite.yml:1
- Info: topLevel 'contents' permission set to 'read': .github/workflows/tav.yml:11
- Info: topLevel 'contents' permission set to 'read': .github/workflows/test.yml:13
- Info: topLevel 'contents' permission set to 'read': .github/workflows/update-specs.yml:11
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 30 are checked with a SAST tool
Score
6.1
/10
Last Scanned on 2025-03-10
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