Getting Data In

What is the difference between putting configuration files under the Splunk Search app and other apps?

ankithreddy777
Contributor

May I know the difference between putting configuration files under search-app or any other newly created app/slave-apps in indexers? If we put config files (indexes.conf and props.conf) under search-apps, can we access the index data through other apps?

0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi ankithreddy777,
access to indexes is related to users roles not to the App in which is inserted the indexes.conf file, so you could configure all conf files in search App, and use them in other Apps.
Every way I suggest to you to insert conf files in the related App for many reason:

  • at first your work order: it's important to clearly identify for every intervene on configurations working in only one App (I usually avoid also to use global objects!);
  • it's important if you need to copy an app in another system (so you can copy only one directory and not a directory + part of some files!);
  • it's useful to maintain Apps: when you create a field or an alias .. all these objects are usually related to sourcetype that usually in defined in props.conf, if you put sourcetype in the search App you have part of your props.conf file in an App (Search) and part of it in another one, and risk to be wrong;
  • maybe you could have only one indexes.conf file, but I don't like. I hope to have been clear. Bye. Giuseppe

View solution in original post

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi ankithreddy777,
access to indexes is related to users roles not to the App in which is inserted the indexes.conf file, so you could configure all conf files in search App, and use them in other Apps.
Every way I suggest to you to insert conf files in the related App for many reason:

  • at first your work order: it's important to clearly identify for every intervene on configurations working in only one App (I usually avoid also to use global objects!);
  • it's important if you need to copy an app in another system (so you can copy only one directory and not a directory + part of some files!);
  • it's useful to maintain Apps: when you create a field or an alias .. all these objects are usually related to sourcetype that usually in defined in props.conf, if you put sourcetype in the search App you have part of your props.conf file in an App (Search) and part of it in another one, and risk to be wrong;
  • maybe you could have only one indexes.conf file, but I don't like. I hope to have been clear. Bye. Giuseppe
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...