Hi all,
I've been searching high and low to understand how to get Splunk aware of the changes in inputs.conf of an app and then make use of the newly changed settings without restarting Splunk.
I want to have my configuration process similar to the UNIX and Wndows app (in which I check or uncheck the checkboxes and modify the poll intervals and I do not need to restart Splunk instance in order to have the changes in inputs.conf take effect)
This is the most related documentation I could find (but not useful enough):
http://www.splunk.com/base/Documentation/latest/Admin/Monitorfilesanddirectories
You may find a very brief one-liner description "To add new inputs without restarting Splunk, use Splunk Web..."
I have restmap.conf in my app folder with the following stanza:
[admin_external:websphereapp]
handlertype = python
handlerfile = WebSphereApp_python_handler.py
handleractions = list, edit
And I have defined three method subclassed from MConfigHandler, namely
def setup(self)
def handleList(self, confInfo)
def handleEdit(self, confInfo)
I looked at admin.py and found (not sure if I'm looking at the correct things)
self.shouldReload = false
def handleReload(self, confInfo)
How should I define the handleReload method (so that I do not need to restart Splunk instance in order to have the changes in inputs.conf take effect)?
Thanks!
Nicholas
... View more