Skip to content

Instantly share code, notes, and snippets.

View VirtueMe's full-sized avatar

Benny Thomas VirtueMe

View GitHub Profile
//modinput.js
//this variant introduces an Argument class to make the syntax terser.
var splunk = require('splunk-sdk');
var DataType = splunk.modularInput.DataType;
var RequiredOnCreate = splunk.modularInput.Argument.RequiredOnCreate;
exports.getScheme = function() {
var scheme = {
name: 'Random Numbers',
//modinput.js
var splunk = require('splunk-sdk');
var DataType = splunk.modularInput.DataType;
exports.getScheme = function() {
var scheme = {
'Random Numbers',
'Streams events containing a random number',
['name', 'description', 'type', 'requiredOnCreate'],
[