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!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...