I'm trying to use Splunk to run synthetic transactions in powershell and receiving the results.
I've Installed the Add-on for PowerShell on the universal forwarder installed on one of the front end servers.
I have added the following lines in inputs.conf of the universal forwarder
[powershell://Syn-Trans]
script = Test-CsIm -TargetFQDN (Get-CsComputer -Local).pool | Select-Object TargetFqdn, Result, Latency, @{n="SplunkHost";e={$Env:SPLUNK_SERVER_NAME}}
schedule = */30 * * * *
sourcetype = WinEventLog:Microsoft-Windows-PowerShell/Synthetics
But the result does not turn up in Search.
does your script work without Splunk?
here's how to check if it's working in Splunk: http://docs.splunk.com/Documentation/AddOns/latest/MSPowerShell/Troubleshooting
does your script work without Splunk?
here's how to check if it's working in Splunk: http://docs.splunk.com/Documentation/AddOns/latest/MSPowerShell/Troubleshooting