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 + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...