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!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...