Reissuing saved questions in 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.
To control which saved questions appear as favorites on the Tanium Home page, see Filter by favorites.
For information about the user roles and permissions required to manage saved questions, see Content management permissions. For information about how RBAC assignments control who can issue saved questions and view the results, see Policy actions.
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 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 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.
Management tasks for saved questions
Use the Interact Overview page to perform the following tasks for saved questions:
-
View, issue, create, and edit saved questions.
-
Move questions between content sets.
-
Define categories and dashboards, and assign saved questions to them.
-
View and select favorite categories, dashboards, and saved questions.
To control which saved questions appear as favorites on the Tanium Home page, see Filter by favorites.
For more information about the user roles and permissions required to manage saved questions, see Content management permissions. For more information about how RBAC assignments control who can issue saved questions and view the results, see RBAC for saved questions, dashboards, and categories.
Best practices for saved questions
The following are best practices for creating, editing, and issuing 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 .
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.
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:
-
Content management permissions: 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 and filter saved questions
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 view the list of questions, view their text (syntax), and issue them. The page provides several options for finding specific questions in a long list:
View question text
To see the full text of a question on the Interact Overview page:
- From the Main menu, go to .
- Hover over the question in the Saved Questions panel.
- Click Options
and select Show Question Text.
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:
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.
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 Filter by favorites.
-
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:
-
From the Main menu, go to .
-
In the Dashboards panel, click the dashboard name.
The dashboard results page appears, which shows a results grid for each saved question in the 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.
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 categories, dashboards, or questions
If you are assigned a role with the Export Content permission, you can export category, dashboard, and saved question configurations as a JSON file. The Administrator reserved role has that permission.
- From the Main menu, go to .
- In the panel for Categories, Dashboards, or Saved Questions, click Options
in the header and select the export option.
- Select items to export or Select all.
- Click Export, optionally modify the File Name, and click Export again.
The JSON file is saved to the downloads folder on the computer that you use to access Tanium Interact.