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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...