Getting Data In

How do you debug custom search command: Error in 'script'?

seva98
Path Finder

How do I debug following?

I have custom search command generatereport that I have developed on Linux, I am using logger to print information I need. Everything works fine there. I even get error with python output line of code if something is wrong.

But when I move my command to Windows I don't receive detailed error message, only Error in 'script' and it is almost impossible to debug. Is there a way how to read python log and found out what happened? Script had to fail somewhere.

alt text

0 Karma
1 Solution

seva98
Path Finder

I have no idea why this issue was connected to the logger but once I set stderr_dest = log instead stderr_dest = message it started working.

View solution in original post

0 Karma

seva98
Path Finder

I have no idea why this issue was connected to the logger but once I set stderr_dest = log instead stderr_dest = message it started working.

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