Objective
This SOP outlines the steps to run live osquery SQL queries against a synced endpoint, for one-off investigation.
Requires the Assets administrator role (Assets Manager on the schema).
What it is β and is not
Power Query runs a query on the endpoint right now and shows you the result.
It does not update Jira Assets. The output is for reading, not for syncing. Results are not stored β when you close the screen, they are gone.
How long it takes
The agent asks the backend for pending queries on a fixed cycle, so a query waits for that next check-in rather than arriving instantly.
|
Situation |
Expected wait |
|---|---|
|
First query after a quiet period |
up to 5 minutes |
|
Follow-up queries in the same session |
about 1 minute |
Opening the Power Query tab is itself the signal: the moment you open it, the agents on your site are told to check in more often, and they speed up while you are still picking a host and writing the SQL. That fast mode stays on for two hours after your last query and then relaxes on its own.
The screen tells you the wait it expects and only gives up after it has passed β if it says "timed out", the agent genuinely did not answer.
This cycle is why the app is inexpensive to run at scale. A one-minute cycle for every endpoint, all day, is the single largest cost in the system, and almost all of it is spent asking "anything for me?" and being told no.
Key Steps
1. Open the tab
-
Go to iConfig β Power Query.
-
The endpoint must have checked in β an endpoint that is powered off will time out.
2. Choose the endpoint and the query
-
Select the host.
-
Pick one of the preset queries, or Custom to write your own SQL.
-
Presets are labelled by platform. A Windows-only table will error on Linux.
3. Run and read the result
-
Click Run.
-
The screen shows a spinner with the expected wait, then the rows.
-
Errors come back with a status code β usually the table does not exist on that platform or agent version.
4. Keep anything you need
Copy the output before leaving the screen. Nothing is stored on our side.
Cautionary Notes
-
Results are not saved. Close the tab and they are gone.
-
Large result sets take longer to transfer and can fail. Narrow the query with a
WHEREclause rather than pulling a whole table. -
Power Query is read-only inspection. It never changes the endpoint and never writes to Assets.
-
"Timed out" usually means the endpoint is offline, not that the query was wrong β check the Dashboard for its last check-in.
Tips for Efficiency
-
Run your queries in one sitting. The first is the slow one; the rest are fast while the session's fast mode is active.
-
Start from a preset and edit it β it saves guessing which osquery table exists on that platform.
-
For anything you want kept, it belongs in the inventory sync, not in Power Query. Ask us about adding it to the collection schedule.
Writing your own SQL
See Creating Custom Queries in Power Query.