stack kb security-osquery-api osquery-get-scheduled-query-results cli command
Auth required
Idempotent
Scope: global
elastic stack kb security-osquery-api osquery-get-scheduled-query-results \
--schedule-id <schedule-id> \
--execution-count <execution-count> \
[options]
Get scheduled query results
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--schedule-idstringrequired- The schedule ID of the scheduled query.
--execution-countstringrequired- The execution count for this scheduled query run.
--kuerystring- The kuery to filter the results by.
--pagenumber- The page number to return. The default is 1.
--page-sizenumber- The number of results to return per page. The default is 20.
--sortstring- The field that is used to sort the results.
--sort-orderenum-
Specifies the sort order.
Values: asc, desc
--start-datestring- The start date filter (ISO 8601) to narrow down results.
--input-filestring- path to a JSON file to use as command input
--dry-run- validate all inputs and exit without performing any action (preview changes without applying them)
--json-
output as JSON