Getting Data In

can limits.conf and server.conf be placed inside etc/apps//default

robf
Path Finder

title says it all? does not state clearly in docs like other files such as inputs.conf

0 Karma

robf
Path Finder

sorry, to clarify i meant
etc/apps//default
or
etc/apps//default

so not one of the splunkbase apps or default splunk apps.

0 Karma

the_wolverine
Champion

The issue with configuring these in ../default/ is that for any standard app distribution (e.g. search), the configuration file will be overwritten by any upgrade or re-install which applies the default configuration. This results in your custom config changes being wiped out.

Common practice is to put it in ../local/ to prevent the above scenario.

0 Karma

robf
Path Finder

thanks, yes as now i have added to my question i only meant my own custom app. not splunk base or default

0 Karma

woodcock
Esteemed Legend

These are global files so they should stay where they are.

0 Karma

robf
Path Finder

i can see they can both be found in default install app for a windows UF:

splunk\etc\apps\SplunkUniversalForwarder\default\

I dont want to overwrite anything, only add. I would rather add config only in etc/apps/ for large deployment

0 Karma

woodcock
Esteemed Legend

Yes, the DS/DC case is the one case where it would be distributed in an app context. We, too have several OS-based "base" forwarder apps that have server-wide settings. This is OK because these apps are mutually-exclusive from eachother. The reason it is not a great idea is because precedence will cause your app's version of the file to be preferred over the system's version. In the case we described, this is desirable. In the case of a "regular" app, this could be disastrous and very poor form.

0 Karma

robf
Path Finder

thanks so over all this does work but the idea is to use local rather than default where you are in a splunk base or splunk default app.

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 ...