@ac-moore-inc/splunk-logger

1.0.4 • Public • Published

Splunk Logger

An easy to use splunk logging utility.

Created and maintained by the A.C. Moore software engineering team.

To Use:

var splunkLogger = require('@ac-moore-inc/splunk-logger');

splunkLogger.init(config);
splunkLogger.log(eventObject, callback);

Config Object Syntax

{
  splunkUrl: 'http://urlToSplunk',
  splunkToken: 'splunk-token',
}

EventObject Syntax

{
  source: string,
  eventMsg: string,
  eventSev: string,
  errMsg: string,
  eventData: string
}

source:

The source the event is being logged from

eventMsg:

String description of what triggered the event being logged

eventSev:

Severity level of the event being logged

errMsg:

Any error message associated with the event being logged

eventData:

A JSON object containing additional information about the event being logged

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @ac-moore-inc/splunk-logger

    Weekly Downloads

    2

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    2.56 kB

    Total Files

    4

    Last publish

    Collaborators

    • acmoore
    • ari-acm
    • bclipper
    • gpatel