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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...