Spaces method and path for this operation:
get /s/{space_id}/api/osquery/scheduled_results/{scheduleId}/{executionCount}/results
Refer to Spaces for more information.
Get paginated query result rows (the actual osquery output data) for a specific scheduled query execution.
Path parameters
-
The schedule ID of the scheduled query.
-
The execution count for this scheduled query run.
Query parameters
-
The kuery to filter the results by.
-
The page number to return. The default is 1.
-
The number of results to return per page. The default is 20.
-
The field that is used to sort the results.
Default value is
createdAt. -
Specifies the sort order.
Values are
ascordesc. -
The start date filter (ISO 8601) to narrow down results.
GET
/api/osquery/scheduled_results/{scheduleId}/{executionCount}/results
curl \
--request GET 'https://localhost:5601/api/osquery/scheduled_results/pack_my_pack_uptime/3/results' \
--header "Authorization: $API_KEY"
Response examples (200)
{
"data": {
"edges": [
{
"_id": "row-001",
"fields": {
"host.uptime": [
"12345"
]
}
},
{
"_id": "row-002",
"fields": {
"host.uptime": [
"67890"
]
}
}
],
"total": 2
}
}