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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...