Configuring cloud storage destinations

You can send data from Connect to cloud storage providers, such as Microsoft Azure, Google Cloud Storage, or Oracle Cloud Infrastructure (OCI), and save the data as a file.

Note:

Configure a network allow list rule to the cloud storage provider over port 443 for HTTPS traffic:

  • Microsoft Azure storage account standard endpoint FQDN in the format <storage-account-name>.blob.core.windows.net/<container-name>

  • Google Cloud Storage bucket FQDN in the format <bucket-name>.storage.googleapis.com/<profile-directory-value>/<destination-directory-value>

  • OCI bucket endpoint FQDN in the format <namespace>.compat.objectstorage.<region>.oraclecloud.com

HTTPS connections from this destination to a cloud provider use TLS 1.2. For more information about how to view details for a connection, see View connection status.
Note:

Connect might send data in multipart uploads to cloud storage destinations. When this occurs, there is the possibility that a connection might end prematurely, creating orphan upload files on the cloud storage provider. Connect cloud storage connections only upload data and do not delete any data on behalf of the user. By default, Microsoft Azure keeps orphaned multipart upload files for seven days, while AWS and OCI and Google Cloud Platform keep orphaned multipart upload files indefinitely. Review the retention policy for your cloud storage provider to set up a lifecycle policy.

Prerequisites

If you want to configure a connection destination to send a file to a cloud storage provider, you must first configure a cloud storage profile. For more information, see the following:

Prerequisites for Microsoft Azure cloud storage destinations

