All Apps and Add-ons

Scheduled Export of Indexed Data (SEND) to File: How to send search results to CSV in plain txt format?

pkaranam
New Member

Hi,

I have installed the Scheduled Export of Indexed Data (SEND) to File add-on: https://splunkbase.splunk.com/app/2914/
I am trying to export the query output from add-on page provided steps. But the output is not storing as Splunk search output, its storing some coded format.

Just want to understand can we store the output as we see in Splunk search output (like table format in csv file).

Please help with the changes/setting.

Thanks!
Pavan

0 Karma

aakwah
Builder

Hello,

Yes you can export search results to csv file using outputcsv command.

Your search query | outputcsv results.csv

You will find the file in this directory:

 $SPLUNK_HOME/var/run/splunk/results.csv

http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Outputcsv

Regards

0 Karma
Get Updates on the Splunk Community!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...