Configuring SMB file share destinations

Important:

Before your connections can successfully send data to a destination, your Tanium Cloud instance, network egress allow list, and network allow list must be configured. Note the following:

  • Sign in to your Tanium Account and configure a network egress allow list rule for each destination fully qualified domain name (FQDN) and associated port. For more information about how to configure the network egress allow list, see Configuring network egress for Tanium Cloud.

  • Review cloud egress destinations and ports to ensure that a destination FQDN and associated port are in the network egress allow list.

  • TCP traffic that does not use Server Name Indication (SNI) is limited to one destination per port. For example, SQL traffic and SMTP traffic do not use SNI.

  • TCP traffic is not supported for the following ports: 22, 25, 111, 3128, 3129, 3130, 4000, 5000, 6000, 9100, 9301, 9302, 9901, and 9902.

  • UDP traffic is not supported.

  • Your Tanium Cloud instance has a proxy cluster with 2 public IP addresses. If the destination is in your network, add inbound traffic from these IP addresses to your network allow list.

For more information, see Network egress. For assistance, contact Tanium Support.

You can send information from a connection source through a satellite endpoint to a Server Message Block (SMB) file share.

Configure sending data to an on-premises SMB file share that is not accessible from the external internet

Certain destinations support using a configured satellite to send data to an on-premises server that is not accessible from the external internet. Make sure that your environment meets the following requirements:

  • Tanium Client: 7.7.3.8176 or later

  • Tanium Direct Connect

    • Configure at least one satellite that can establish communications with the on-premises destination. For the best results, use a satellite with at least four processor cores and 16 GB of memory. Satellites with less memory might be sufficient for small data volumes. Satellite configuration requires the Direct Connect Satellite write permission. For more information, see Managing satellites.

  • Tanium Endpoint Configuration

    • Tanium Endpoint Configuration installs Client Extensions and other tools for Direct Connect on endpoints. Sending Tanium Cloud data using a configured satellite requires Core CX 2.15.1306 or later and DEC CX 2.10.1745 or later. For more information, see Client extensions.

  • To configure the connection destination, configure a custom role that includes the Direct Connect Satellite read and Client Stream write Direct Connect permissions. For more information, see Configure a custom role.

    Note: Assign the Sensor read permission for the Endpoint Configuration content set to users who need to configure satellites.
    • If a user has the Sensor read permission for the Endpoint Configuration content set, satellites that do not have the required versions of core-cx or dec-cx endpoint tools do not appear as options.

    • If a user does not have the Sensor read permission for the Endpoint Configuration content set, satellites that do not have the required versions of core-cx or dec-cx endpoint tools can still appear as options. If you select a satellite that does not have the required versions of the endpoint tools, an error appears when you try to save the connection.

    The Connect Operator system role contains the required permissions in addition to the Sensor read permission.

  • Ensure that each user is assigned the custom role, and has access to the computer group containing the satellite intended for sending data to an on-premises destination. For more information, see Manage computer group assignments for a user.

Note the following:

  • You can configure a bandwidth throttle to limit the bandwidth and the number of concurrent connections used to send data to satellites. For more information, see Managing bandwidth throttles.

  • You cannot configure a connection using a satellite until the satellite status updates to online. Satellites might take several minutes or more to update to online after configuration.

  • Connection sources that gather information from endpoints, such as the Saved Question source, must finish gathering information before the satellite connection is established.

  • The Retrieve Properties and Retrieve Columns buttons use the configured Connect Timeout advanced setting value. Because on-premises destinations might require more time to establish a connection, increase Connect Timeout to 60 seconds.

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: 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 SMB file share destination

Specify details about the file share that you want Connect to send the data.

Note: SMB protocol does not provide server authentication. To minimize risk, use a dedicated service account with a strong password and the minimum permissions required to write to the file share. A least-privileged service account limits the risk to your environment if credentials are compromised.
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. In the Configuration section, select SMB File Share for the destination, and then provide a name the destination.
    • 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 an SMB file share destination
  2. Select a satellite. Click + Add Satellite, select a configured satellite that can communicate with the SMB file share server, and then click Apply.

    To configure a satellite, see Managing satellites.

    Note: Connections configured to use a satellite to send data to an on-premises destination do not export with the satellite configuration. After you import the connection, re-configure the satellite for this connection.
  3. Specify the server name.
    Important: The server must support NTLM authentication.
  4. Specify the share name, or use a variable as listed in Reference: Variables.
  5. (Optional) Specify the directory name, or use a variable as listed in Reference: Variables.
    Note: The directory must exist on the SMB file share server. If the directory does not exist, connection runs to this destination fail.
  6. Specify the file name, or use a variable as listed in Reference: Variables.
    Note: If a connection run fails or you stop the run, Connect does not upload a partial file. The file from the last successful run stays on the share, and the run log records that Connect skipped the upload.
  7. (Optional) Specify the domain or workgroup of the user.
  8. Specify the user name and password to access the file share.
    Note: SMB protocol does not provide server authentication. To minimize risk, use a dedicated service account with a strong password and the minimum permissions required to write to the file share. A least-privileged service account limits the risk to your environment if credentials are compromised.
  9. (Optional) Enter an SMB connection Timeout in seconds to increase the time available to complete a file transfer before the SMB connection times out.

If smbclient reports an error, the connection run fails. The run log shows the full smbclient output at the warning level.

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 SMB file share

You can choose to save your file in any of the 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.

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 a Tanium Cloud maintenance window might be interrupted or fail. Schedule your connections to run outside of the Tanium Cloud maintenance window.
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.