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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...