Set Up a Recurring Saved Question, and Understand Who Can See the Results
Tanium allows users to take a question that pulls certain data from endpoints, save that question, and do multiple things with that saved question. One of these things is the ability to reissue the saved question on a recurring basis. This article will help you understand how recent results of reissued saved questions are stored, so that you can see the last known result for any endpoint that has responded, and know who is able to see the results and reissue schedule.
Saved question recent results are important for:
-
being able to view results for all systems whether they are currently offline or online
-
being able to export these results through Connect
When saving a question, the option to reissue on a recurring basis is available under Preferences & Tags*.* Selecting the reissue interval, you have the option to schedule the question to be asked every X minutes, days, or weeks.
After you set the reissue interval and save your changes, the saved question will execute on that interval, gather results for any endpoint that is online at the time the question is asked, and store the results.
How does it work?
To understand how and why the saved question results are stored, it's important to understand how a question is asked on an endpoint and what happens when the question is reissued.
In this scenario, we will have two users, Bob and Mary, who are both Tanium administrators.
Bob has been assigned management rights to the computer group All Windows (ID: 5).Mary has been assigned management rights to the computer group All Windows Desktops(ID: 10).
Bob asks the question: Get Installed Applications from all machines with Operating System contains Windows. The endpoint will evaluate that question, but first it has to determine if Bob has rights to ask questions of this endpoint. Since Bob has been assigned management rights to the computer group “All Windows”, a windows endpoint will determine that Bob does have rights to gather the data he seeks. Once the results come back, Bob saves the question and sets the reissue interval to every 1 day. This interval allows him to capture information from any endpoint that may come online tomorrow (or the next day), that was not online today when he asked the question. When this saved question is created, a setting is stored that says: this saved question was set to reissue by someone who has management rights to the computer group All Windows. Every time an endpoint runs this saved question, it will first determine whether it is part of that computer group before providing an answer to the question. This means that the reissue preference on a saved question is stored based on a user’s management rights, and only users with management rights to the exact same computer groups assigned to the saved question will be able to view the reissue schedule. When Mary views that saved question in the list, she will not see a reissue schedule because she has management rights to the computer group, All Windows Desktops, even though her computers are contained within the All Windows computer group.
Why does it work this way?
When a reissue schedule has been enabled for a saved question, every time that question is reissued the results are stored in the Tanium Server’s results cache. This is done so that recent results can be viewed within the results grid or exported via Connect. Computer group membership is evaluated on the endpoint and not on the Tanium Server. This allows the Tanium computer groups to be dynamic and always targeting the appropriate endpoints. However, the server does not know if a computer is necessarily a Windows desktop that belongs in the All Windows Desktops computer group unless it asks the endpoint. Therefore, it must store the results of a saved question not based on computer name, but rather based on the management rights ID of the user that asked the question. When a user selects the Recent tab in the results grid, the server will take the management rights ID of the user and identify if any results exist in the results cache that match that management rights ID. This is how the Tanium Server ensures that only the users with rights to view those machines see the recent results. Therefore, if a saved question has been configured to reissue and other users are unable to see the reissue schedule or the results on the Recent tab in the results grid, the reason is because the management rights assigned to those users are different than the rights of the user that created the reissue schedule on that saved question. To learn more about creating and configuring saved questions, please visit our documentation: Managing saved questions (tanium.com)