Gathering detailed insights and metrics for winston-splunk-httplogger
Gathering detailed insights and metrics for winston-splunk-httplogger
npm install winston-splunk-httplogger
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
1,793,840
Last Day
420
Last Week
5,606
Last Month
21,784
Last Year
278,228
15 Stars
155 Commits
22 Forks
5 Watching
1 Branches
8 Contributors
Minified
Minified + Gzipped
Latest Version
3.1.8
Package Id
winston-splunk-httplogger@3.1.8
Unpacked Size
13.20 kB
Size
4.40 kB
File Count
4
NPM Version
8.19.3
Node Version
18.13.0
Publised On
03 Feb 2023
Cumulative downloads
Total Downloads
Last day
-4.1%
420
Compared to previous day
Last week
25.2%
5,606
Compared to previous week
Last month
11.5%
21,784
Compared to previous month
Last year
-56.1%
278,228
Compared to previous year
1
1
A Winston transport for logging to Splunk with a HTTP Event Collector.
NOTE
This project is no longer under active development. I can reasonably accept PRs, providing they include unit tests for the functionality and pass all existing tests. However, I do not have the ability to test against a live Splunk service.
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