stack es ml update-job cli command
Auth required
elastic stack es ml update-job --job-id <job-id> [options]
Update an anomaly detection job.
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--job-idstringrequired- Identifier for the job.
--allow-lazy-open- Advanced configuration option. Specifies whether this job can open when
there is insufficient machine learning node capacity for it to be
immediately assigned to a node. If
falseand a machine learning node with capacity to run the job cannot immediately be found, the open anomaly detection jobs API returns an error. However, this is also subject to the cluster-widexpack.ml.max_lazy_ml_nodessetting. If this option is set totrue, the open anomaly detection jobs API does not return an error and the job waits in the opening state until sufficient machine learning node capacity is available. --analysis-limitsstring--background-persist-intervalstring- Advanced configuration option. The time between each periodic persistence of the model. The default value is a randomized value between 3 to 4 hours, which avoids all jobs persisting at exactly the same time. The smallest allowed value is 1 hour. For very large models (several GB), persistence could take 10-20 minutes, so do not set the value too low. If the job is open when you make the update, you must stop the datafeed, close the job, then reopen the job and restart the datafeed for the changes to take effect.
--custom-settingsstring- Advanced configuration option. Contains custom meta data about the job. For example, it can contain custom URL information as shown in Adding custom URLs to machine learning results.
--categorization-filtersstring[]-
Repeatable: pass
--categorization-filtersmultiple times to supply more than one value --descriptionstring- A description of the job.
--model-plot-configstring--model-prune-windowstring--daily-model-snapshot-retention-after-daysnumber- Advanced configuration option, which affects the automatic removal of old
model snapshots for this job. It specifies a period of time (in days)
after which only the first snapshot per day is retained. This period is
relative to the timestamp of the most recent snapshot for this job. Valid
values range from 0 to
model_snapshot_retention_days. For jobs created before version 7.8.0, the default value matchesmodel_snapshot_retention_days. --model-snapshot-retention-daysnumber- Advanced configuration option, which affects the automatic removal of old model snapshots for this job. It specifies the maximum period of time (in days) that snapshots are retained. This period is relative to the timestamp of the most recent snapshot for this job.
--renormalization-window-daysnumber- Advanced configuration option. The period over which adjustments to the score are applied, as new data is seen.
--results-retention-daysnumber- Advanced configuration option. The period of time (in days) that results are retained. Age is calculated relative to the timestamp of the latest bucket result. If this property has a non-null value, once per day at 00:30 (server time), results that are the specified number of days older than the latest bucket result are deleted from Elasticsearch. The default value is null, which means all results are retained.
--groupsstring[]-
A list of job groups. A job can belong to no groups or many.
Repeatable: pass
--groupsmultiple times to supply more than one value --detectorsstring[]-
An array of detector update objects.
Repeatable: pass
--detectorsmultiple times to supply more than one value --per-partition-categorizationstring- Settings related to how categorization interacts with partition fields.
--error-trace- When set to
trueElasticsearch will include the full stack trace of errors when they occur. --filter-pathstring-
Comma-separated list of filters in dot notation which reduce the response returned by Elasticsearch.
Repeatable: pass
--filter-pathmultiple times to supply more than one value --human- When set to
truewill return statistics in a format suitable for humans. For example"exists_time": "1h"for humans and"exists_time_in_millis": 3600000for computers. When disabled the human readable values will be omitted. This makes sense for responses being consumed only by machines. --pretty- If set to
truethe returned JSON will be "pretty-formatted". Only use this option for debugging only. --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