stack kb security-timeline-api get-notes cli command
Elastic Cloud Serverless projects are autoscaled environments, fully managed by Elastic and available on Elastic Cloud. Availability This functionality is in technical preview and is ready for evaluation. Use with caution in production; it is not recommended for mission-critical workloads. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. Specific Support terms apply. Serverless interfaces and procedures might differ from classic Elastic Stack deployments. The Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats. Availability This functionality is in technical preview and is ready for evaluation. Use with caution in production; it is not recommended for mission-critical workloads. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. Specific Support terms apply. Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments. This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.
Serverless
Preview
Preview
Stack
Preview
Preview
elastic stack kb security-timeline-api get-notes [options]
Get notes
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--document-idsstring-
Event document
_idvalues to match against each note'seventId. When this parameter is present, the response is all matching notes (up to the server's hard limit), not a paged list usingpage/perPage.Repeatable: pass
--document-idsmultiple times to supply more than one value --saved-object-idsstring-
Timeline
savedObjectIdvalue(s). Returns notes that reference those timelines. When present, list-mode pagination parameters are not used; up to the server's hard limit of notes may be returned.Repeatable: pass
--saved-object-idsmultiple times to supply more than one value --pagestring- Page number for list mode (when
documentIdsandsavedObjectIdsare omitted). Passed as a string; default 1. --per-pagestring- Page size for list mode (when
documentIdsandsavedObjectIdsare omitted). Passed as a string; default 10. --searchstring- Search string for saved-objects find (list mode only).
--sort-fieldstring- Field to sort by for saved-objects find (list mode only).
--sort-orderstring- Sort order (
ascordesc) for saved-objects find (list mode only). --filterstring- Kuery filter string combined with other list-mode filters (for example
createdByFilterorassociatedFilter). Typed as a string for API compatibility; interpreted by the saved-objects layer (list mode only). --created-by-filterstring- Kibana user profile UID (UUID). The server resolves the user's display identifiers and returns notes whose
createdBymatches any of them (list mode only). --associated-filterenum-
Restricts notes by how they relate to a Timeline and/or an event document (list mode only). Some values apply extra filtering after the query. Ignored when
documentIdsorsavedObjectIdsis used.Values: all, document_only, saved_object_only, document_and_saved_object, orphan
--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)
--no-validate- skip input validation and send the request as-is
--output-fieldsstring- comma-separated list of fields to include in output (dot-notation supported)
--output-templatestring- Mustache-like template for custom text output (e.g. "{{id}}: {{name}}")
--json-
output as JSON