stack kb security-osquery-api osquery-get-unified-history cli command
Auth required
Idempotent
Scope: global
elastic stack kb security-osquery-api osquery-get-unified-history [options]
Get unified query history
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--page-sizenumber- The number of results to return per page.
--next-pagestring- A base64-encoded cursor for pagination. Use the value from the previous response to fetch the next page.
--kuerystring- A search string to filter history entries by pack name, query text, or query ID.
--user-idsstring- Comma-separated list of user IDs to filter live query history.
--source-filtersstring- Comma-separated list of source types to include. Valid values are
live,rule, andscheduled. --start-datestring- The start of the time range filter (ISO 8601).
--end-datestring- The end of the time range filter (ISO 8601).
--input-filestring- path to a JSON file to use as command input
--[no-]dry-run- validate all inputs and exit without performing any action (preview changes without applying them)
--[no-]json-
output as JSON