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.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...