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!

Splunk App Dev Community Updates – What’s New and What’s Next

Welcome to your go-to roundup of everything happening in the Splunk App Dev Community! Whether you're building ...

The Latest Cisco Integrations With Splunk Platform!

Join us for an exciting tech talk where we’ll explore the latest integrations in Cisco + Splunk! We’ve ...

Enterprise Security Content Update (ESCU) | New Releases

In April, the Splunk Threat Research Team had 2 releases of new security content via the Enterprise Security ...