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