Splunk Search

How do you generate CSV File on Schedule basis automatically as an attachment to Email.

Dheeru
Engager

Hello,

How do we schedule a CSV file as an attachment to the Email. What is the script that needs to be added in the source code in Splunk for a dashboard. I wanted to schedule the CSV file on weekly/monthly basis. 

Kindly, let me know how we can do that?

Tags (2)
0 Karma

aasabatini
Motivator

Hi @Dheeru 

I think the best way is set an alert.

define your alert search and when you select your alert action > send mail and define attach  csv.

aasabatini_0-1619682034411.png

 

anyway if you wuold send mail directly on your search bar you need this comand

sendmail

here the documentation

https://docs.splunk.com/Documentation/Splunk/8.1.3/SearchReference/Sendemail

Ale

“The answer is out there, Neo, and it’s looking for you, and it will find you if you want it to.”
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...

Customer success is front and center at .conf25

Hi Splunkers, If you are not able to be at .conf25 in person, you can still learn about all the latest news ...