Splunk Dev

deployment - config files in local or default

mataharry
Communicator

I am configuring apps to deploy.
Where is the best location for the configuration files, in myapp/local/ or myapp/default ?

Tags (1)
1 Solution

yannK
Splunk Employee
Splunk Employee

Usually, the configuration in local is considered as modified by the user, and the default is the one shipped with the app, that will be overwritten next time an upgrade will be applied.

The distinction between default and local makes sense for apps upgrade and for precedence reasons. (local has higher precedence than default). But not so much for deployment because default and local are both pushed to the deployment-clients.

From an app development point of view. When you develop an app, you edit the local to test, using the webinterface, then when you are done, you can move the config to default and make it final.
So I would recommend to use the same approach and store your configuration on default .
Then you will be able to see in local the files modified by the system (usually the app.conf to enable the app)

View solution in original post

yannK
Splunk Employee
Splunk Employee

Usually, the configuration in local is considered as modified by the user, and the default is the one shipped with the app, that will be overwritten next time an upgrade will be applied.

The distinction between default and local makes sense for apps upgrade and for precedence reasons. (local has higher precedence than default). But not so much for deployment because default and local are both pushed to the deployment-clients.

From an app development point of view. When you develop an app, you edit the local to test, using the webinterface, then when you are done, you can move the config to default and make it final.
So I would recommend to use the same approach and store your configuration on default .
Then you will be able to see in local the files modified by the system (usually the app.conf to enable the app)

MHibbin
Influencer

Agree with yannK on this one

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...