I'm trying to get the Splunk_for_SQLServer app to work. I notice that some of my powershell scripts are executing, but some are not. The powershell app offers a really nice sourcetype=Powershell:ScriptExecutionErrorRecord field. Below is the error I'm seeing; I'm at a loss of what it would complain about GetDirectoryRoot. Does anyone have any experience with this error, or have some tips to better debug this? The host is Windows Server 2008 R2 Enterprise.
Thanks
ParentIdentity="3e7a6cdb-5689-4227-9f10-b2764696858b" ErrorIndex="0" ErrorMessage="Exception calling "GetDirectoryRoot" with "1" argument(s): "The path is not of a legal form."" PositionMessage="At C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-SQLServer\bin\Common.psm1:217 char:5 + $LVM = [IO.Directory]::GetDirectoryRoot($_.PrimaryFilePath) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" CategoryInfo="NotSpecified: (:) [], MethodInvocationException" FullyQualifiedErrorId="ArgumentException" Exception="System.Management.Automation.MethodInvocationException: Exception calling "GetDirectoryRoot" with "1" argument(s): "The path is not of a legal form." ---> System.ArgumentException: The path is not of a legal form. at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths) at System.IO.Directory.GetDirectoryRoot(String path) at CallSite.Target(Closure , CallSite , RuntimeType , Object ) --- End of inner exception stack trace --- at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception) at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0) at System.Management.Automation.ScriptBlock.InvokeWithPipeImpl(Boolean createLocalScope, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Pipe outputPipe, InvocationInfo invocationInfo, Object[] args) at System.Management.Automation.ScriptBlock.<>c__DisplayClass4.<InvokeWithPipe>b__2() at System.Management.Automation.Runspaces.RunspaceBase.RunActionIfNoRunningPipelinesWithThreadCheck(Action action) at System.Management.Automation.ScriptBlock.InvokeWithPipe(Boolean useLocalScope, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Pipe outputPipe, InvocationInfo invocationInfo, Object[] args) at System.Management.Automation.ScriptBlock.InvokeUsingCmdlet(Cmdlet contextCmdlet, Boolean useLocalScope, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Object[] args) at Microsoft.PowerShell.Commands.ForEachObjectCommand.ProcessRecord() at System.Management.Automation.CommandProcessor.ProcessRecord()" InnerException="System.ArgumentException: The path is not of a legal form. at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths) at System.IO.Directory.GetDirectoryRoot(String path) at CallSite.Target(Closure , CallSite , RuntimeType , Object )"
index = mssql source = Powershell sourcetype = Powershell:ScriptExecutionErrorRecord
... View more