Getting Data In

Powershell App Script Handling Error

dmcintosh1972
Explorer

Hi

Has anyone created a splunk app that has an input generated by a powershell script?

I have a script that runs that I am trying to improve the error handling.

My questions is how are you handling capturing errors, do you error to the splunkd.log or write out to a new log file in var/log/splunk?

I would appreciate any thoughts or examples of capturing errors and writing them out to splunk logs.

Thanks

0 Karma

jkat54
SplunkTrust
SplunkTrust

I typically write my own log and ingest it.

In python I log to splunkd.log and you may be able to do that with powershell, but I don't know how to.

0 Karma
Get Updates on the Splunk Community!

Deep Dive into Federated Analytics: Unlocking the Full Power of Your Security Data

In today’s complex digital landscape, security teams face increasing pressure to protect sprawling data across ...

Your summer travels continue with new course releases

Summer in the Northern hemisphere is in full swing, and is often a time to travel and explore. If your summer ...

From Alert to Resolution: How Splunk Observability Helps SREs Navigate Critical ...

It's 3:17 AM, and your phone buzzes with an urgent alert. Wire transfer processing times have spiked, and ...