Managing Client settings and Index configurations

Tanium Client settings are stored in Windows registry settings on Windows endpoints, or in an SQLite database on non-Windows endpoints.

Note: Do not edit Tanium Client keys and values in the Windows registry. Use one of the methods in Modify Client settings to configure Client settings.

For the list of Client settings that you can review or configure, see Tanium Client settings reference.

You can also use Tanium Atlas to manage Tanium Index configurations, including exclusions and blockout window.

Review Client settings

Use any of the methods in this section to review Client settings. A setting that has not been configured on a Client uses the default value that is listed in the Tanium Client settings reference.

Review all settings

Ask Atlas Show the Tanium Client settings on the following endpoints: <endpoints>

Review Client settings in Tanium Atlas

Review a summary of the Client settings that are configured across endpoints, or the Client settings on specific endpoints.

  1. To review the settings across endpoints, enter the following chat prompt in Tanium Atlas:
    Show me the Tanium Client settings that are configured across my endpoints, with how many endpoints have each value.
    Atlas adds a table to the page that lists each setting and value with the number of endpoints that report it. Atlas uses the Client Health - Client Settings sensor, which reports only settings that are explicitly configured on each endpoint. An endpoint that doesn't report a setting uses the default value.
  2. To review the settings on specific endpoints, enter the following prompt:
    Show the Tanium Client settings on the following endpoints: <endpoints>
    Atlas adds a table to the page with one row for each setting (domain, key, and value) on each endpoint. If an endpoint doesn't respond to the settings request, Atlas reports the error instead.

Tanium Client Explicit Setting Sensor

Ask Atlas using the Tanium Client Explicit Setting sensor to review Client settings on endpoints. For example, the following question returns the LogVerbosityLevel setting for endpoints that have a custom tag that includes Lab:

PYTHON
Get Tanium Client Explicit Setting[LogVerbosityLevel] from all machines with custom tag contains Lab

For more information about working with question results, see Grid panel.

Command line interface (CLI)

Use the CLI to review Client settings locally on an individual endpoint or to retrieve Client settings in a script.

  • Windows: TaniumClient config get <SettingName>

  • Non-Windows: sudo ./TaniumClient config get <SettingName>

For detailed information about using the CLI, see Tanium Client command line interface (CLI).

Modify Client settings

Use any of the methods in this section to modify Client settings as necessary.

For the list of Client settings that you can configure, see Tanium Client settings reference. A setting that has not been configured on a Client uses the default value that is listed in the reference.

Packages

Deploy the Modify Tanium Client Setting (for Windows endpoints) or Modify Tanium Client Setting [Non-Windows] package to configure a Client setting on all targeted endpoints. Because Windows and non-Windows endpoints require separate packages to update settings, repeat the steps for both types of endpoints.

  1. (Optional) To review the current Client settings, enter the following chat prompt in Tanium Atlas:
    Show the Tanium Client settings on the following endpoints: <endpoints>
  2. Enter a prompt that includes the Client setting that you want to modify and the target endpoint:
    Change the Tanium Client setting <settingName> to <settingValue> on <endpoint>

    For a list of supported settings that you can modify, see Tanium Client settings reference.

  3. Click Approve once to deploy the change.
  4. Verify that the setting is updated. Enter the following prompt:
    Check that <settingName> is set to <settingValue> on <endpoint>. Use fresh data, not cached results.

Command line interface (CLI)

Use the CLI to configure Client settings locally on an individual endpoint or from a script.

  • Windows: TaniumClient config set <SettingName> <Value>

  • Non-Windows: sudo ./TaniumClient config set <SettingName> <Value>

For detailed information about using the CLI, see Tanium Client command line interface (CLI).

Deployment using a custom tanium-init.dat file

Managing Client settings for groups of Clients

Create a settings configuration to manage Client settings for groups of Clients.

Create and deploy a Client settings configuration

