Splunk Enterprise

Splunk Report Delivery

Roy_9
Motivator

Hello,

I have a report scheduled every week and the results are exported to pdf's. Is there an option to NOT email if no results are found because sometimes these PDF's have nothing in them.

 

Thanks

Labels (1)
0 Karma

jawahir007
Communicator

You can achieve this by using the sendemail command.

Rather than setting email as an action, you can incorporate the sendemail command directly into your search query, configuring it with the necessary parameters.

Example

<yoursearch> | sendemail to=example@splunk.com server=mail.example.com 
subject="Here is an email from Splunk" message="This is an example message"
sendresults=true inline=true format=raw sendpdf=true

 

------

If you find this solution helpful, please consider accepting it and awarding karma points !!
0 Karma

richgalloway
SplunkTrust
SplunkTrust

There is no such option because reports are sent unconditionally.

If you wish to send email only when there are results then consider changing the report to an alert.

---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...

Stay Connected: Your Guide to October Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...