Splunk Search

Exporting search results to a specified path

bleung93
Path Finder

I have looked at commands "outputlookup" and "outputcsv". Is there a way to export your search results to a specified path outside of $SPLUNK_HOME?

Another situation, doing the same thing as above but while ssh to a spunk instance and executing the command via CLI.

Being able to do this would be more efficient than in the UI and getting your csv in Downloads folder.

0 Karma

woodcock
Esteemed Legend

There is no way to do this directly but what We did was create a cron job that continuously watched the dispatch directory and whenever it found an outputcsv file with a proprietarily-encoded username/email, it would transport the file appropriately. This can be very important because it is VERY VERY easy to accidentally fill up the dispatch directory such that no searches will run or complete until the huge outputcsv file is removed.

Get Updates on the Splunk Community!

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 ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...