Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 461 Bytes

README.md

File metadata and controls

32 lines (23 loc) · 461 Bytes

Splunk Event

Install

npm install --save @paziresh24/splunk-event

# or

yarn add @paziresh24/splunk-event

Usage

import { splunk } from "@paziresh24/splunk-event";

const splnk = splunk.create({
    baseUrl: "https://splunk.local:8088",
    token: XXX,
    constant: { // optional
        userAgent: navigator.userAgent
    }
})

splnk.sendEvent({
    group: 'search_events',
    type: "click",
    ... // other event data
})