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!

Splunk Observability Cloud | Unified Identity - Now Available for Existing Splunk ...

Raise your hand if you’ve already forgotten your username or password when logging into an account. (We can’t ...

Index This | How many sides does a circle have?

February 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

Registration for Splunk University is Now Open!

Are you ready for an adventure in learning?   Brace yourselves because Splunk University is back, and it's ...