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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...