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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...