Reference: Manage sensor string growth

When you issue a question to endpoints, Tanium Clients return answers in the form of strings for each sensor in the question. Tanium Cloud stores the strings and loads them into memory (the string cache) when it uses them. Excessive string growth might cause issues such as the [results currently unavailable] message in question results. You can control string growth by setting, for each sensor, a maximum age for the strings in storage.

Sensor string cleaning

To prevent sensor string growth from consuming too much space, Tanium Cloud clears a portion of the strings for all sensors when the total strings exceed a default threshold. However, the default string-cleaning settings do not distinguish among sensors in terms of how likely they are to generate strings that are unique and that are used only once. This matters because unique strings consume more space and clearing single-use strings has less impact on processing and traffic; Tanium Cloud does not have to reissue questions to regenerate the strings for future use. For example, the Detect Primary Alerts sensor often generates many unique, single-use strings. To account for these factors, you can configure string cleaning for individual sensors based on their Max String Age setting. Tanium Cloud bases string ages on when it last used the strings or received them from Tanium Clients and discards strings that exceed the maximum.

Maximum string age

In a sensor configuration, the Max String Age setting controls the maximum age that answer strings for the sensor can reach before Tanium Cloud removes them. The string age is based on the number of minutes since Tanium Cloud last used the string or received it from Tanium Clients. When you create a custom sensor, the setting is disabled by default and Tanium Cloud does not apply sensor-specific, age-based string removal for this sensor. If you enable the setting, it defaults to 7 days, which is the best practice value.

Note: The Max String Age does not apply to the results cache that Tanium Data Service (TDS) stores on Tanium Cloud. For more information, see Tanium Interact User Guide: Managing Tanium Data Service.

Maximum strings per sensor

Note: When limiting string growth, set the Max Strings Age instead of the Max Strings. Contact Tanium Support about obtaining the Sensor write permission for users and for guidance on setting values.

In a sensor configuration, the Max Strings setting controls the maximum number of answer strings that Tanium Cloud stores for the sensor before removing the oldest strings. Tanium Cloud includes the string count for temporary sensors (associated with Parameterized sensors) when calculating the string count for their source sensors. When you create a custom sensor, the default is 0, which specifies no limit. The string age is based on when Tanium Cloud last used the string or received it from Tanium Clients.

Note: The Max Strings does not apply to the results cache that TDS stores on Tanium Cloud. For more information, see Managing sensor results collection through TDS.

Check sensor string growth

Check string growth through Console

Check the string count of sensors to determine which are producing the most string growth.

Note: Sensor read permission is required to see string counts.
  1. From the Main menu, select Administration > Content > Sensors.
  2. Click Customize Columns Customize Columns and select String Count.
    Tip: On the Sensors page, you might have to navigate horizontally to match string count values to the associated sensors. To avoid the navigation step, drag the String Count column beside the Name column when you Customize Columns Customize Columns.
  3. Click the String Count column header twice to sort the grid by string count in descending order Sort (from highest to lowest).

Set the maximum string age

To control string growth by changing the Max String Age setting for sensors, consult Tanium Support about obtaining the Sensor write permission for users and for guidance on setting values. For more information, see Contact Tanium Support.

  1. From the Main menu, select Administration > Content > Sensors.

    Perform the remaining steps for each sensor that you determine requires a string age limit.

  2. Select the sensor and click Edit.
  3. Enable and set the Max String Age, and then click Save.
    Note: For almost all sensors, setting the Max String Age reduces string growth to a manageable level and setting the Max Strings (string count limit) is unnecessary. Contact Tanium Support before setting the Max Strings in extreme cases that might require a string count limit for individual sensors. For more information, see Contact Tanium Support.
  4. Over the next two days, repeat the steps to verify that string counts and memory usage are reduced as expected for the sensors that have string limits: see Check sensor string growth. If necessary, set a lower Max String Age for sensors that still produce too much string growth.