Example: Multi-column sensors

Multi-column sensors collect multiple values of related data in a single answer from each Tanium Client. Create multi-column sensors for data that you want the Question Results page to show as a single record. For example, Registry Key Value Names with Data is an example of a Tanium-defined multi-column sensor. For the registry key that you specify, the sensor returns the User (if the key is associated with a user hive), Key Path, Value, Data, data Type, and OS Architecture type.

Figure 1. Results from a multi-column sensor
Results from a multi-column sensor

Sensor script for multi-column sensors

When you Create a sensor with multiple columns, its script must add a delimiter between each property as it writes to the standard output channel. The delimiter in the script must match the delimiter in the Use delimiter field of the sensor configuration. In the following example, the delimiter is the pipe | character.

Figure 2. Multi-column delimiters in sensor script
Multi-column delimiters in sensor script

Configure settings for multi-column sensors

When you Create a sensor, perform the following steps on the sensor configuration page to enable multiple columns:

  1. Go to the Settings section and select Split into multiple columns.
  2. In the Use delimiter field, specify a string delimiter to separate result values in the sensor script. The pipe | character is a common choice.
    Important: When creating questions that filter multi-column sensors, single-column filtering works only if the sensor definition specifies column delimiters with a single character (such as |), not multiple characters (such as |:). For more information, see Use sensor column filters.
  3. Enter each Column Name and corresponding Result Type. For more information about result types, see Sensor data types.
  4. Drag Drag columns the columns in the order that you want the Interact Question Results page to display them.
  5. (Optional) Select Hide if you want to hide a column from the default view of the Question Results page.
Figure 3. Multi-column result settings
Multi-column result settings