Splunk Search

excludeFromUpdate for app doesn't override class level setting

sylim_splunk
Splunk Employee
Splunk Employee

The app level serverclass setting "excludeFromUpdate" does not override high-level settings. Splunk serverclass.conf documentation indicate it should override higher-level settings.

Below is an example of a serverclass called myServerClass. I do not want to exclude anything from the app level, especially for myApp, thus, having an empty value.
The excludeFromUpdate for "yourApp" works fine, overrides the class level configuration.

[serverClass:myServerClass]
excludeFromUpdate = $app_root$/local,$app_root$/default,$app_root$/lookups

[serverClass:myServerClass:app:yourApp]
excludeFromUpdate = $app_root$/lookups

[serverClass:myServerClass:app:myApp]
excludeFromUpdate =

Tags (1)
0 Karma
1 Solution

sylim_splunk
Splunk Employee
Splunk Employee

According to the documentation below, it doesn't appear to accept "empty" string for the value and has to be prefixed by "$app_root$".

https://docs.splunk.com/Documentation/Splunk/7.3.1/Admin/Serverclassconf

*excludeFromUpdate = [,]...

  • Specifies paths to one or more top-level files or directories (and their contents) to exclude from being touched during app update. Note that each comma-separated entry MUST be prefixed by "$app_root$/" to avoid warning messages. * Can be overridden at the serverClass level. * Can be overridden at the app level. * Requires version 6.2.x or higher for both the deployment server and client.*

Instead, you can work it around by adding non-existing directory, such as "$app_root$/dummy .

View solution in original post

sylim_splunk
Splunk Employee
Splunk Employee

According to the documentation below, it doesn't appear to accept "empty" string for the value and has to be prefixed by "$app_root$".

https://docs.splunk.com/Documentation/Splunk/7.3.1/Admin/Serverclassconf

*excludeFromUpdate = [,]...

  • Specifies paths to one or more top-level files or directories (and their contents) to exclude from being touched during app update. Note that each comma-separated entry MUST be prefixed by "$app_root$/" to avoid warning messages. * Can be overridden at the serverClass level. * Can be overridden at the app level. * Requires version 6.2.x or higher for both the deployment server and client.*

Instead, you can work it around by adding non-existing directory, such as "$app_root$/dummy .

Get Updates on the Splunk Community!

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...

Splunk App Developers | .conf25 Recap & What’s Next

If you stopped by the Builder Bar at .conf25 this year, thank you! The retro tech beer garden vibes were ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...