Deployment Architecture

Can we deploy, using deployment server, an app with state disabled?

somesoni2
Revered Legend

Hi There,

I have a failover instance of Splunk and an app with scheduled searches with summary indexing enabled. My requirement is that the scheduled search of app in failover instance should be disabled state, to avoid duplicate data as prod version is also running. During failover, we can manually enable the scheduled searches on failover.

One simple solution that I reached to (for minimal manual work during failover) is that to deploy the app as disabled in failover instance and just enable the app during failover.

Can anyone help me confirm if this will work, deploying an app with state as disabled using deployment server?

0 Karma
1 Solution

mloven_splunk
Splunk Employee
Splunk Employee

Yep. Take a look at this option in serverclass.conf:

stateOnClient = enabled | disabled | noop
    * If set to "enabled", sets the application state to enabled on the client, regardless of state on the deployment server.
    * If set to "disabled", set the application state to disabled on the client, regardless of state on the deployment server.
    * If set to "noop", the state on the client will be the same as on the deployment server.
    * Can be overridden at the serverClass level and the serverClass:app level.
    * Defaults to enabled.

View solution in original post

mloven_splunk
Splunk Employee
Splunk Employee

Yep. Take a look at this option in serverclass.conf:

stateOnClient = enabled | disabled | noop
    * If set to "enabled", sets the application state to enabled on the client, regardless of state on the deployment server.
    * If set to "disabled", set the application state to disabled on the client, regardless of state on the deployment server.
    * If set to "noop", the state on the client will be the same as on the deployment server.
    * Can be overridden at the serverClass level and the serverClass:app level.
    * Defaults to enabled.

somesoni2
Revered Legend

Wow, I must be half asleep not to see this...Thanks a lot...

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...