Splunk Search

Output value required while creating Splunk Version 1 Custom Command

rodneyjerome
Explorer

hi,

I am trying to create a simple splunk custom command using Intersplunk. Its a simple code which displays the events as is. However im getting this error

A value for "output" is required

import json
import sys
import csv
import splunk.Intersplunk

json_events = splunk.Intersplunk.readResults(None, None, False)


splunk.Intersplunk.outputResults(json_events)

Could someone help on where I am going wrong

Tags (1)
0 Karma
Get Updates on the Splunk Community!

Infographic provides the TL;DR for the 2023 Splunk Career Impact Report

We’ve been shouting it from the rooftops! The findings from the 2023 Splunk Career Impact Report showing that ...

Splunk Lantern | Getting Started with Edge Processor, Machine Learning Toolkit ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Enterprise Security Content Update (ESCU) | New Releases

In the last month, the Splunk Threat Research Team (STRT) has had 2 releases of new security content via the ...