Hi all,
I've got a problem with the execution of this command from a Windows ".bat" script:
splunk.exe search "| savedsearch test01" -app windows -format csv -auth admin:password > C:\temp\splunklocalhost.csv
The command works perfectly from a command prompt (I'm on a Windows Server 2008 Standard).
Tried also:
splunk.exe search """| savedsearch test01""" -app windows -format csv -auth admin:password > C:\temp\splunklocalhost.csv
and:
splunk.exe search \"| savedsearch test01\" -app windows -format csv -auth admin:password > C:\temp\splunklocalhost.csv
with no luck.
The suspect is that there is something wrong with the double quotes and that the parameters are not passed correctly (by the Windows command interpreter) to "splunk.exe".
Any ideas?
Thank you very much,
Luca
... View more