Create a settings configuration to configure general Client settings for a group of Clients.

  1. In Tanium Atlas, enter the following chat prompt and add the settings that you want to include:
    CODE
    Create a Tanium Client settings configuration named <configName> that targets the computer group <computerGroup> and sets <settingName> to <settingValue>
    Table 1. General Tanium Client settings

    Setting Name

    Description

    Cache Size

    The size limit, in MB, for the file cache on an endpoint. The default is 2048. For more information, see Chunk caching.

    Logging Level

    The level of logging on an endpoint. The following values are best practices for specific scenarios:

    • 1 (default): Use this value during normal operation.

    • 41: Use this value during troubleshooting.

    • 91 or higher: Use this value for full logging, for short periods of time only.

    Note:

    A value of 0 disables logging. As a best practice, do not disable logging.

    Extensions Logging Level

    The level of logging for Client Extensions (such as the Tanium™ Client Recorder Extension and Tanium™ Index) on an endpoint. The following values are best practices for specific scenarios:

    • 11 (default): Use this value during normal operation.

    • 41: Use this value during troubleshooting.

    • 91 or higher: Use this value for full logging, for short periods of time only.

    Note: A value of 0 disables logging. As a best practice, do not disable logging.
    Anti-tamper Prevent end users from stopping the Tanium Client service or tampering with Tanium Client files or registry entries on Windows endpoints.
    • On: Enable anti-tamper

    • Off: Disable anti-tamper

    Note:
    • To enable this setting, you must have configured an anti-tamper recovery password. For the steps, see Configure the anti-tamper recovery password.

    • For general information about using tamper protection, see Manage tamper protection.

    • This feature requires Tanium Client 7.6.4.2033 or later. If you enable this setting, only endpoints with Tanium Client 7.6.4.2033 or later will be targeted by this settings configuration.

    If you are creating a settings configuration that applies to virtual desktop infrastructure (VDI) endpoints, you can also configure the following VDI settings. Use the provided best practice values for VDI to reduce resource use on VDI endpoints. For more information about tuning settings for VDI endpoints, see Tuning Tanium Client settings for VDI endpoints and other endpoints with limited resources.

    Client Setting

    Default Value

    Best Practice Value for VDI

    Explanation

    RandomSensorDelayInSeconds

    0

    5

    By default, sensors run immediately. This setting delays the execution of any sensor by a random time up to 5 seconds, which reduces concurrent execution of sensors and packages.

    Note: If poor performance occurs on VDI infrastructure, you can increase this value incrementally up to 20.

    MaxAgeMultiplier

    1

    2

    Each sensor has a Max Sensor Age setting that determines how long the Client caches sensor results for subsequent questions that include the same sensor. This setting causes the Client to multiply the maximum age configured for each sensor by 2, which doubles the time results are cached for each sensor and reduces sensor executions.

    MinDistributeOverTimeInSeconds

    0

    60

    Each action has a Distribute Over setting that randomizes the distribution of that action over the specified time. By default, no minimum applies, and some actions might be configured for immediate distribution. This setting forces all actions to distribute over at least 1 minute.

    SaveClientStateIntervalInSeconds

    300

    1800

    By default, the Client state is written to disk every 5 minutes. This setting increases the time to 30 minutes to reduce disk writes.

  2. Review the action and then click Approve once.
    Atlas stores the configuration but does not deploy it. Atlas reports that the configuration is not deployed and asks whether to deploy it.
  3. Deploy the configuration. Enter the following prompt:
    Deploy the Tanium Client settings configuration <configName>
    Note: Deploying a configuration also redeploys all other Client settings configurations.

Prioritize Client settings configurations

