Managing saved questions in Console and Interact
Saved questions overview
Saved questions are questions that you store on the Tanium Server as configuration objects that include settings such as reissue intervals and access permissions. Saved questions expedite collecting information from endpoints because you can reissue the questions without reconstructing them in the Interact Ask a Question field or Question Builder. You can configure settings that facilitate merge and drill-down operations when you analyze question results. You can also associate each question with specific packages to facilitate action deployment.
-
For information about the user roles and permissions required to manage saved questions, see Manage saved questions.
-
For information about how RBAC assignments control who can issue saved questions and view the results, see RBAC for saved questions, dashboards, and categories.
Scheduled saved questions
You can reissue saved questions manually or based on a schedule through Tanium solutions or custom applications that use the Tanium XML API. For example, you can use Tanium™ Connect to periodically issue a saved question and send the results to an external server. If you schedule reissue intervals, saved questions can collect results in the future from endpoints that are not yet online. For example, employee laptops that are offline at the moment you save the saved question configuration might be online at least once during an eight-hour reissue interval.
You can set a periodic reissue interval when you create a saved question: select Reissue this question every and specify a number and unit for the reissue interval: Minutes, Hours, Days. The Tanium Server first issues the saved question immediately after you save the configuration and Tanium Clients that are online at that time return their answers.
If you configure reissuing, the Tanium Server reissues the saved question in the background at the specified interval. For example, if you save the saved question configuration at 9:00 a.m. local time and specify a reissue interval of every eight hours, the Server reissues the saved question at 5:00 p.m., 1:00 a.m., 9:00 a.m., and so on.
By default, the Tanium Server stores responses for seven days. The Interact Question Results page shows the responses as Recent results for endpoints that are offline when the Server issues the question. For more information, see Display results for online and offline endpoints.
You can use the question history to verify that the Tanium Server issues the saved questions based on the specified reissue interval. For more information, see Question history.
If you specify an eight-hour reissue interval, the Tanium Server reissues the question exactly every eight hours, regardless of time changes due to daylight savings time.
Which users can see the reissue interval for a saved question depends on the computer groups assigned to those users. For more information, see Reference: User-specific saved questions.
Predefined and custom saved questions
Tanium solutions that you import provide predefined saved questions. To list the questions and view their details, see View and filter saved questions. On the page, the User Name column shows Tanium solutions as the owners of predefined questions.
You can also create a saved question by issuing a dynamic question through the Ask a Question field or Question Builder and then saving the question. For more information, see Create a saved question.
Best practices for saved questions
Configuring the refresh frequency of sensor results
A lower value for the Max Sensor Age or Maximum Data Age setting increases CPU usage on endpoints. Do not lower the default values for sensors in saved questions that periodically reissue, or in questions that you use to deploy actions, or in questions that define membership in computer management groups and filter groups. Both settings control the maximum time for which Tanium Clients can use a cached result for a sensor, instead of re-executing it for a fresh result, when answering questions that use the sensor. You define the Max Sensor Age in a sensor configuration and the setting applies to all questions that use the sensor. You set the Maximum Data Age for a sensor when you issue a question and the setting applies only to that question. For more information, see Create a sensor and Maximum Data Age.
Use Reporting to view the results of questions with registered sensors
If a question uses sensors that are registered with Tanium Data Service (TDS), Tanium Reporting has advantages over Interact for viewing the results. For more information, see Viewing the results of saved questions in Interact or Reporting.
Do not edit Tanium-defined questions
Do not edit the predefined saved questions that Tanium solutions provide. For more information, see Tip 4: Limit customizations to Tanium content. Contact Tanium Support and review User-specific settings and results for saved questions if editing Tanium-defined questions is necessary. Alternatively, you can Clone a saved question that Tanium provides and edit the clone. You can also edit custom saved questions that you created from scratch.
Viewing the results of saved questions in Interact or Reporting
Interact provides a Saved Question Results page and dashboard results page for viewing the results of saved questions and dashboards of saved questions (see Question results overview). However, if you want to review results from sensors that are registered with TDS, Tanium Reporting provides the following advantages over Interact:
-
Fresh results
For online endpoints, results that you see in Reporting are never stale because TDS reissues questions every 30 minutes and the questions remain open for that entire interval. By contrast, results that you collect through Interact saved questions become stale if the associated values on endpoints change after the 10-minute question expiration interval but before the next reissue interval. For more information, see Question expiration.
-
Offline endpoint data
For offline endpoints, you can see results in Reporting for up to 30 days (the storage duration for registered sensors), whereas the Tanium Server stores the results of Interact saved questions for only 7 days. For more information, see Display results for online and offline endpoints.
Reporting shows results in reports and on the Explore Data page. For more information, see Working with Reporting reports.
You must register sensors with TDS before their results appear in Reporting. For more information, see Register or unregister sensors for collection.
Interact dashboards and categories
Interact uses dashboards and categories to organize saved questions.
-
Dashboard
A dashboard is a group of saved questions that are related with respect to the information that they retrieve from endpoints. For example, the predefined Hardware Inventory dashboard contains questions that retrieve CPU, disk, memory, and BIOS information. You can issue all the questions in a dashboard simultaneously. For more information, see Issue a dashboard of saved questions.
Note: Interact dashboards differ from Tanium Reporting dashboards. For more information, see Dashboards. -
Category
A category is a group of related dashboards. It serves as an umbrella term for questions that you use for a particular purpose. For example, the Security category includes multiple dashboards that contain security-related questions.
Interact provides predefined dashboards and categories, and you can create your own. To create, edit, reassign, export, or delete dashboards and categories, see Manage categories and dashboards.
RBAC for saved questions, dashboards, and categories
Content set permissions and dependencies
By default, users can see a saved question, dashboard, or category only if you assign those users a role with the associated read permission for the content set of that content. For example, users require Saved Question read permission on a content set to issue saved questions in that set. Users require Saved Question read and Dashboard read permissions to issue a dashboard of questions. Users require Dashboard Group read permission to see a category.
Any single saved question, dashboard, or category can belong to only one content set. Assigning questions to dashboards or assigning dashboards to categories does not automatically realign the content set permissions of that content to account for dependencies. For example, consider a case where you configure the following RBAC assignments:
-
Content set assignments: You assign two saved questions and a dashboard to content sets named Base and Core Content:
Content set name Content name Base Dashboard 1
Saved Question A
Core Content Saved Question B -
Dashboard assignments: You assign Saved Question A and Saved Question B to Dashboard 1.
-
Role configuration: You assign Saved Question read and Dashboard read permissions only to the Base content set in Role X. The role does not provide permissions to the Core Content set.
After you assign Role X to users, they can see Dashboard 1 and Saved Question A but not Saved Question B.
For more details about content permissions and content sets, see:
-
Tanium Console and Interact requirements: Describes the roles and permissions required to manage saved questions, dashboards, and categories
-
Managing access to content through content sets: Describes how to view, create, edit, and reassign content sets
Visibility options
In the configuration of each saved question, dashboard, or category, you can select one of the following Visibility options to control user access to that content:
-
According to RBAC
Role permissions on content sets control access to the content, as described in Content set permissions and dependencies.
-
Only the Owner and Admins can see this object
Only the content owner and users with the Administrator reserved role can see the saved question, dashboard, or category. Other users cannot see the content even if they have the necessary content set permissions.
Note: By default, the user who creates a question, dashboard, or category is its owner but you can transfer ownership to another user. For more information, see Delete content or transfer ownership.
To change the Visibility option for a saved question, see Edit a saved question. To change the option for a dashboard or category, see Edit category or dashboard settings.
The computer management groups that you assign to a user determine from which endpoints the question results are visible to the user. To change computer group assignments, see Assign computer groups. For more information about how computer group assignments affect the visibility of recent results, see Recent results and computer group assignments.
User-specific settings and results for saved questions
If you configure RBAC permissions that enable multiple users to work with the same saved question, the following factors control which question settings and results those users can see:
-
User-specific configuration changes
When a user saves changes to the question configuration, the Tanium Server saves a copy of the question. Anytime that user subsequently views the question, only the copy with the user-specific changes is visible instead of the original question.
-
Computer group management rights
The computer groups that you assign to users determine the Reissue value that they see in the question configuration and which recent results the users see for that question.
For more information, see Reference: User-specific saved questions.
View saved question details
Viewing saved question attributes can help you manage the questions, assess their impact on endpoints, and troubleshoot unexpected question results. For example, the Question Text attribute shows the sensors that the question includes, which can help you assess the question runtime on endpoints. Use the following pages to view saved questions:
-
page: Use this page to view all question settings and other information, such as when a question was last modified. For more information, see View saved question settings.
-
page: Use this page to see the list of questions and to issue them. The page provides several options for finding specific questions in a long list:
View saved question settings
Filter by categories and dashboards
Filter by text strings
- From the Main menu, go to .
- Use the text filters in the panels to find items that match a specified string. Click the x in the text search box to clear the filter.
Filter by favorites
A favorite is a category, dashboard, or saved question that you want to use as an optional filter on the Interact Overview page. The Tanium Server saves favorites as a user-specific setting; your favorites selections do not apply to other users.
To configure the display of favorite content, perform the following steps:
Filter by question attributes
Clone a saved question
Cloning is useful when you need to:
-
Create a modified version of a predefined saved question from a Tanium content-only solution.
Note: Do not modify a predefined saved question. -
Create a new saved question with settings that differ only slightly from an existing question. This is often easier than creating a new question from scratch.
Perform the following steps to clone a saved question:
- From the Main menu, go to .
- In the Saved Questions panel, mouse over the question, click Options
, and select an option to issue the question:
- Copy to Question Bar: Go to the
Ask a Question field, optionally modify the question, and press Enter. For more information, see Issue a free-form question.
- Copy to Question Builder
: Optionally modify the question and then click Ask Question. For more information, see Issue a question through the Question Builder.
- Copy to Question Bar: Go to the
- Click Save, configure the settings (see Create a saved question), and click Save.
Create a saved question
The question appears in the page and Interact Overview page.
Edit a saved question
You can edit all the attributes of a saved question except the actual query (Question Text).
- Use one of the following methods to open the Edit Saved Question page:
- From the Main menu, go to and click the question Name.
- From the Main menu, go to , find the question in the Saved Questions panel, mouse over the question, click Options
, and select Edit Properties.
- Configure the settings and click Save. For information about the settings, see Create a saved question.
Move saved questions between content sets
You can move saved questions in bulk between content sets to accommodate RBAC changes in your organization. For example, you might want to move certain saved questions to a content set that only highly privileged users can access.
- From the Main menu, go to .
- Select the saved questions and click Move to Content Set.
- Select a content set and click Confirm.
Issue a saved question
After you save a question, use one of the following methods to issue the question to endpoints:
-
Interact Overview page
From the Main menu, go to , go to the Saved Questions panel, and click the question name.
-
Tanium Home page
Go to the Tanium Home
page and, if the question has favorite status, go to the Favorite Interact Questions section and click the question name. If the Favorite Interact Questions section is not visible, see Getting started with Console and Interact.
-
Saved Questions page
From the Main menu, go to , select a question, and click Load.
-
Question configuration
To automatically reissue a saved question at intervals, edit the question configuration and set the Reissue interval. For more information, see Edit a saved question.
Tanium Console shows the results in the saved question results page. To filter or otherwise manipulate the results, see Analyzing question results in Interact.
Issue a dashboard of saved questions
In some cases, it is useful to issue several saved questions that are related based on the kind of information they retrieve from endpoints. In such cases, you can group the questions in a single dashboard and issue them simultaneously. For example, the predefined Hardware Inventory dashboard contains questions that retrieve chassis type, operating system, monitor, CPU, disk, memory, and BIOS information. For more information, see Interact dashboards and categories.
To issue all the questions in a dashboard:
For each question, the dashboard results page provides all the features that are available in the saved question results page, such as viewing Current, Recent, or Cached results. For more information, see Analyzing question results in Interact. The dashboard results page also has the following features (matching the numbers in the figure Dashboard results page):
|
|
The page shows the dashboard name, favorite status ( |
|
|
Use the Filter All Questions Displayed drop-down to filter all the results grids by computer group. |
|
|
Use the dashboards dropdown list to issue a different dashboard. |
|
|
For each results grid, the page shows the question name and favorite status. Click the favorite icon |
|
|
Filter by computer group or text string. |
|
|
Apply additional filters to a specific results grid. |
Manage categories and dashboards
Interact provides predefined dashboards and categories for organizing saved questions. For example, the Inventory category contains all the dashboards related to your hardware, software, and virtual inventory. The Applications dashboard contains saved questions that collect information about installed and running applications. You can manage both predefined and custom dashboards and categories to suit the needs of your organization. For example, you might create a custom dashboard to contain custom saved questions that do not relate to any existing dashboard.
The following tasks describe how to create, edit, reassign, export, or delete dashboards and categories.
For more conceptual information, see Interact dashboards and categories.
View and filter categories or dashboards
You can filter the categories and dashboards on the Interact Overview page if the lists are too long to scan quickly.
To view the settings of a category or dashboard, open it in edit mode. For more information, see Edit category or dashboard settings.
Create a category
Create a dashboard
Assign dashboards to a category
- From the Main menu, go to .
- In the Categories panel, mouse over the category, click Options
, and select Add/Remove Dashboards.
- In the Dashboards panel, select the dashboards to include in this category and click Apply.
Assign saved questions to a dashboard
- From the Main menu, go to .
- In the Dashboards panel, mouse over the category, click Options
, and select Add/Remove Saved Questions.
- In the Saved Questions panel, select the saved questions to include in this dashboard and click Apply.
Edit category or dashboard settings
Delete a category or dashboard configuration
When you delete a category, the Tanium Server does not assign its dashboards to any other category. When you delete a dashboard, the Server does not assign its saved questions to any other dashboard.
- From the Main menu, go to .
- In the Categories or Dashboards panel, mouse over the category or dashboard and click Delete
.
- Confirm that you want to delete the configuration.
Export or import saved questions
Export saved questions as a file in the format required for your workflow:
-
CSV
You can use any application that supports CSV format to display the same saved question attributes (columns) as the Console Saved Questions grid shows and then customize the display. For example, you can use Microsoft Excel to create charts based on saved question attributes.
-
JSON
You can export multiple saved question configurations as a JSON file. Exporting configurations is useful if you want to import them into another Tanium environment. For example, you might test saved questions in a lab environment to ensure that they work as intended before importing the questions into your production environment. You must be assigned a role with the Export Content permission to export a JSON file. If you have Import Signed Content permission, you can then import the file into another Tanium Server. The Administrator reserved role has export and import permissions.
Perform the following steps to export saved questions:
Import content files
You must be assigned a role with Import Signed Content permission to import content files.
Copy saved question configuration details
Copy information from the Saved Questions page to your clipboard to paste the information into a message, text file, or spreadsheet. Each row in the grid is a comma-separated value string in the content that you copy.
- From the Main menu, go to .
- Perform one of the following steps:
- Copy row information: Select one or more rows and click Copy
.
- Copy cell information: Hover over the cell, click Options
, and click Copy
.
- Copy row information: Select one or more rows and click Copy
Delete saved questions
Deleting a custom saved question might be warranted in certain scenarios. For example, the question might not be needed anymore, the question might not collect the expected data from endpoints, or another question might use fewer endpoint resources to collect the same data.
Perform the following steps before you delete a saved question:
- Determine if any scheduled content uses the saved question and assess the impact of removing or replacing the question. For example, a Tanium Connect connection might use the question as a source. To preserve the connection, you must find a replacement source.
- Decide which saved question is a suitable replacement or create a replacement if necessary. This step is required only if you must recreate or reconfigure the content that uses the question you plan to delete. For more information, see View saved question details and Create a saved question.
- Reconfigure or recreate scheduled content to remove dependencies on the question and replace it if necessary.
Perform the following steps to delete a saved question:
-
From the Main menu, go to .
-
Select the question and click Delete
.