Security

How to check if a stanza is enabled / disabled / deleted by the user from the GUI through java modular input?

rohitdhobale
New Member

Developing an add-on using the Splunk Java SDK, how to check if a stanza is enabled / disabled / deleted by the user from GUI?

0 Karma
1 Solution

Damien_Dallimor
Ultra Champion

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.

View solution in original post

0 Karma

Damien_Dallimor
Ultra Champion

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.

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...