Tenzir supports sending events as email using the
save_email
operator. To this end, the
operator establishes a connection with an SMTP server that sends the message on
behalf of Tenzir.
Examples
Section titled “Examples”Email the Tenzir version as CSV message
Section titled “Email the Tenzir version as CSV message”versionwrite_csvsave_email "Example User <user@example.org>"
Send the email body as MIME part
Section titled “Send the email body as MIME part”versionwrite_jsonsave_email "user@example.org, mime=true
This results in an email body of this shape:
--------------------------s89ecto6c12ILX7893YOEfContent-Type: application/jsonContent-Transfer-Encoding: quoted-printable
{ "version": "4.10.4+ge0a060567b-dirty", "build": "ge0a060567b-dirty", "major": 4, "minor": 10, "patch": 4}
--------------------------s89ecto6c12ILX7893YOEf--