If you want to send a file to Microsoft Azure cloud storage, note the following settings:

  • You must configure a Microsoft Azure blob storage account with the following settings:

    • Performance: select Standard for a general-purpose v2 account type, or Premium for block blobs or page blobs account type.

      Note: General-purpose v1 accounts are not supported.
    • Enable storage account key access: select this to enable Shared Key authorization. The External Storage (Blob) destination does not support shared access signature (SAS) authorization or Entra ID authorization.

    • Endpoint type: select Standard endpoint (in the format https://<storage-account-name>.blob.core.windows.net). The External Storage (Blob) destination does not support Microsoft Azure DNS zone endpoints (in the format https://<storage-account-name>.z[00-50].blob.storage.azure.net).

    Note: Compressed and uncompressed blob files created with this destination are limited to a maximum of 200 GB.

    For more information about Microsoft Azure storage accounts, see Microsoft Azure Blob storage documentation: Storage account overview.

  • You must configure at least one storage account container to store blobs.

Note: Configuration requires the Azure storage account name, storage account container name, and storage account access key. For more information, see Microsoft Azure Blob Storage documentation: Get storage account configuration information.

Prerequisites for Google Cloud Storage cloud storage destinations

If you want to send a file to Google Cloud Storage, note the following settings:

  • You must configure a Google Cloud Storage bucket with the following settings:

    Note: Compressed and uncompressed blob files created with this destination are limited to a maximum of 200 GB.
  • You must configure a Google Cloud Storage service or user account with the following bucket permissions: storage.objects.create, storage.objects.delete, storage.objects.get, storage.objects.list.

  • You must configure hash-based message authentication code (HMAC) keys for Google Cloud Storage authentication to enable blob upload to the bucket. The HMAC key access ID and secret must be associated with the Google Cloud Storage service or user account assigned the bucket permissions. For more information, see Google Cloud Storage documentation: HMAC keys.

Note: Configuration requires the Google Cloud Storage bucket name, service or user account name, and HMAC key access ID and secret.

Prerequisites for OCI cloud storage destinations

If you want to send a file to OCI cloud storage, note the following settings:

  • You must configure an OCI bucket with the following settings:

    Note: Compressed and uncompressed blob files created with this destination are limited to a maximum of 200 GB.
  • You must configure customer secret keys for OCI authentication to enable blob uploads to the bucket. The access key and secret key must be associated with the OCI service or user account that is assigned the bucket permissions. For more information, see Oracle Cloud Infrastructure documentation: Creating a Customer Secret Key.

Prerequisites for AWS cloud storage destinations

If you want to send a file to AWS cloud storage, note the following settings:

  • You must configure an AWS S3 bucket. Assign the minimum required access permissions (s3:GetObject, s3:PutObject, and s3:ListBucket) before you configure the AWS 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 the Cloud Storage 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.

Specify a cloud storage profile, file name and optional timestamp format, file path prefix, and file compression type.

  1. Select Cloud Storage for the destination and then provide a name for the destination. You have the following options:
    • 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.
    Example Connect configuration for a cloud storage destination
  2. Select a Cloud Storage Profile. For more information about how to configure a cloud storage profile, see the following:
  3. Enter the File Name.
    Note: If your cloud storage profile is configured for Microsoft Azure, file names must conform to Microsoft Azure blob name rules. Do not define a file name that exceeds 1024 characters. If you define connection variables in the file name or select a File Name Timestamp Format, the file name might exceed the 1024 character limit after character substitution, even if the configured file name does not exceed this limit when you save the connection. For more information, see Microsoft Azure documentation: Blob Names.
    Note:

    If your cloud storage profile is configured for Google Cloud Storage, file names must conform to Google Cloud Storage object name rules.

    • If your bucket is in a flat namespace, do not define a file name that exceeds 1024 characters.

    • If your bucket has Hierarchical namespace enabled, do not define a file name that exceeds 512 characters.

    If you define connection variables in the file name or select a File Name Timestamp Format, the file name might exceed the character limit after character substitution, even if the configured file name does not exceed this limit when you save the connection. For more information, see Google Cloud Storage documentation: About Cloud Storage objects.
    Note: If your cloud storage profile is configured for OCI, file names must conform to OCI object name rules. Do not define a file name that exceeds 1024 characters. If you define connection variables in the file name or select a File Name Timestamp Format, the file name might exceed the 1024 character limit after character substitution, even if the configured file name does not exceed this limit when you save the connection. For more information, see Oracle Cloud Infrastructure documentation: Object Names.
  4. Enter a file Path Prefix to define the storage account container directory path to store the file, based on your storage account configuration. Use the format of /<directory-name-1>/<directory-name-2>/directory-names-n... to define path prefixes. If you configure a cloud storage profile with a Path Prefix, select this cloud storage profile for a Cloud Storage destination, and also configure a destination Path Prefix, the generated endpoint contains both Path Prefix values. The cloud storage profile Path Prefix value precedes the destination Path Prefix value, such as https://myaccount.blob.core.windows.net/container-name/profile-path-prefix/destination-path-prefix/file-name.
    Note: If your cloud storage profile is configured for Microsoft Azure, directory names and the directory path must conform to Microsoft Azure storage account directory rules and blob name virtual directory rules. For more information, see Microsoft Azure documentation: Directory Names and Microsoft Azure documentation: Blob Names.
    Note: If your cloud storage profile is configured for Google Cloud Storage, and your bucket has Hierarchical namespace enabled, folder names and the folder path must conform to Google Cloud Storage hierarchical namespace rules. For more information, see Google Cloud Storage documentation: Hierarchical Namespace.
    Note: If your cloud storage profile is configured for OCI, OCI buckets and objects exist in a flat structure. To simulate a directory structure, you can add a prefix string that includes one or more forward slash characters (/) to an object name. For more information, see Oracle Cloud Infrastructure documentation: Object Naming Using Prefixes and Hierarchies.
  5. If you need to configure a path prefix, file name timestamp format, file compression, or file behavior when no data is available to send, expand Advanced.
    Example advanced configuration for a cloud storage destination
    • Select a File Name Time Stamp Format to append a time stamp to the file name.

      Note: Use connection time stamp variables if you want to add a timestamp to a file name other than at the end.
    • Select a file Compression Type to generate a GZip or Zip file. Select None to generate an uncompressed file.

      Note: Compressed and uncompressed files created with this destination are limited to a maximum of 200 GB.
    • Select Write File Even if Empty to generate a file even if no data is available when the connection runs. Clear Write File Even if Empty to generate a file only when data is available when the connection runs.

      Note: If you configure the connection to add a time stamp to the file name, this option does not overwrite existing files. The connection generates a new file with the time stamp in the file name each time that it runs.

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 Cloud Storage

Important: If you want to send a file in JSON file format, select Generate Document and clear Wrap data with source to properly structure the JSON file for Microsoft Azure. Connection runs fail if you do not properly structure the JSON file.
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.

Note: After a connection run successfully completes, it may take several minutes or more for the cloud storage provider to populate the destination table with the data.

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.