Hello,
I faced the similer issue with Splunk 4.1.6 running on Windows 2003.
I saw some application error events for "splunk.exe" in Windows Application Event logs.
I finally found that my case was caused by SPL-36206. It has been fixed in Splunk 4.1.7.
Splunk 4.1.7 release notes says...
Splunk Launcher CLI crashes when
HOMEPATH env variable not set.
(SPL-36206)
When my batch file is launched by Task Scheduler, HOMEPATH environment variable is not set, I confirm.
Could you try to set the "HOMEPATH" environment variable before launching "splunk.exe"?
Or could you upgrade Splunk to 4.1.7?
My current batch file is ...
SET HOMEDRIVE=C:
SET HOMEPATH=\TEMP
"C:\Program files\Splunk\bin\splunk.exe" search "<my search command>" -app search -auth admin:changeme
I hope this information helps you.
Thanks.
... View more