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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...