Gathering detailed insights and metrics for @mondomob/winston-splunk-httplogger
Gathering detailed insights and metrics for @mondomob/winston-splunk-httplogger
npm install @mondomob/winston-splunk-httplogger
Typescript
Module System
Min. Node Version
Node Version
NPM Version
65.5
Supply Chain
89.9
Quality
78.1
Maintenance
50
Vulnerability
97.6
License
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
1,284
Last Day
1
Last Week
4
Last Month
13
Last Year
429
15 Stars
155 Commits
22 Forks
5 Watching
1 Branches
8 Contributors
Minified
Minified + Gzipped
Latest Version
2.4.0
Package Id
@mondomob/winston-splunk-httplogger@2.4.0
Unpacked Size
20.34 kB
Size
5.62 kB
File Count
9
NPM Version
6.14.11
Node Version
14.16.0
Cumulative downloads
Total Downloads
Last day
-50%
1
Compared to previous day
Last week
-33.3%
4
Compared to previous week
Last month
85.7%
13
Compared to previous month
Last year
217.8%
429
Compared to previous year
A Winston transport for logging to Splunk with a HTTP Event Collector.
Winston >= 3.0.0
is required for winston-splunk-httplogger
>= 2.0.0
. Please use version 1.2.2
for legacy Winston support.
1npm install --save winston winston-splunk-httplogger
1var winston = require('winston'), 2 SplunkStreamEvent = require('winston-splunk-httplogger'); 3 4var splunkSettings = { 5 token: process.env.SPLUNK_TOKEN, 6 host: process.env.SPLUNK_HOST || 'localhost' 7}; 8 9// Now use winston as normal 10var logger = new winston.Logger({ 11 transports: [ 12 new winston.transports.Console(), 13 new SplunkStreamEvent({ splunk: splunkSettings }) 14 ] 15}); 16 17logger.info('This is sent to Splunk');
Create a new instance of SplunkStreamEvent
. Takes the following configuration:
SplunkStreamEvent
instanceSplunk Logger
settingsseverity
field of an eventurl.parse
. This will try to
set host
, path
, protocol
, port
, url
. Any of these values will be
overwritten if the corresponding property is set on config
function(message, severity)
true
.Splunk will provide you with a token at the end of the wizard. You need to insert that token into the splunk object you use to create the SplunkStreamEvent() object. In the example above, this is done by placing the token in the SPLUNK_TOKEN environment variable.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
SAST tool detected but not run on all commits
Details
Reason
security policy file detected
Details
Reason
project is archived
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
Found 0/2 approved changesets -- score normalized to 0
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
branch protection not enabled on development/release branches
Details
Reason
11 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-02-03
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