All Apps and Add-ons

Splunk add-on builder interval REST API data input

ansif
Motivator

How can I include a text box to get time interval from user in splunk addon builder for REST API input?

0 Karma

chli_splunk
Splunk Employee
Splunk Employee

Try these codes

stanzas = helper.get_input_stanza()
Or
stanza = helper.get_input_stanza(your_stanza)

It will return sth like

{
"aob_test":{
"index":"add_on_builder_index",
"start_by_shell":false,
"interval":30,
"sourcetype":"ppp",
"host":"localhost",
"text":""
}
}

0 Karma

ansif
Motivator

I am new to this, can you help me on steps where exactly I need to update this?

0 Karma

chli_splunk
Splunk Employee
Splunk Employee

Please follow this doc https://docs.splunk.com/Documentation/AddonBuilder/2.2.0/UserGuide/ConfigureDataCollectionAdvanced
Basically we need to write some Python code thru AoB UI

0 Karma
Get Updates on the Splunk Community!

Devesh Logendran, Splunk, and the Singapore Cyber Conquest

At this year’s Splunk University, I had the privilege of chatting with Devesh Logendran, one of the winners in ...

There's No Place Like Chrome and the Splunk Platform

WATCH NOW!Malware. Risky Extensions. Data Exfiltration. End-users are increasingly reliant on browsers to ...

Customer Experience | Join the Customer Advisory Board!

Are you ready to take your Splunk journey to the next level? 🚀 We invite you to join our elite squad ...