Developing an add-on using the Splunk Java SDK, how to check if a stanza is enabled / disabled / deleted by the user from GUI?
Have a look at a what I am doing in this code.
In particular , follow the logic from the runStateCheckerThread method and onwards.
It is connecting to Splunk with the Service object and a token that gets passed to the Mod Input at runtime , looking for the Mod Input by stanza name and then introspecting the state with the isDisabled method.
Have a look at a what I am doing in this code.
In particular , follow the logic from the runStateCheckerThread method and onwards.
It is connecting to Splunk with the Service object and a token that gets passed to the Mod Input at runtime , looking for the Mod Input by stanza name and then introspecting the state with the isDisabled method.