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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...