Getting Data In

How to save the CSV file to external location

khumer
Explorer

I would like to save the CSV file to an external location. I am using the |outputcsv command which is saving the file to a Linux but I need the file to be picked up from there and move to external location such as WVDCCRVFASS\ETL\FlatFiles\Splunk.

Can you please all let me know how can this be done?

0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Use a cron job to copy the file to the desired location.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Use a cron job to copy the file to the desired location.

---
If this reply helps you, Karma would be appreciated.
0 Karma

khumer
Explorer

Could you please list out the steps? I havn’t had this req before. Thanks!

0 Karma

richgalloway
SplunkTrust
SplunkTrust

It's not really a Splunk solution. You write a shell script that copies a file from one place (Splunk) to another (the external directory) then use cron to run the script some time after the Splunk job is scheduled to create the file.

See https://opensource.com/article/17/11/how-use-cron-linux for a good introduction to cron.

---
If this reply helps you, Karma would be appreciated.
0 Karma

khumer
Explorer

Thank you!

0 Karma

khumer
Explorer

Could you please list out the steps?

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...