Configuring AWS S3 destinations

With Amazon Web Services (AWS) S3, you can store and retrieve data in real time from almost any type of structured and unstructured data source. With Connect, Tanium can write data directly to AWS S3.

Note: This destination appears in Connect as AWS S3 (Legacy). You can still create and edit connections with this legacy destination. For new connections, use the Cloud Storage destination with an AWS S3 profile instead. For more information, see Configuring cloud storage destinations.
Important: The AWS S3 destination is tested for compatibility with only the AWS cloud provider, and does not support cloud providers that offer S3 API-compatible storage solutions. Destination updates are tested against only AWS S3, not other S3 API-compatible storage solutions.
Note:

Configure a network egress allow list rule for each of the following FQDNs of your S3 bucket:

  • my-bucket-name.s3.amazonaws.com

  • my-bucket-name.s3.region.amazonaws.com

Assign the minimum required S3 bucket access permissions (s3:GetObject, s3:PutObject, and s3:ListBucket) before you configure an S3 bucket as a destination.

Specify general connection information

  1. From the Main menu, go to Modules > Connect > Overview. Go to the Connections section and click Create Connection.
  2. Enter a name and description for the connection.
  3. (Optional) In the General Information section, expand Advanced to configure the following settings:
    Log Level

    By default, Log Level is set to Information. To reduce the amount of logging, you can set Log Level to Warning, Error, or Fatal.

    Example Log Level setting
    Override Log Level

    If you are debugging the connection, select Override Log Level to set a Temporary Log Level (such as Trace or Debug) on this connection for a selected Number of Runs (up to 24). A scheduled or manual connection run, once started, counts towards the number of runs, regardless of the connection status. After the number of runs elapses, the logging for this connection returns to the Log Level you selected to prevent finer-grained logging from consuming additional resources for an indefinite number of runs.

    Minimum Pass Percentage

    Minimum percentage of the expected rows that must be processed for the connection to succeed.

    Memory Ceiling (GB)

    Maximum memory for the node process to run the connection. This defaults to 1 GB per connection, and cannot exceed the global maximum sum of memory for all running connections (by default, 8 GB). Increase this setting if a connection frequently exhibits out of memory errors while running.

    Note: If the sum of simultaneously scheduled connection Memory Ceiling values exceed the global Memory Ceiling, connections run until the global Memory Ceiling is reached, then any remaining connections enter a waiting queue if you select the Queue Connections configuration setting, or fail if you clear the Queue Connections configuration setting.

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, client status, or event. The settings vary depending on which source you choose.

Figure 1. Connection source settings
Connection source settings
Note:

If a Tanium solution or source shows Critical state-critical, the installed solution does not meet the minimum required version for proper compatibility and functionality. Upgrade the solution to the minimum required version or later.

Note: After you create a connection, you cannot update the connection source type, only the source configuration. If you want to change the source type, create a new connection.

For more information about available connection sources, see Connection sources.

Configure AWS S3 destination

Note: After you create a connection, you cannot update the connection destination type, only the destination configuration. If you want to change the destination, create a new connection.
  1. Select AWS S3 (Legacy) for the destination and provide a destination name. Do one of the following:
    • Create a new destination: Specify a unique name to save the configuration information as a new destination. Select New and then enter a Destination Name

    • Copy an existing destination: Select New, and then click Copy Settings. Select a destination, click Apply, and update the Destination Name.

    • Reuse an existing destination: Select Existing, and then select a Destination Name.

      Note: Configure a unique destination per connection. If you edit the settings for a shared destination for one connection, any other connections that use the shared destination are affected, and connection runs might fail.
  2. Specify authentication credentials, including AWS access key, secret access key, bucket name, AWS region, and file name. You can use a variable for both the bucket name and the file name, as listed in Reference: Variables.
    AWS destination settings
  3. (Optional) Configure advanced settings. In the Configuration section, under the destination settings, expand Advanced.
    1. If you have a proxy configured for your Tanium Module Server, select Use Tanium Module Server Proxy Setting.
    2. To use an endpoint other than the default endpoint that is associated with your AWS credentials, provide the host.
      Note: If you specify an AWS Virtual Private Cloud (VPC) endpoint, enable private DNS and private DNS names for the endpoint. You cannot upload files larger than 20 MB if the VPC does not have private DNS and private DNS names enabled.
    3. To control the chunk size of multipart uploads, enter a Part Size (MB). By default, the field is empty but defaults to 5 MB. The accepted range is 5–100 MB.
      Note: The maximum exportable object size is the part size multiplied by 10,000. For example, a 100 MB part size supports objects up to approximately 976 GB. If an export exceeds this limit, the run log contains an error similar to Export exceeded the <integer> GB limit (part size x 10,000 parts). Increase the AWS S3 destination's part size setting or split the export.

Configure filters

(Optional) In the Configure Output > Filters section, you can specify 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 AWS S3

In the Configure Output > Format section, you can choose to save your data in all available formats, as listed in Reference: Format types. Each format has slightly different configuration options, but all allow you to choose which column data to save.

Note: If the data format supports row delimiter characters, update the characters to ensure that individual rows are sent in a format that the destination can parse. You can define one or more of \n (new line), \r (carriage return), and \t (tab).

In the Configure Output > Columns section, you can change the Destination Label of each column and Value Type to force the column to be a String, Numeric, or Date/Time value.

Figure 2. Columns section with Destination Label and Value Type fields
Columns section with Destination Label and Value Type fields

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 Date/Time for the value, specify the format that you want to use for the column. For more information about how to use a variable, see Time stamp variables.

For more information about column customizations, see Reference: Column customizations.

Schedule the connection

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

Important: Connections scheduled to run during an upgrade of Connect, or any Tanium solution configured as a connection source, might be interrupted or fail. Schedule your connections to run at a different time than your Tanium upgrades.
Note: If you do not enable the schedule, the connection only runs when you manually run it, unless you configure an Event source. Connections with Event sources only run when a configured event is detected, and cannot be scheduled or manually run.

Use the Schedule section to update the schedule:

  • Select Enable schedule.

  • In the Schedule Type, select Basic to build a schedule with the provided controls.

  • To view or edit the cron expression directly, select Advanced - Define as a Cron Expression, and use the Advanced field to edit the cron expression.

Note: If a user that owns a scheduled connection is deleted, future scheduled instances of that connection do not run. For more information, see Issue: Scheduled connection owned by a deleted user no longer runs.

For more information about cron syntax, see Reference: Cron syntax for Connect.

Enable listening for an event

Connections with Event sources only run when a configured event is detected, and cannot be scheduled or manually run.

Use the Enablement section to send data when a configured event is detected:

  • Select Listen for this Event.

Save and verify connection

  1. After you enter the details for the connection, click Save.
    Tip: To save the connection and immediately run the connection, click Run and Save.

    If needed, resolve any errors or missing information. After the connection creates successfully, the connection details appear.

  2. To view details when the connection runs, click the Logs tab.
  3. To view an individual run log, expand the row table. For more information about how to resolve errors, see Troubleshooting.