Heka Email Alert Output Module
1. Sample Configuration
alert = {
modules = {
email = {
from = "hindsight@example.com",
server = "localhost", -- optional, default shown
port = 25, -- optional, default shown, defaults to 465 for SSL/TLS
timeout = 15, -- optional, default shown
user = "smtp_user", -- optional
_password = "password", -- optional unsafe LOGIN/PLAIN auth only use with SSL/TLS
ssl_params = { -- optional
mode = "client",
protocol = "tlsv1",
}
},
}
}
2. Functions
2.1. send
Function that actually composes and delivers the email alert
Arguments
- msg (table) - Heka alert message
- cfg (array) - module configuration variables extracted from the message
Return
- error (string/nil)
source code: email.lua