Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
splunk-events
Advanced tools
Javascript lib to create Splunk Logs via HTTP
import SplunkEvents from 'splunk-events';
let splunkEvents = new SplunkEvents();
splunkEvents.config({
token: 'xxx', // required
});
splunkEvents.logEvent({
user: 'tiago'
});
var SplunkEvents = require('splunk-events');
var splunkEvents = new SplunkEvents();
splunkEvents.config({
token: 'xxx', // required
});
splunkEvents.logEvent({
user: 'tiago'
});
{
// Required. This is provided by the Splunk administrator (@caldas)
token: 'xxxxx',
// Optional. Index created in Splunk. The 'token' option already associates the index info.
// This option is useful when the token have multiple indexes.
index: 'xxxxx',
// A debounced function will automatically flush your events after some time
autoFlush: true, //default
// Inactive time to wait until flush events. Requires 'autoFlush' option.
debounceTime: 2000, //default
// Max time to wait until flush events. Requires 'autoFlush' option.
debounceMaxWait: 5000 //default
// If the request fail, retry to send events using the debounced flush function
autoRetryFlush: true, //default
// VTEX's default endpoint to Splunk
endpoint: 'http://splunkindexers.splunk.vtex.com:8088', //default
// Splunk's default path
path: '/services/collector/event', //default
// Important steps will be logged in the console
debug: false, //default
}
The 'event' argument expects your custom data to send to Splunk Server. 'Event' must not be null.
This function add events to a queue with some default data
- Timestamp
- User Agent
- Session ID
- Browser Language
- Screen Resolution
- URI Host
- URI Path
- URI Protocol
- URI Hash
Immediately send all queued events to Splunk Server.
This is not required when using the 'autoFlush' option.
http://dev.splunk.com/view/event-collector/SP-CAAAE6P
FAQs
Javascript lib to create Splunk Logs via HTTP
The npm package splunk-events receives a total of 2,341 weekly downloads. As such, splunk-events popularity was classified as popular.
We found that splunk-events demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 55 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.