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 Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

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 ...