All Apps and Add-ons

Custom Response Handler

fara3
Explorer

Hi,

I installed RestApi modular input 1.3.5 and I created a custom handler in responsehandlers.py (that I have configured in the tool afterwards):

class myCustomHandler:
def init(self,**args):
pass
def call(self, response_object,raw_response_output,response_type,req_args,endpoint):

    file = open("/home/fabric/updatePlatform.log", "a")
    file.write(raw_response_output+"\n")
    file.close()

Even if I uninstall the modular input or I restart splunk server, the Rest call is done in the background once and again. Do you know what can be happening?

Tags (1)
0 Karma
1 Solution

fara3
Explorer

After restarting the server, the node seems to be ok.

View solution in original post

fara3
Explorer

After restarting the server, the node seems to be ok.

Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...