The order of the configurations in the Settings Configurations list determines the priority of each configuration. If multiple configurations target an endpoint, the configuration with the highest priority takes effect on the endpoint. You can reorder the list to adjust the priority of each configuration.

  1. In Tanium Atlas, enter the following chat prompt:
    Open the configuration priority panel for Client settings configurations

    To have Atlas stage a specific change in the panel, describe it in the prompt. For example: Move <configName> up one position in the Tanium Client settings configuration priority

    The Client settings configuration priority panel is added to your page. Configurations with the anti-tamper feature enabled are labeled Anti-tamper.
  2. In the panel, drag the configurations, or use the keyboard, to put them in order, highest priority first.
  3. Click Prioritize, and then click Confirm priority and redeploy.
    Important: If an anti-tamper configuration moves below a configuration that does not have anti-tamper enabled, endpoints that match the higher-priority configuration lose anti-tamper protection. The panel warns you before you confirm.
    Tanium Atlas redeploys settings configurations as necessary so that each endpoint receives its highest-priority configuration.

Create a custom log for a Tanium Client

If you want to troubleshoot only specific information in predefined Tanium logs, you can configure a Tanium Client to filter the logs based on a regular expression and to copy the matching content to a custom log. Custom logs are especially useful if you set a high logging level for the predefined logs such that they roll over too quickly and record too much information for you to easily find specific issues. You can create as many custom logs as necessary and base each one on a different filter. After you configure a new log type, the Tanium Client creates a custom log file upon recording an event in a predefined log that matches the regular expression. Thereafter, whenever the predefined logs record additional events that match the filter, the client copies those records to the custom log.

Best practice: Log filtering can consume significant resources on a client, especially if you set a high logging level. Therefore, the best practice is to remove custom logs after you finish a troubleshooting session. For more information, see the logging level setting in the CLI command options for custom logs table.
Tip: You can also configure custom logs on a Tanium Core Platform Server. For more information, see CLI command options for custom logs (Tanium Appliance deployments) or Create a custom log for Tanium Core Platform Servers (Windows deployments).

Perform the following procedure with the options listed in the CLI command options for custom logs table, using the TaniumClient CLI executable on the applicable endpoint.

  1. Sign in to the host system of the Tanium Core Platform Server or Tanium Client.
  2. Open the Command Prompt (Windows) or, if necessary, the Terminal (non-Windows) and navigate (cd) to the Tanium Client installation directory.
  3. Configure a regular expression for the custom log.
    • Windows: TaniumClient config set Logs.<log prefix>.FilterRegex "<filter regex>"

    • Non-Windows: sudo ./TaniumClient config set Logs.<log prefix>.FilterRegex "<filter regex>"

  4. (Optional) Set the logging level of the custom log. If you skip this step, the default level is 1.
    • Windows: TaniumClient config set Logs.<log prefix>.LogVerbosityLevel <logging level>

    • Non-Windows: sudo ./TaniumClient config set Logs.<log prefix>.LogVerbosityLevel <logging level>

CLI command options for custom logs

Table 2. CLI command options for custom logs

Executable/Option

Description

Log prefix

The log file prefix. The client automatically appends a number to the prefix and adds the suffix (.txt) upon generating the log. For example, if you enter CompletedRegistrations as the prefix for a custom client log, the first file that the Client generates for that log type is CompletedRegistrations0.txt.

Filter regex

The regular expression to use for filtering the predefined logs. The Server or Client copies log entries that match the filter to the custom log.

Note: The filter applies only to log messages, not to thread names, thread IDs, or timestamps.

Logging level

The logging level of the custom log. For more information, see Logging levels.

Important: Higher logging levels consume more resources on the client. If different custom log types have different levels, the client generates all log types at the highest level that is set for any custom log type. This ensures that filter matching applies to all log messages at the highest configured level. However, in this case, each log file still contains only the level of detail that corresponds to the level you set for its log type. For example, you might set the logging level to 1 for predefined logs on the client and set the level to 91 for a custom log. In this case, the client generates log messages at level 91 for all log types and the custom log contains messages at level 91, but the predefined logs contain messages only at level 1.