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!

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...