splunk / splunk-sdk-python

Splunk Software Development Kit for Python
http://dev.splunk.com
Apache License 2.0
698 stars 370 forks source link

Scheme parameters not saving to correct /local/inputs.conf file #573

Open koocies opened 7 months ago

koocies commented 7 months ago

Describe the bug The local/inputs.conf information is not saved to the app that it belongs to. Rather, it saves the information in the app that splunk is currently open to (i.e. the search app). When I saved my configuration in the settings > input datas for my app I found the inputs.conf file was not created under my app. Searched with grep and I found the settings were saved in the splunk/etc/apps/search/local/inputs.conf

To Reproduce Steps to reproduce the behavior:

  1. Have the random_numbers example app installed and splunklib 2.0.1
  2. Login to splunk and open the search app
  3. Go to settings > data inputs > "add new" for "Random Number
  4. Save settings
  5. less $SPLUNK_HOME/etc/apps/search/local/inputs.conf

Expected behavior Expected the inputs.conf to be saved in the app that it belongs to.

Splunk (please complete the following information):

SDK (please complete the following information):

Additional context Add any other context about the problem here.