Hello,
We have two different email alerts both have different search queries. Our requirement is to combine output of both alerts in single email. we can't combine search queries in single as these are different queries.
For example:
1st alert output = list of data attached as csv in email.
2nd alert output = dashboard link + Inline table
Even these two alerts produce two different table and requirement is to show these tables one after another in same email.
Thanks
Hi @agoyal,
That is currently not possible as a configuration for an email alert action in alert_actions.conf
. The list of possible options can be found here :
https://docs.splunk.com/Documentation/Splunk/latest/Admin/Alertactionsconf#.5Bemail.5D
You do however have a couple of options :
1- Use append
to include both results in the same search and send those results by email. This won't however give you the exact format you need and the table won't look as neat as what you're showing in your snapshots.
2- Build a custom alert action for sending emails that allows you to specify which fields you want to include in the body and which fields you want to have in the attachment. This would be a great upgrade the to existing email alert action that is very limited as you've seen. In case you opt for that option you can follow this doc for help on how to build the alert action :
https://docs.splunk.com/Documentation/Splunk/7.2.6/AdvancedDev/ModAlertsIntro
Hope this helps.
Cheers,
David
@agoyal - I'm sorry to say but that is not possible with current Splunk alerting mechanism.