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.
Maximum strings per sensor
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.
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.
-
From the Main menu, select .
-
Under Manual Report Generation, click Run TPAN Report Now.
-
Under Reports click the HTML link for the Full Report that you just ran.
-
At the top of the report, select .
-
Review the grids that list the top sensors by string count and memory usage to determine which sensors produce the most string growth.
Check string growth through Console
Check the string count of sensors to determine which are producing the most string growth.
-
From the Main menu, select .
-
Click 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.
-
Click the String Count column header twice to sort the grid by string count in descending order
(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.