All Apps and Add-ons

outputcsv export directory

henry_ty_leung
Explorer

Hi There,

Just wondering if i can change the export directory (i.e F:\ExportResults) using outputcsv command ?

Thanks
Henry

0 Karma

MuS
Legend

Hi henry_ty_leung,

No you cannot.
You could create a custom script that is triggered after the search is done and the outputcsv has written the file and explicitly put it into a Splunk bin folder to move / copy file to the final directory http://docs.splunk.com/Documentation/Splunk/6.2.0/Search/AddthecustomcommandtoSplunk

The reason why this was done, is partly security related; to prevent search users from being able to have Splunk create files in arbitrary locations.

hope this helps ...

cheers, MuS

0 Karma
Get Updates on the Splunk Community!

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL  The Splunk AI Assistant for SPL ...

Buttercup Games: Further Dashboarding Techniques (Part 5)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Customers Increasingly Choose Splunk for Observability

For the second year in a row, Splunk was recognized as a Leader in the 2024 Gartner® Magic Quadrant™ for ...