How can I include a text box to get time interval from user in splunk addon builder for REST API input?
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":""
}
}
I am new to this, can you help me on steps where exactly I need to update this?
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