ml-shared.asciidoc 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687
  1. tag::allow-lazy-open[]
  2. Advanced configuration option. Specifies whether this job can open when there is
  3. insufficient {ml} node capacity for it to be immediately assigned to a node. The
  4. default value is `false`; if a {ml} node with capacity to run the job cannot immediately be found, the <<ml-open-job,open {anomaly-jobs} API>> returns an
  5. error. However, this is also subject to the cluster-wide
  6. `xpack.ml.max_lazy_ml_nodes` setting; see <<advanced-ml-settings>>. If this
  7. option is set to `true`, the <<ml-open-job,open {anomaly-jobs} API>> does not
  8. return an error and the job waits in the `opening` state until sufficient {ml}
  9. node capacity is available.
  10. end::allow-lazy-open[]
  11. tag::allow-no-jobs[]
  12. Specifies what to do when the request:
  13. +
  14. --
  15. * Contains wildcard expressions and there are no jobs that match.
  16. * Contains the `_all` string or no identifiers and there are no matches.
  17. * Contains wildcard expressions and there are only partial matches.
  18. The default value is `true`, which returns an empty `jobs` array
  19. when there are no matches and the subset of results when there are partial
  20. matches. If this parameter is `false`, the request returns a `404` status code
  21. when there are no matches or only partial matches.
  22. --
  23. end::allow-no-jobs[]
  24. tag::allow-no-match[]
  25. Specifies what to do when the request:
  26. +
  27. --
  28. * Contains wildcard expressions and there are no {dfanalytics-jobs} that match.
  29. * Contains the `_all` string or no identifiers and there are no matches.
  30. * Contains wildcard expressions and there are only partial matches.
  31. The default value is `true`, which returns an empty `data_frame_analytics` array
  32. when there are no matches and the subset of results when there are partial
  33. matches. If this parameter is `false`, the request returns a `404` status code
  34. when there are no matches or only partial matches.
  35. --
  36. end::allow-no-match[]
  37. tag::analysis-config[]
  38. The analysis configuration, which specifies how to analyze the data.
  39. After you create a job, you cannot change the analysis configuration; all
  40. the properties are informational. An analysis configuration object has the following properties:
  41. `bucket_span`:::
  42. (<<time-units,time units>>)
  43. include::{docdir}/ml/ml-shared.asciidoc[tag=bucket-span]
  44. `categorization_field_name`:::
  45. (string)
  46. include::{docdir}/ml/ml-shared.asciidoc[tag=categorization-field-name]
  47. `categorization_filters`:::
  48. (array of strings)
  49. include::{docdir}/ml/ml-shared.asciidoc[tag=categorization-filters]
  50. `categorization_analyzer`:::
  51. (object or string)
  52. include::{docdir}/ml/ml-shared.asciidoc[tag=categorization-analyzer]
  53. `detectors`:::
  54. (array) An array of detector configuration objects. Detector configuration
  55. objects specify which data fields a job analyzes. They also specify which
  56. analytical functions are used. You can specify multiple detectors for a job.
  57. include::{docdir}/ml/ml-shared.asciidoc[tag=detector]
  58. +
  59. --
  60. NOTE: If the `detectors` array does not contain at least one detector,
  61. no analysis can occur and an error is returned.
  62. --
  63. `influencers`:::
  64. (array of strings)
  65. include::{docdir}/ml/ml-shared.asciidoc[tag=influencers]
  66. `latency`:::
  67. (time units)
  68. include::{docdir}/ml/ml-shared.asciidoc[tag=latency]
  69. `multivariate_by_fields`:::
  70. (boolean)
  71. include::{docdir}/ml/ml-shared.asciidoc[tag=multivariate-by-fields]
  72. `summary_count_field_name`:::
  73. (string)
  74. include::{docdir}/ml/ml-shared.asciidoc[tag=summary-count-field-name]
  75. end::analysis-config[]
  76. tag::analysis-limits[]
  77. Limits can be applied for the resources required to hold the mathematical models
  78. in memory. These limits are approximate and can be set per job. They do not
  79. control the memory used by other processes, for example the {es} Java
  80. processes. If necessary, you can increase the limits after the job is created.
  81. The `analysis_limits` object has the following properties:
  82. `categorization_examples_limit`:::
  83. (long)
  84. include::{docdir}/ml/ml-shared.asciidoc[tag=categorization-examples-limit]
  85. `model_memory_limit`:::
  86. (long or string)
  87. include::{docdir}/ml/ml-shared.asciidoc[tag=model-memory-limit]
  88. end::analysis-limits[]
  89. tag::background-persist-interval[]
  90. Advanced configuration option. The time between each periodic persistence of the
  91. model. The default value is a randomized value between 3 to 4 hours, which
  92. avoids all jobs persisting at exactly the same time. The smallest allowed value
  93. is 1 hour.
  94. +
  95. --
  96. TIP: For very large models (several GB), persistence could take 10-20 minutes,
  97. so do not set the `background_persist_interval` value too low.
  98. --
  99. end::background-persist-interval[]
  100. tag::bucket-span[]
  101. The size of the interval that the analysis is aggregated into, typically between
  102. `5m` and `1h`. The default value is `5m`. For more information about time units,
  103. see <<time-units>>.
  104. end::bucket-span[]
  105. tag::by-field-name[]
  106. The field used to split the data. In particular, this property is used for
  107. analyzing the splits with respect to their own history. It is used for finding
  108. unusual values in the context of the split.
  109. end::by-field-name[]
  110. tag::categorization-analyzer[]
  111. If `categorization_field_name` is specified, you can also define the analyzer
  112. that is used to interpret the categorization field. This property cannot be used
  113. at the same time as `categorization_filters`. The categorization analyzer
  114. specifies how the `categorization_field` is interpreted by the categorization
  115. process. The syntax is very similar to that used to define the `analyzer` in the
  116. <<indices-analyze,Analyze endpoint>>. For more information, see
  117. {stack-ov}/ml-configuring-categories.html[Categorizing log messages].
  118. +
  119. --
  120. The `categorization_analyzer` field can be specified either as a string or as an
  121. object. If it is a string it must refer to a
  122. <<analysis-analyzers,built-in analyzer>> or one added by another plugin. If it
  123. is an object it has the following properties:
  124. --
  125. `char_filter`::::
  126. (array of strings or objects)
  127. include::{docdir}/ml/ml-shared.asciidoc[tag=char-filter]
  128. `tokenizer`::::
  129. (string or object)
  130. include::{docdir}/ml/ml-shared.asciidoc[tag=tokenizer]
  131. `filter`::::
  132. (array of strings or objects)
  133. include::{docdir}/ml/ml-shared.asciidoc[tag=filter]
  134. end::categorization-analyzer[]
  135. tag::categorization-examples-limit[]
  136. The maximum number of examples stored per category in memory and in the results
  137. data store. The default value is 4. If you increase this value, more examples
  138. are available, however it requires that you have more storage available. If you
  139. set this value to `0`, no examples are stored.
  140. +
  141. --
  142. NOTE: The `categorization_examples_limit` only applies to analysis that uses
  143. categorization. For more information, see
  144. {stack-ov}/ml-configuring-categories.html[Categorizing log messages].
  145. --
  146. end::categorization-examples-limit[]
  147. tag::categorization-field-name[]
  148. If this property is specified, the values of the specified field will be
  149. categorized. The resulting categories must be used in a detector by setting
  150. `by_field_name`, `over_field_name`, or `partition_field_name` to the keyword
  151. `mlcategory`. For more information, see
  152. {stack-ov}/ml-configuring-categories.html[Categorizing log messages].
  153. end::categorization-field-name[]
  154. tag::categorization-filters[]
  155. If `categorization_field_name` is specified, you can also define optional
  156. filters. This property expects an array of regular expressions. The expressions
  157. are used to filter out matching sequences from the categorization field values.
  158. You can use this functionality to fine tune the categorization by excluding sequences from consideration when categories are defined. For example, you can exclude SQL statements that appear in your log files. For more information, see
  159. {stack-ov}/ml-configuring-categories.html[Categorizing log messages]. This
  160. property cannot be used at the same time as `categorization_analyzer`. If you
  161. only want to define simple regular expression filters that are applied prior to
  162. tokenization, setting this property is the easiest method. If you also want to
  163. customize the tokenizer or post-tokenization filtering, use the
  164. `categorization_analyzer` property instead and include the filters as
  165. `pattern_replace` character filters. The effect is exactly the same.
  166. end::categorization-filters[]
  167. tag::char-filter[]
  168. One or more <<analysis-charfilters,character filters>>. In addition to the
  169. built-in character filters, other plugins can provide more character filters.
  170. This property is optional. If it is not specified, no character filters are
  171. applied prior to categorization. If you are customizing some other aspect of the
  172. analyzer and you need to achieve the equivalent of `categorization_filters`
  173. (which are not permitted when some other aspect of the analyzer is customized),
  174. add them here as
  175. <<analysis-pattern-replace-charfilter,pattern replace character filters>>.
  176. end::char-filter[]
  177. tag::custom-rules[]
  178. An array of custom rule objects, which enable you to customize the way detectors
  179. operate. For example, a rule may dictate to the detector conditions under which
  180. results should be skipped. For more examples, see
  181. {stack-ov}/ml-configuring-detector-custom-rules.html[Configuring detector custom rules].
  182. A custom rule has the following properties:
  183. +
  184. --
  185. `actions`::
  186. (array) The set of actions to be triggered when the rule applies. If
  187. more than one action is specified the effects of all actions are combined. The
  188. available actions include:
  189. * `skip_result`: The result will not be created. This is the default value.
  190. Unless you also specify `skip_model_update`, the model will be updated as usual
  191. with the corresponding series value.
  192. * `skip_model_update`: The value for that series will not be used to update the
  193. model. Unless you also specify `skip_result`, the results will be created as
  194. usual. This action is suitable when certain values are expected to be
  195. consistently anomalous and they affect the model in a way that negatively
  196. impacts the rest of the results.
  197. `scope`::
  198. (object) An optional scope of series where the rule applies. A rule must either
  199. have a non-empty scope or at least one condition. By default, the scope includes
  200. all series. Scoping is allowed for any of the fields that are also specified in
  201. `by_field_name`, `over_field_name`, or `partition_field_name`. To add a scope
  202. for a field, add the field name as a key in the scope object and set its value
  203. to an object with the following properties:
  204. `filter_id`:::
  205. (string) The id of the filter to be used.
  206. `filter_type`:::
  207. (string) Either `include` (the rule applies for values in the filter) or
  208. `exclude` (the rule applies for values not in the filter). Defaults to `include`.
  209. `conditions`::
  210. (array) An optional array of numeric conditions when the rule applies. A rule
  211. must either have a non-empty scope or at least one condition. Multiple
  212. conditions are combined together with a logical `AND`. A condition has the
  213. following properties:
  214. `applies_to`:::
  215. (string) Specifies the result property to which the condition applies. The
  216. available options are `actual`, `typical`, `diff_from_typical`, `time`.
  217. `operator`:::
  218. (string) Specifies the condition operator. The available options are `gt`
  219. (greater than), `gte` (greater than or equals), `lt` (less than) and `lte` (less
  220. than or equals).
  221. `value`:::
  222. (double) The value that is compared against the `applies_to` field using the
  223. `operator`.
  224. --
  225. +
  226. --
  227. NOTE: If your detector uses `lat_long`, `metric`, `rare`, or `freq_rare`
  228. functions, you can only specify `conditions` that apply to `time`.
  229. --
  230. end::custom-rules[]
  231. tag::custom-settings[]
  232. Advanced configuration option. Contains custom meta data about the job. For
  233. example, it can contain custom URL information as shown in
  234. {stack-ov}/ml-configuring-url.html[Adding custom URLs to {ml} results].
  235. end::custom-settings[]
  236. tag::data-description[]
  237. The data description defines the format of the input data when you send data to
  238. the job by using the <<ml-post-data,post data>> API. Note that when configure
  239. a {dfeed}, these properties are automatically set.
  240. +
  241. --
  242. When data is received via the <<ml-post-data,post data>> API, it is not stored
  243. in {es}. Only the results for {anomaly-detect} are retained.
  244. A data description object has the following properties:
  245. `format`:::
  246. (string) Only `JSON` format is supported at this time.
  247. `time_field`:::
  248. (string) The name of the field that contains the timestamp.
  249. The default value is `time`.
  250. `time_format`:::
  251. (string)
  252. include::{docdir}/ml/ml-shared.asciidoc[tag=time-format]
  253. --
  254. end::data-description[]
  255. tag::dependent_variable[]
  256. `dependent_variable`::
  257. (Required, string) Defines which field of the document is to be predicted.
  258. This parameter is supplied by field name and must match one of the fields in
  259. the index being used to train. If this field is missing from a document, then
  260. that document will not be used for training, but a prediction with the trained
  261. model will be generated for it. It is also known as continuous target variable.
  262. end::dependent_variable[]
  263. tag::detector-description[]
  264. A description of the detector. For example, `Low event rate`.
  265. end::detector-description[]
  266. tag::detector-field-name[]
  267. The field that the detector uses in the function. If you use an event rate
  268. function such as `count` or `rare`, do not specify this field.
  269. +
  270. --
  271. NOTE: The `field_name` cannot contain double quotes or backslashes.
  272. --
  273. end::detector-field-name[]
  274. tag::detector-index[]
  275. A unique identifier for the detector. This identifier is based on the order of
  276. the detectors in the `analysis_config`, starting at zero. You can use this
  277. identifier when you want to update a specific detector.
  278. end::detector-index[]
  279. tag::detector[]
  280. A detector has the following properties:
  281. `by_field_name`::::
  282. (string)
  283. include::{docdir}/ml/ml-shared.asciidoc[tag=by-field-name]
  284. `custom_rules`::::
  285. (array)
  286. include::{docdir}/ml/ml-shared.asciidoc[tag=custom-rules]
  287. `detector_description`::::
  288. (string)
  289. include::{docdir}/ml/ml-shared.asciidoc[tag=detector-description]
  290. `detector_index`::::
  291. (integer)
  292. include::{docdir}/ml/ml-shared.asciidoc[tag=detector-index]
  293. `exclude_frequent`::::
  294. (string)
  295. include::{docdir}/ml/ml-shared.asciidoc[tag=exclude-frequent]
  296. `field_name`::::
  297. (string)
  298. include::{docdir}/ml/ml-shared.asciidoc[tag=detector-field-name]
  299. `function`::::
  300. (string)
  301. include::{docdir}/ml/ml-shared.asciidoc[tag=function]
  302. `over_field_name`::::
  303. (string)
  304. include::{docdir}/ml/ml-shared.asciidoc[tag=over-field-name]
  305. `partition_field_name`::::
  306. (string)
  307. include::{docdir}/ml/ml-shared.asciidoc[tag=partition-field-name]
  308. `use_null`::::
  309. (boolean)
  310. include::{docdir}/ml/ml-shared.asciidoc[tag=use-null]
  311. end::detector[]
  312. tag::eta[]
  313. `eta`::
  314. (Optional, double) The shrinkage applied to the weights. Smaller values result
  315. in larger forests which have better generalization error. However, the smaller
  316. the value the longer the training will take. For more information, see
  317. https://en.wikipedia.org/wiki/Gradient_boosting#Shrinkage[this wiki article]
  318. about shrinkage.
  319. end::eta[]
  320. tag::exclude-frequent[]
  321. Contains one of the following values: `all`, `none`, `by`, or `over`. If set,
  322. frequent entities are excluded from influencing the anomaly results. Entities
  323. can be considered frequent over time or frequent in a population. If you are
  324. working with both over and by fields, then you can set `exclude_frequent` to
  325. `all` for both fields, or to `by` or `over` for those specific fields.
  326. end::exclude-frequent[]
  327. tag::feature_bag_fraction[]
  328. `feature_bag_fraction`::
  329. (Optional, double) Defines the fraction of features that will be used when
  330. selecting a random bag for each candidate split.
  331. end::feature_bag_fraction[]
  332. tag::filter[]
  333. One or more <<analysis-tokenfilters,token filters>>. In addition to the built-in
  334. token filters, other plugins can provide more token filters. This property is
  335. optional. If it is not specified, no token filters are applied prior to
  336. categorization.
  337. end::filter[]
  338. tag::function[]
  339. The analysis function that is used. For example, `count`, `rare`, `mean`, `min`,
  340. `max`, and `sum`. For more information, see
  341. {stack-ov}/ml-functions.html[Function reference].
  342. end::function[]
  343. tag::gamma[]
  344. `gamma`::
  345. (Optional, double) Regularization parameter to prevent overfitting on the
  346. training dataset. Multiplies a linear penalty associated with the size of
  347. individual trees in the forest. The higher the value the more training will
  348. prefer smaller trees. The smaller this parameter the larger individual trees
  349. will be and the longer train will take.
  350. end::gamma[]
  351. tag::groups[]
  352. A list of job groups. A job can belong to no groups or many.
  353. end::groups[]
  354. tag::influencers[]
  355. A comma separated list of influencer field names. Typically these can be the by,
  356. over, or partition fields that are used in the detector configuration. You might
  357. also want to use a field name that is not specifically named in a detector, but
  358. is available as part of the input data. When you use multiple detectors, the use
  359. of influencers is recommended as it aggregates results for each influencer entity.
  360. end::influencers[]
  361. tag::job-id-anomaly-detection[]
  362. Identifier for the {anomaly-job}.
  363. end::job-id-anomaly-detection[]
  364. tag::job-id-data-frame-analytics[]
  365. Identifier for the {dfanalytics-job}.
  366. end::job-id-data-frame-analytics[]
  367. tag::job-id-anomaly-detection-default[]
  368. Identifier for the {anomaly-job}. It can be a job identifier, a group name, or a wildcard expression. If you do not specify one of these options, the API returns information for all {anomaly-jobs}.
  369. end::job-id-anomaly-detection-default[]
  370. tag::job-id-data-frame-analytics-default[]
  371. Identifier for the {dfanalytics-job}. If you do not specify this option, the API
  372. returns information for the first hundred {dfanalytics-jobs}.
  373. end::job-id-data-frame-analytics-default[]
  374. tag::job-id-anomaly-detection-list[]
  375. An identifier for the {anomaly-jobs}. It can be a job
  376. identifier, a group name, or a comma-separated list of jobs or groups.
  377. end::job-id-anomaly-detection-list[]
  378. tag::job-id-anomaly-detection-wildcard[]
  379. Identifier for the {anomaly-job}. It can be a job identifier, a group name, or a wildcard expression.
  380. end::job-id-anomaly-detection-wildcard[]
  381. tag::job-id-anomaly-detection-wildcard-list[]
  382. Identifier for the {anomaly-job}. It can be a job identifier, a group name, a
  383. comma-separated list of jobs or groups, or a wildcard expression.
  384. end::job-id-anomaly-detection-wildcard-list[]
  385. tag::job-id-anomaly-detection-define[]
  386. Identifier for the {anomaly-job}. This identifier can contain lowercase alphanumeric
  387. characters (a-z and 0-9), hyphens, and underscores. It must start and end with
  388. alphanumeric characters.
  389. end::job-id-anomaly-detection-define[]
  390. tag::job-id-data-frame-analytics-define[]
  391. Identifier for the {dfanalytics-job}. This identifier can contain lowercase
  392. alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start
  393. and end with alphanumeric characters.
  394. end::job-id-data-frame-analytics-define[]
  395. tag::jobs-stats-anomaly-detection[]
  396. An array of {anomaly-job} statistics objects.
  397. For more information, see <<ml-jobstats>>.
  398. end::jobs-stats-anomaly-detection[]
  399. tag::lambda[]
  400. `lambda`::
  401. (Optional, double) Regularization parameter to prevent overfitting on the
  402. training dataset. Multiplies an L2 regularisation term which applies to leaf
  403. weights of the individual trees in the forest. The higher the value the more
  404. training will attempt to keep leaf weights small. This makes the prediction
  405. function smoother at the expense of potentially not being able to capture
  406. relevant relationships between the features and the {depvar}. The smaller this
  407. parameter the larger individual trees will be and the longer train will take.
  408. end::lambda[]
  409. tag::latency[]
  410. The size of the window in which to expect data that is out of time order. The
  411. default value is 0 (no latency). If you specify a non-zero value, it must be greater than or equal to one second. For more information about time units, see <<time-units>>.
  412. +
  413. --
  414. NOTE: Latency is only applicable when you send data by using
  415. the <<ml-post-data,post data>> API.
  416. --
  417. end::latency[]
  418. tag::maximum_number_trees[]
  419. `maximum_number_trees`::
  420. (Optional, integer) Defines the maximum number of trees the forest is allowed
  421. to contain. The maximum value is 2000.
  422. end::maximum_number_trees[]
  423. tag::model-memory-limit[]
  424. The approximate maximum amount of memory resources that are required for
  425. analytical processing. Once this limit is approached, data pruning becomes
  426. more aggressive. Upon exceeding this limit, new entities are not modeled. The
  427. default value for jobs created in version 6.1 and later is `1024mb`.
  428. This value will need to be increased for jobs that are expected to analyze high
  429. cardinality fields, but the default is set to a relatively small size to ensure
  430. that high resource usage is a conscious decision. The default value for jobs
  431. created in versions earlier than 6.1 is `4096mb`.
  432. +
  433. --
  434. If you specify a number instead of a string, the units are assumed to be MiB.
  435. Specifying a string is recommended for clarity. If you specify a byte size unit
  436. of `b` or `kb` and the number does not equate to a discrete number of megabytes,
  437. it is rounded down to the closest MiB. The minimum valid value is 1 MiB. If you
  438. specify a value less than 1 MiB, an error occurs. For more information about
  439. supported byte size units, see <<byte-units>>.
  440. If your `elasticsearch.yml` file contains an `xpack.ml.max_model_memory_limit`
  441. setting, an error occurs when you try to create jobs that have
  442. `model_memory_limit` values greater than that setting. For more information,
  443. see <<ml-settings>>.
  444. --
  445. end::model-memory-limit[]
  446. tag::model-plot-config[]
  447. This advanced configuration option stores model information along with the
  448. results. It provides a more detailed view into {anomaly-detect}.
  449. +
  450. --
  451. WARNING: If you enable model plot it can add considerable overhead to the performance
  452. of the system; it is not feasible for jobs with many entities.
  453. Model plot provides a simplified and indicative view of the model and its bounds.
  454. It does not display complex features such as multivariate correlations or multimodal data.
  455. As such, anomalies may occasionally be reported which cannot be seen in the model plot.
  456. Model plot config can be configured when the job is created or updated later. It must be
  457. disabled if performance issues are experienced.
  458. The `model_plot_config` object has the following properties:
  459. `enabled`:::
  460. (boolean) If true, enables calculation and storage of the model bounds for
  461. each entity that is being analyzed. By default, this is not enabled.
  462. `terms`:::
  463. experimental[] (string) Limits data collection to this comma separated list of
  464. partition or by field values. If terms are not specified or it is an empty
  465. string, no filtering is applied. For example, "CPU,NetworkIn,DiskWrites".
  466. Wildcards are not supported. Only the specified `terms` can be viewed when
  467. using the Single Metric Viewer.
  468. --
  469. end::model-plot-config[]
  470. tag::model-snapshot-id[]
  471. A numerical character string that uniquely identifies the model snapshot. For
  472. example, `1491007364`. For more information about model snapshots, see
  473. <<ml-snapshot-resource>>.
  474. end::model-snapshot-id[]
  475. tag::model-snapshot-retention-days[]
  476. The time in days that model snapshots are retained for the job. Older snapshots
  477. are deleted. The default value is `1`, which means snapshots are retained for
  478. one day (twenty-four hours).
  479. end::model-snapshot-retention-days[]
  480. tag::multivariate-by-fields[]
  481. This functionality is reserved for internal use. It is not supported for use in
  482. customer environments and is not subject to the support SLA of official GA
  483. features.
  484. +
  485. --
  486. If set to `true`, the analysis will automatically find correlations between
  487. metrics for a given `by` field value and report anomalies when those
  488. correlations cease to hold. For example, suppose CPU and memory usage on host A
  489. is usually highly correlated with the same metrics on host B. Perhaps this
  490. correlation occurs because they are running a load-balanced application.
  491. If you enable this property, then anomalies will be reported when, for example,
  492. CPU usage on host A is high and the value of CPU usage on host B is low. That
  493. is to say, you'll see an anomaly when the CPU of host A is unusual given
  494. the CPU of host B.
  495. NOTE: To use the `multivariate_by_fields` property, you must also specify
  496. `by_field_name` in your detector.
  497. --
  498. end::multivariate-by-fields[]
  499. tag::over-field-name[]
  500. The field used to split the data. In particular, this property is used for
  501. analyzing the splits with respect to the history of all splits. It is used for
  502. finding unusual values in the population of all splits. For more information,
  503. see {stack-ov}/ml-configuring-pop.html[Performing population analysis].
  504. end::over-field-name[]
  505. tag::partition-field-name[]
  506. The field used to segment the analysis. When you use this property, you have
  507. completely independent baselines for each value of this field.
  508. end::partition-field-name[]
  509. tag::prediction_field_name[]
  510. `prediction_field_name`::
  511. (Optional, string) Defines the name of the prediction field in the results.
  512. Defaults to `<dependent_variable>_prediction`.
  513. end::prediction_field_name[]
  514. tag::renormalization-window-days[]
  515. Advanced configuration option. The period over which adjustments to the score
  516. are applied, as new data is seen. The default value is the longer of 30 days or
  517. 100 `bucket_spans`.
  518. end::renormalization-window-days[]
  519. tag::results-index-name[]
  520. A text string that affects the name of the {ml} results index. The default value
  521. is `shared`, which generates an index named `.ml-anomalies-shared`.
  522. end::results-index-name[]
  523. tag::results-retention-days[]
  524. Advanced configuration option. The number of days for which job results are
  525. retained. Once per day at 00:30 (server time), results older than this period
  526. are deleted from {es}. The default value is null, which means results are
  527. retained.
  528. end::results-retention-days[]
  529. tag::summary-count-field-name[]
  530. If this property is specified, the data that is fed to the job is expected to be
  531. pre-summarized. This property value is the name of the field that contains the
  532. count of raw data points that have been summarized. The same
  533. `summary_count_field_name` applies to all detectors in the job.
  534. +
  535. --
  536. NOTE: The `summary_count_field_name` property cannot be used with the `metric`
  537. function.
  538. --
  539. end::summary-count-field-name[]
  540. tag::time-format[]
  541. The time format, which can be `epoch`, `epoch_ms`, or a custom pattern. The
  542. default value is `epoch`, which refers to UNIX or Epoch time (the number of
  543. seconds since 1 Jan 1970). The value `epoch_ms` indicates that time is measured
  544. in milliseconds since the epoch. The `epoch` and `epoch_ms` time formats accept
  545. either integer or real values. +
  546. +
  547. --
  548. NOTE: Custom patterns must conform to the Java `DateTimeFormatter` class.
  549. When you use date-time formatting patterns, it is recommended that you provide
  550. the full date, time and time zone. For example: `yyyy-MM-dd'T'HH:mm:ssX`.
  551. If the pattern that you specify is not sufficient to produce a complete timestamp,
  552. job creation fails.
  553. --
  554. end::time-format[]
  555. tag::tokenizer[]
  556. The name or definition of the <<analysis-tokenizers,tokenizer>> to use after
  557. character filters are applied. This property is compulsory if
  558. `categorization_analyzer` is specified as an object. Machine learning provides a
  559. tokenizer called `ml_classic` that tokenizes in the same way as the
  560. non-customizable tokenizer in older versions of the product. If you want to use
  561. that tokenizer but change the character or token filters, specify
  562. `"tokenizer": "ml_classic"` in your `categorization_analyzer`.
  563. end::tokenizer[]
  564. tag::training_percent[]
  565. `training_percent`::
  566. (Optional, integer) Defines what percentage of the eligible documents that will
  567. be used for training. Documents that are ignored by the analysis (for example
  568. those that contain arrays) won’t be included in the calculation for used
  569. percentage. Defaults to `100`.
  570. end::training_percent[]
  571. tag::use-null[]
  572. Defines whether a new series is used as the null series when there is no value
  573. for the by or partition fields. The default value is `false`.
  574. end::use-null[]