Is it possible to retrieve the current app's configuration via javascript in my application.js? I don't see it in the /config endpoint or the output of Splunk.util.getConfigValue().
Edit
I mean the custom config handler that is pointed to by my restmap.conf
restmap.conf
[admin_external:myapp]
handlertype = python
handlerfile = AppConfig.py
handleractions = list, edit
class AppConfig(admin.MConfigHandler):
def setup(self):
configArgs = []
scalarArgs = []
joinArgs = []
if self.requestedAction == admin.ACTION_EDIT:
scalarArgs = ['hostname','port','username','password']
...
And the subsequent handleEdit method
def handleEdit(self, confInfo):
name = self.callerArgs.id
args = self.callerArgs
...
self.writeConf('myapp', 'appliance', self.callerArgs.data)
I'm interested in retrieving the values from the myapp.conf file that is created/updated by the self.writeConf above.
myapp.conf
[appliance]
key1 = val1
key2 = val2
key3 = val3
asked
02 Mar '11, 23:58
caphrim007
195●10
accept rate:
50%
Do you mean the stanza(s) that were written during app setup via setup.xml?
I believe so. The app config file I'm interested in is manipulated via my restmap.conf. Example provided above.