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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

How Edge Processor's Durable Queue Works

Edge Processor sits in one of the most consequential places in any Splunk pipeline: between your data sources ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Quantify Your Splunk Investment Impact: Introducing Savings Metrics to Value Insights

Building on the foundation established in our initial Value Insights releases, we are introducing the Savings ...