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. The Tanium Server stores the strings in the <Tanium Server installation folder>/strings directory and loads them into memory (the string cache) when it uses them. You can mitigate the impact that question results have on Tanium Server memory and disk usage 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, the Tanium Server 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 Server processing and traffic; the Server 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. The Server 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 the Tanium Server removes them. The string age is based on the number of minutes since the Server last used the string or received it from Tanium Clients. When you create a custom sensor, the setting is disabled by default and the Server 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 the Tanium Server. For more information, see Managing sensor results collection through TDS.

Maximum strings per sensor

Note: When limiting string growth, set the Max Strings Age instead of the Max Strings. Contact Tanium Support before setting the Max Strings in extreme cases that might require a string count limit for individual sensors.

In a sensor configuration, the Max Strings setting controls the maximum number of answer strings that the Tanium Server stores for the sensor before removing the oldest strings. The Server 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 the Server 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 the Tanium Server. For more information, see Managing sensor results collection through TDS.

Check sensor string growth

You can determine which sensors produce the most string growth through Tanium™ Health Check or Tanium Console. Health Check enables you to view the top sensors by both string count and memory usage. Console displays only the string count.

Check string growth through Health Check

If Health Check is not installed, install it before performing the following steps. For more information, see Installing Health Check.

  1. From the Main menu, select Shared Services > Health Check.
  2. Under Manual Report Generation, click Run TPAN Report Now.
  3. Under Reports click the HTML link for the Full Report that you just ran.
  4. At the top of the report, select Environmental Details > String Details.
  5. Review the grids that list the top sensors by string count and memory usage to determine which sensors produce the most string growth.
Figure 1. TPAN report showing details about sensor strings
TPAN string details

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

Not all sensors require a Max String Age, and the setting is disabled by default when you create a new sensor. If you enable the setting, the best practice is to set the value to seven days. Setting a lower maximum is required only in rare cases, such as for sensors that produce results containing date or time stamps. When you create a sensor, the best practice is to avoid including date and time stamps in string results because they tend to produce unusually large string growth. However, if such sensors are necessary, you can set the maximum as low as one day for sensors that use date stamps and as low as six hours for sensors that use time stamps. Contact Tanium Support if you are considering setting the Max String Age to lower than six hours; only exceptional cases require such limits. For more information, see Contact Tanium Support.

Note: Sensor write permission is required to change the maximum string age.
  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.