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.”
Get Updates on the Splunk Community!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...