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