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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

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