Gathering detailed insights and metrics for @elastic/ecs-winston-format
Gathering detailed insights and metrics for @elastic/ecs-winston-format
Gathering detailed insights and metrics for @elastic/ecs-winston-format
Gathering detailed insights and metrics for @elastic/ecs-winston-format
npm install @elastic/ecs-winston-format
Typescript
Module System
Min. Node Version
Node Version
NPM Version
99.2
Supply Chain
85.6
Quality
84.1
Maintenance
100
Vulnerability
100
License
JavaScript (96.99%)
Shell (2.09%)
Makefile (0.92%)
Total Downloads
7,605,795
Last Day
12,721
Last Week
55,782
Last Month
231,121
Last Year
3,917,920
69 Stars
241 Commits
41 Forks
12 Watching
5 Branches
242 Contributors
Minified
Minified + Gzipped
Latest Version
1.5.3
Package Id
@elastic/ecs-winston-format@1.5.3
Unpacked Size
28.06 kB
Size
9.24 kB
File Count
5
NPM Version
9.8.1
Node Version
18.18.2
Publised On
18 Mar 2024
Cumulative downloads
Total Downloads
Last day
-8.6%
12,721
Compared to previous day
Last week
-11.2%
55,782
Compared to previous week
Last month
-12.9%
231,121
Compared to previous month
Last year
91.7%
3,917,920
Compared to previous year
This Node.js package provides a formatter for the winston 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.
winston
3.x versions are supported.
Please see the Node.js ECS winston documentation.
1npm install @elastic/ecs-winston-format
1const winston = require('winston'); 2const { ecsFormat } = require('@elastic/ecs-winston-format'); 3 4const logger = winston.createLogger({ 5 level: 'info', 6 format: ecsFormat(/* options */), 7 transports: [ 8 new winston.transports.Console() 9 ] 10}); 11 12logger.info('hi'); 13logger.error('oops there is a problem', { foo: 'bar' });
Running this script will produce log output similar to the following:
1% node examples/basic.js 2{"@timestamp":"2021-01-13T21:32:38.095Z","log.level":"info","message":"hi","ecs":{"version":"8.10.0"}} 3{"@timestamp":"2021-01-13T21:32:38.096Z","log.level":"error","message":"oops there is a problem","ecs":{"version":"8.10.0"},"foo":"bar"}
Please see the Node.js ECS winston documentation for more.
This software is licensed under the Apache 2 license.
No vulnerabilities found.
Reason
all changesets reviewed
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
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
dependency not pinned by hash detected -- score normalized to 2
Details
Reason
2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
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-01-27
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