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!

Combine Multiline Logs into a Single Event with SOCK - a Guide for Advanced Users

This article is the continuation of the “Combine multiline logs into a single event with SOCK - a step-by-step ...

Everything Community at .conf24!

You may have seen mention of the .conf Community Zone 'round these parts and found yourself wondering what ...

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...