Alerting

send a file as attachment if an alert triggered

surekhasplunk
Communicator

My requirement is if CPU load high is found and number of results is more than say 2 then i want to trigger an alert send email is working but along with the email i want to send an attachment a .txt file which i got steps to resolve that error. How to do this.
How can i send an external file as an attachment along with alert email.

Tags (3)
0 Karma
1 Solution

renjith_nair
Legend

You might need to do custom email actions for this. Instead of this , why don't you include the content of the txt file as a message content and send it with the alert ?
ie : in the message section . http://docs.splunk.com/Documentation/Splunk/6.5.0/Alert/Alertexamples#Scheduled_alert_example

Happy Splunking!

View solution in original post

0 Karma

renjith_nair
Legend

You might need to do custom email actions for this. Instead of this , why don't you include the content of the txt file as a message content and send it with the alert ?
ie : in the message section . http://docs.splunk.com/Documentation/Splunk/6.5.0/Alert/Alertexamples#Scheduled_alert_example

Happy Splunking!
0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...