Configuring an email destination

You can send information from a connection source to a set of email addresses. You can either include the results in the email body, or create an attachment.

Prerequisites

  • Email addresses for sending and receiving email results.
  • Information about your mail server, including host, port, user name, password, and authentication information.

Specify general connection information

  1. On the Connect home page, click Create Connection > Create.
  2. Enter a name and description for your connection.
  3. Enable the connection to run on a schedule.
    Select Enable. You can set up the schedule when you configure the rest of the connection. If the schedule is not enabled, the connection only runs when you manually run it.
  4. (Optional) Set the logging level.
    By default, the logging is set to Information. Set the log level to Trace or Debug if you are debugging the connection. To reduce the amount of logging, you can set the log level to Warning, Error, or Fatal.

Configure the connection source

The connection source determines what data you are sending to the destination. This data is usually information from Tanium, such as a saved question, question log, system status, or event. The settings vary depending on which source you choose.

Configure the email results destination

  1. Name the destination.
    You can either indicate a unique name to save the configuration information as a new destination, or you can select an existing email results destination from the list.

  2. In the Email section, provide information about the email subject, to address, and from address sections. Some fields also support variable substitution, as listed in Reference: Variables.
  3. Specify information about the mail server in the Mail Configuration section:
    • Provide the host name, port, user name, and password.
    • Select Enable TLS if the connection with the SMTP server is authenticated and uses TLS/SSL encryption.
    • Specify a Timeout for Sending Email value for sending the message. The default is 0, which means that there is no timeout. A recommended timeout value is 10 seconds.
  4. (Optional) Specify advanced settings. Some fields also support variable substitution, as listed in Reference: Variables. You can configure CC and BCC addresses for the email and specify the settings for the email attachment. You can compress the attachment into a zip or gzip file.

Configure filters

(Optional) You can use filters to modify the data that you are getting from your connection source before it is sent to the destination.

For more information about the types of filters you can configure, see Reference: Filtering options.

Format data for email

You can choose from any of the available formats for your email. The data is sent in the body of the email by default.

If you want to attach a file to the email instead of having the data in the body of the email, edit the Advanced settings for the Email destination and select Attachment. Specify a file name and whether the file should be compressed.

The data format for email destinations is HTML by default. You can choose the columns that are displayed in the resulting email. You can change the Destination name of each column and Value Type to force the column to be a String, Numeric, or DateTime value. If you choose Numeric for the value, you can specify a default value that is used if the data cannot be coerced into a numeric value. You can specify any negative or positive number. If you choose DateTime for the value, specify the Date/Time format that you want to use for the column.

Schedule the connection

Connections can run at a highly configurable time interval, such as multiple times per hour, day, week, or month.

Update the schedule: 

  • Use the Generate Cron tab to build a schedule based on some common time intervals. This tab generates a Cron expression.
  • To view or edit the Cron expression directly, click the Edit Cron Expression tab.

Save and verify connection

  1. Click Create Connection > Create. When the connection gets created, your new connection displays in the list on the Connections page.
  2. To view details about when the connection is running, click the name of the connection. On the resulting connection details page, click the Runs tab.
  3. To view individual run logs, click the link in the Status column in the Runs table.

Last updated: 9/18/2018 4:07 PM | Feedback