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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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