Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
splunk-events
Advanced tools
Javascript lib to create Splunk Logs via HTTP
npm install splunk-events
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. Splunk server endpoint
endpoint: 'xxxxx',
// Required. This is provided by the Splunk administrator
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
// 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 968 weekly downloads. As such, splunk-events popularity was classified as not 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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.