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!

Using Machine Learning for Hunting Security Threats

REGISTER NOW Seeing the exponential hike in global cyber threat spectrum, organizations are now striving more ...

Security Highlights | November 2022 Newsletter

 November 2022 2022 Gartner Magic Quadrant for SIEM: Splunk Named a Leader for the 9th Year in a RowSplunk is ...

Platform Highlights | November 2022 Newsletter

 November 2022 Skill Up on Splunk with our New Builder Tech Talk SeriesCan you build it? Yes you can! *play ...