Splunk Enterprise

Error: External search command <file.bat> returned error code 1.

spisiakmi
Contributor

Hi. I create simple file.bat file, which I placed it into .etc/apps/appname/bin

I created commands.conf in ./etc/apps/appname/local and its content is:

[sps_export_vitocharge]
filename = sps_export_vitocharge.bat
chunked = true
I restarted teh Splunk instance
 
I try to run this search:
 
my_search
| outputcsv sps_export_vitocharge
| script sps_export_vitocharge
 
and I receive error message:
Error: External search command <file.bat> returned error code 1.
The file.bat is only simple move of this generated csv file. It works from the shell window. Can anybody help me, please?
Labels (1)
0 Karma
Get Updates on the Splunk Community!

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...

Spotting Financial Fraud in the Haystack: A Guide to Behavioral Analytics with Splunk

In today's digital financial ecosystem, security teams face an unprecedented challenge. The sheer volume of ...

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability As businesses scale ...