1.1.0 • Published 1 year ago

winston-splunk-http-transport v1.1.0

Weekly downloads
100
License
MIT
Repository
github
Last release
1 year ago

winston-splunk-http-transport

A simple winston transport for logging to Splunk via the HTTP Event Collector.

Log events are sent in batches by default. To disable batching, set the "splunk.batchInterval" config param to 0.

Installation

npm install --save winston winston-splunk-http-transport

Usage

const winston = require("winston");
const SplunkTransport = require("winston-splunk-http-transport");

// Now use winston as normal
const logger = winston.createLogger({
  transports: [new SplunkTransport({ splunk: { token: "your token" } })]
});

logger.info("Hello world!");

API

splunkTransport = new SplunkTransport(opts);

Create a new instance of SplunkTransport. Takes the following configuration:

1.1.0

1 year ago

1.0.4

4 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago