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!

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...

Get ready to show some Splunk Certification swagger at .conf24!

Dive into the deep end of data by earning a Splunk Certification at .conf24. We're enticing you again this ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Now On-Demand Join us to learn more about how you can leverage Service Level Objectives (SLOs) and the new ...