Reporting

Export a search result automatically to my local c:\

luckyman80
Path Finder

Hi Experts,
I want to insert a Splunk URL into a right click function in my app to open a set of results and save down to the local c:\ I tried the following

transid123 sourcetype="blah" |reverse |outputtext usexml=false | rename _xml as raw | fields raw | fields - _* | outputcsv C:/Temp/results.txt

I get results but a message saying
Could not write to file 'C:/Temp/results.txt': Failed to open file for writing.

Is there a different way to do this ?

0 Karma

somesoni2
Revered Legend

The outputcsv command saves search results to the specified CSV file on the local search head in the $SPLUNK_HOME/var/run/splunk/csv directory. You probably need a custom search command to achieve what you want.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to July and August Tech Talks, Office Hours, and Webinars!

Dive into our sizzling summer lineup for July and August Community Office Hours and Tech Talks. Scroll down to ...

Edge Processor Scaling, Energy & Manufacturing Use Cases, and More New Articles on ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Get More Out of Your Security Practice With a SIEM

Get More Out of Your Security Practice With a SIEMWednesday, July 31, 2024  |  11AM PT / 2PM ETREGISTER ...