Skip to content

paziresh24/splunk-event

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
})