Getting Data In

CSV default output directiry

christantoy
Path Finder

Hi Ninjas

I would like to know if it possible to change the default csv file output directory below

Results written to file '/splunks/9000/splunk/var/run/splunk/mysearch.csv'

if is possible can you share it to me on how to? I read some others documents but no luck..

and the purpose of changing the default directory because i want to monitory my csv file outputs and to be send it to another server/client using custom scripts.

-----------00000-----------------
Regards and Thanks in Advance
Splunk Ninja From Philippines!

Tags (2)
0 Karma

Damien_Dallimor
Ultra Champion

If I were you I would consider performing the export from your custom script using Splunk's REST API.You can then export the results in csv format directly into your custom script for processing.A much simpler and more elegant architecture.

We have several language SDK's that make is easier to use the REST API also.

There are many examples available of how to perform the export , for example , here is a python example for exporting to a file.

christantoy
Path Finder

Thank you.

hmm this one is tough for me for a newbie... maybe i need to read it first.

btw this is my case

i have a search to create a .csv format after that i need to send the .csv file via script.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Observability Simplified: Combining User Experience, Application Performance & ...

Tech Talk Observability Simplified: Combining User Experience, Application Performance & Network ...

Event Series May & June: From Network Visibility to Service Intelligence

Unifying the Network: Moving from Alert Noise to Service Intelligence with Splunk ITSI In today’s hybrid ...

Global Splunk User Group Events: May + June 2026

Your Splunk Community Awaits: Discover Upcoming User Group Events Worldwide    Staying ahead in the fast-paced ...