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!

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...

Spotting Financial Fraud in the Haystack: A Guide to Behavioral Analytics with Splunk

In today's digital financial ecosystem, security teams face an unprecedented challenge. The sheer volume of ...

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability As businesses scale ...