Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

How to edit additional fields of an app using the Splunk Python SDK?

$
0
0
Here is the documentation I am using: http://docs.splunk.com/DocumentationStatic/PythonSDK/1.1/client.html I am able to successfully create a new app using: applications.create('appName') It will show up in Splunk Web and all is well. However, I need to edit various attributes of the new app I just created. Most notably: `access.perms, content.owner, access.sharing` Splunk docs state that the `applications.create()` function takes an optional value `**params` which is a dictionary where its keys match the various attribute names of the application. So far I have only been able to change the description field using this method: args = {'description': 'a simple app'} applications.create('appName', **args) This works and is reflected in Splunk Web. The problem is that I can't seem to alter any other fields using this method such as the ones mentioned above. If I try, it will not give me any errors, and simply not make any changes. I am aware that there is another function called `application.update(**params)` which is supposed to update any field(s) specified in params that exist in a Splunk application object. For example: args = {'author': 'Horrace Mann', 'description': 'an updated description'} applications['myApp'].update(**args) However, it yields the same result as using `application.create()`, where I am able to alter the description, but nothing else. (also with no errors provided the keys match)

I would like to know if anyone else has experienced this and if they have found a solution, or if there is something noticeably wrong with my implementation that perhaps I am not catching. From my perspective it seems like the splunk python SDK is incomplete regarding these features


Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>