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!

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 ...