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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...