ml-shared.asciidoc 42 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066
  1. tag::aggregations[]
  2. If set, the {dfeed} performs aggregation searches. Support for aggregations is
  3. limited and should only be used with low cardinality data. For more information,
  4. see
  5. {ml-docs}/ml-configuring-aggregation.html[Aggregating data for faster performance].
  6. end::aggregations[]
  7. tag::allow-lazy-open[]
  8. Advanced configuration option. Specifies whether this job can open when there is
  9. insufficient {ml} node capacity for it to be immediately assigned to a node. The
  10. default value is `false`; if a {ml} node with capacity to run the job cannot
  11. immediately be found, the <<ml-open-job,open {anomaly-jobs} API>> returns an
  12. error. However, this is also subject to the cluster-wide
  13. `xpack.ml.max_lazy_ml_nodes` setting; see <<advanced-ml-settings>>. If this
  14. option is set to `true`, the <<ml-open-job,open {anomaly-jobs} API>> does not
  15. return an error and the job waits in the `opening` state until sufficient {ml}
  16. node capacity is available.
  17. end::allow-lazy-open[]
  18. tag::allow-lazy-start[]
  19. Whether this job should be allowed to start when there is insufficient {ml} node
  20. capacity for it to be immediately assigned to a node. The default is `false`,
  21. which means that the <<start-dfanalytics>> will return an error if a {ml} node
  22. with capacity to run the job cannot immediately be found. (However, this is also
  23. subject to the cluster-wide `xpack.ml.max_lazy_ml_nodes` setting - see
  24. <<advanced-ml-settings>>.) If this option is set to `true` then the
  25. <<start-dfanalytics>> will not return an error, and the job will wait in the
  26. `starting` state until sufficient {ml} node capacity is available.
  27. end::allow-lazy-start[]
  28. tag::allow-no-datafeeds[]
  29. Specifies what to do when the request:
  30. +
  31. --
  32. * Contains wildcard expressions and there are no {dfeeds} that match.
  33. * Contains the `_all` string or no identifiers and there are no matches.
  34. * Contains wildcard expressions and there are only partial matches.
  35. The default value is `true`, which returns an empty `datafeeds` array when
  36. there are no matches and the subset of results when there are partial matches.
  37. If this parameter is `false`, the request returns a `404` status code when there
  38. are no matches or only partial matches.
  39. --
  40. end::allow-no-datafeeds[]
  41. tag::allow-no-jobs[]
  42. Specifies what to do when the request:
  43. +
  44. --
  45. * Contains wildcard expressions and there are no jobs that match.
  46. * Contains the `_all` string or no identifiers and there are no matches.
  47. * Contains wildcard expressions and there are only partial matches.
  48. The default value is `true`, which returns an empty `jobs` array
  49. when there are no matches and the subset of results when there are partial
  50. matches. If this parameter is `false`, the request returns a `404` status code
  51. when there are no matches or only partial matches.
  52. --
  53. end::allow-no-jobs[]
  54. tag::allow-no-match[]
  55. Specifies what to do when the request:
  56. +
  57. --
  58. * Contains wildcard expressions and there are no {dfanalytics-jobs} that match.
  59. * Contains the `_all` string or no identifiers and there are no matches.
  60. * Contains wildcard expressions and there are only partial matches.
  61. The default value is `true`, which returns an empty `data_frame_analytics` array
  62. when there are no matches and the subset of results when there are partial
  63. matches. If this parameter is `false`, the request returns a `404` status code
  64. when there are no matches or only partial matches.
  65. --
  66. end::allow-no-match[]
  67. tag::analysis[]
  68. Defines the type of {dfanalytics} you want to perform on your source index. For
  69. example: `outlier_detection`. See <<ml-dfa-analysis-objects>>.
  70. end::analysis[]
  71. tag::analysis-config[]
  72. The analysis configuration, which specifies how to analyze the data. After you
  73. create a job, you cannot change the analysis configuration; all the properties
  74. are informational.
  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 processes.
  80. If necessary, you can increase the limits after the job is created.
  81. end::analysis-limits[]
  82. tag::analyzed-fields[]
  83. Specify `includes` and/or `excludes` patterns to select which fields will be
  84. included in the analysis. If `analyzed_fields` is not set, only the relevant
  85. fields will be included. For example, all the numeric fields for {oldetection}.
  86. For the supported field types, see <<ml-put-dfanalytics-supported-fields>>. Also
  87. see the <<explain-dfanalytics>> which helps understand field selection.
  88. `includes`:::
  89. (Optional, array) An array of strings that defines the fields that will be
  90. included in the analysis.
  91. `excludes`:::
  92. (Optional, array) An array of strings that defines the fields that will be
  93. excluded from the analysis. You do not need to add fields with unsupported
  94. data types to `excludes`, these fields are excluded from the analysis
  95. automatically.
  96. end::analyzed-fields[]
  97. tag::background-persist-interval[]
  98. Advanced configuration option. The time between each periodic persistence of the
  99. model. The default value is a randomized value between 3 to 4 hours, which
  100. avoids all jobs persisting at exactly the same time. The smallest allowed value
  101. is 1 hour.
  102. +
  103. --
  104. TIP: For very large models (several GB), persistence could take 10-20 minutes,
  105. so do not set the `background_persist_interval` value too low.
  106. --
  107. end::background-persist-interval[]
  108. tag::bucket-span[]
  109. The size of the interval that the analysis is aggregated into, typically between
  110. `5m` and `1h`. The default value is `5m`. For more information about time units,
  111. see <<time-units>>.
  112. end::bucket-span[]
  113. tag::bucket-span-results[]
  114. The length of the bucket in seconds. This value matches the `bucket_span`
  115. that is specified in the job.
  116. end::bucket-span-results[]
  117. tag::by-field-name[]
  118. The field used to split the data. In particular, this property is used for
  119. analyzing the splits with respect to their own history. It is used for finding
  120. unusual values in the context of the split.
  121. end::by-field-name[]
  122. tag::categorization-analyzer[]
  123. If `categorization_field_name` is specified, you can also define the analyzer
  124. that is used to interpret the categorization field. This property cannot be used
  125. at the same time as `categorization_filters`. The categorization analyzer
  126. specifies how the `categorization_field` is interpreted by the categorization
  127. process. The syntax is very similar to that used to define the `analyzer` in the
  128. <<indices-analyze,Analyze endpoint>>. For more information, see
  129. {ml-docs}/ml-configuring-categories.html[Categorizing log messages].
  130. +
  131. --
  132. The `categorization_analyzer` field can be specified either as a string or as an
  133. object. If it is a string it must refer to a
  134. <<analysis-analyzers,built-in analyzer>> or one added by another plugin. If it
  135. is an object it has the following properties:
  136. --
  137. `analysis_config`.`categorization_analyzer`.`char_filter`::::
  138. (array of strings or objects)
  139. include::{docdir}/ml/ml-shared.asciidoc[tag=char-filter]
  140. `analysis_config`.`categorization_analyzer`.`tokenizer`::::
  141. (string or object)
  142. include::{docdir}/ml/ml-shared.asciidoc[tag=tokenizer]
  143. `analysis_config`.`categorization_analyzer`.`filter`::::
  144. (array of strings or objects)
  145. include::{docdir}/ml/ml-shared.asciidoc[tag=filter]
  146. end::categorization-analyzer[]
  147. tag::categorization-examples-limit[]
  148. The maximum number of examples stored per category in memory and in the results
  149. data store. The default value is 4. If you increase this value, more examples
  150. are available, however it requires that you have more storage available. If you
  151. set this value to `0`, no examples are stored.
  152. +
  153. --
  154. NOTE: The `categorization_examples_limit` only applies to analysis that uses
  155. categorization. For more information, see
  156. {ml-docs}/ml-configuring-categories.html[Categorizing log messages].
  157. --
  158. end::categorization-examples-limit[]
  159. tag::categorization-field-name[]
  160. If this property is specified, the values of the specified field will be
  161. categorized. The resulting categories must be used in a detector by setting
  162. `by_field_name`, `over_field_name`, or `partition_field_name` to the keyword
  163. `mlcategory`. For more information, see
  164. {ml-docs}/ml-configuring-categories.html[Categorizing log messages].
  165. end::categorization-field-name[]
  166. tag::categorization-filters[]
  167. If `categorization_field_name` is specified, you can also define optional
  168. filters. This property expects an array of regular expressions. The expressions
  169. are used to filter out matching sequences from the categorization field values.
  170. You can use this functionality to fine tune the categorization by excluding
  171. sequences from consideration when categories are defined. For example, you can
  172. exclude SQL statements that appear in your log files. For more information, see
  173. {ml-docs}/ml-configuring-categories.html[Categorizing log messages]. This
  174. property cannot be used at the same time as `categorization_analyzer`. If you
  175. only want to define simple regular expression filters that are applied prior to
  176. tokenization, setting this property is the easiest method. If you also want to
  177. customize the tokenizer or post-tokenization filtering, use the
  178. `categorization_analyzer` property instead and include the filters as
  179. `pattern_replace` character filters. The effect is exactly the same.
  180. end::categorization-filters[]
  181. tag::char-filter[]
  182. One or more <<analysis-charfilters,character filters>>. In addition to the
  183. built-in character filters, other plugins can provide more character filters.
  184. This property is optional. If it is not specified, no character filters are
  185. applied prior to categorization. If you are customizing some other aspect of the
  186. analyzer and you need to achieve the equivalent of `categorization_filters`
  187. (which are not permitted when some other aspect of the analyzer is customized),
  188. add them here as
  189. <<analysis-pattern-replace-charfilter,pattern replace character filters>>.
  190. end::char-filter[]
  191. tag::compute-feature-influence[]
  192. If `true`, the feature influence calculation is enabled. Defaults to `true`.
  193. end::compute-feature-influence[]
  194. tag::chunking-config[]
  195. {dfeeds-cap} might be required to search over long time periods, for several months
  196. or years. This search is split into time chunks in order to ensure the load
  197. on {es} is managed. Chunking configuration controls how the size of these time
  198. chunks are calculated and is an advanced configuration option.
  199. A chunking configuration object has the following properties:
  200. `chunking_config`.`mode`:::
  201. (string)
  202. include::{docdir}/ml/ml-shared.asciidoc[tag=mode]
  203. `chunking_config`.`time_span`:::
  204. (<<time-units,time units>>)
  205. include::{docdir}/ml/ml-shared.asciidoc[tag=time-span]
  206. end::chunking-config[]
  207. tag::custom-rules[]
  208. An array of custom rule objects, which enable you to customize the way detectors
  209. operate. For example, a rule may dictate to the detector conditions under which
  210. results should be skipped. For more examples, see
  211. {ml-docs}/ml-configuring-detector-custom-rules.html[Customizing detectors with custom rules].
  212. end::custom-rules[]
  213. tag::custom-rules-actions[]
  214. The set of actions to be triggered when the rule applies. If
  215. more than one action is specified the effects of all actions are combined. The
  216. available actions include:
  217. * `skip_result`: The result will not be created. This is the default value.
  218. Unless you also specify `skip_model_update`, the model will be updated as usual
  219. with the corresponding series value.
  220. * `skip_model_update`: The value for that series will not be used to update the
  221. model. Unless you also specify `skip_result`, the results will be created as
  222. usual. This action is suitable when certain values are expected to be
  223. consistently anomalous and they affect the model in a way that negatively
  224. impacts the rest of the results.
  225. end::custom-rules-actions[]
  226. tag::custom-rules-scope[]
  227. An optional scope of series where the rule applies. A rule must either
  228. have a non-empty scope or at least one condition. By default, the scope includes
  229. all series. Scoping is allowed for any of the fields that are also specified in
  230. `by_field_name`, `over_field_name`, or `partition_field_name`. To add a scope
  231. for a field, add the field name as a key in the scope object and set its value
  232. to an object with the following properties:
  233. end::custom-rules-scope[]
  234. tag::custom-rules-scope-filter-id[]
  235. The id of the filter to be used.
  236. end::custom-rules-scope-filter-id[]
  237. tag::custom-rules-scope-filter-type[]
  238. Either `include` (the rule applies for values in the filter) or `exclude` (the
  239. rule applies for values not in the filter). Defaults to `include`.
  240. end::custom-rules-scope-filter-type[]
  241. tag::custom-rules-conditions[]
  242. An optional array of numeric conditions when the rule applies. A rule must
  243. either have a non-empty scope or at least one condition. Multiple conditions are
  244. combined together with a logical `AND`. A condition has the following properties:
  245. end::custom-rules-conditions[]
  246. tag::custom-rules-conditions-applies-to[]
  247. Specifies the result property to which the condition applies. The available
  248. options are `actual`, `typical`, `diff_from_typical`, `time`. If your detector
  249. uses `lat_long`, `metric`, `rare`, or `freq_rare` functions, you can only
  250. specify conditions that apply to `time`.
  251. end::custom-rules-conditions-applies-to[]
  252. tag::custom-rules-conditions-operator[]
  253. Specifies the condition operator. The available options are `gt` (greater than),
  254. `gte` (greater than or equals), `lt` (less than) and `lte` (less than or equals).
  255. end::custom-rules-conditions-operator[]
  256. tag::custom-rules-conditions-value[]
  257. The value that is compared against the `applies_to` field using the `operator`.
  258. end::custom-rules-conditions-value[]
  259. tag::custom-settings[]
  260. Advanced configuration option. Contains custom meta data about the job. For
  261. example, it can contain custom URL information as shown in
  262. {ml-docs}/ml-configuring-url.html[Adding custom URLs to {ml} results].
  263. end::custom-settings[]
  264. tag::data-description[]
  265. The data description defines the format of the input data when you send data to
  266. the job by using the <<ml-post-data,post data>> API. Note that when configure
  267. a {dfeed}, these properties are automatically set.
  268. +
  269. --
  270. When data is received via the <<ml-post-data,post data>> API, it is not stored
  271. in {es}. Only the results for {anomaly-detect} are retained.
  272. `data_description`.`format`:::
  273. (string) Only `JSON` format is supported at this time.
  274. `data_description`.`time_field`:::
  275. (string) The name of the field that contains the timestamp.
  276. The default value is `time`.
  277. `data_description`.`time_format`:::
  278. (string)
  279. include::{docdir}/ml/ml-shared.asciidoc[tag=time-format]
  280. --
  281. end::data-description[]
  282. tag::data-frame-analytics[]
  283. An array of {dfanalytics-job} resources, which are sorted by the `id` value in
  284. ascending order.
  285. `id`:::
  286. (string) The unique identifier of the {dfanalytics-job}.
  287. `source`:::
  288. (object) The configuration of how the analysis data is sourced. It has an
  289. `index` parameter and optionally a `query` and a `_source`.
  290. `index`::::
  291. (array) Index or indices on which to perform the analysis. It can be a single
  292. index or index pattern as well as an array of indices or patterns.
  293. `query`::::
  294. (object) The query that has been specified for the {dfanalytics-job}. The {es}
  295. query domain-specific language (<<query-dsl,DSL>>). This value corresponds to
  296. the query object in an {es} search POST body. By default, this property has the
  297. following value: `{"match_all": {}}`.
  298. `_source`::::
  299. (object) Contains the specified `includes` and/or `excludes` patterns that
  300. select which fields are present in the destination. Fields that are excluded
  301. cannot be included in the analysis.
  302. `includes`:::::
  303. (array) An array of strings that defines the fields that are included in the
  304. destination.
  305. `excludes`:::::
  306. (array) An array of strings that defines the fields that are excluded from the
  307. destination.
  308. `dest`:::
  309. (string) The destination configuration of the analysis.
  310. `index`::::
  311. (string) The _destination index_ that stores the results of the
  312. {dfanalytics-job}.
  313. `results_field`::::
  314. (string) The name of the field that stores the results of the analysis. Defaults
  315. to `ml`.
  316. `analysis`:::
  317. (object) The type of analysis that is performed on the `source`.
  318. `analyzed_fields`:::
  319. (object) Contains `includes` and/or `excludes` patterns that select which fields
  320. are included in the analysis.
  321. `includes`::::
  322. (Optional, array) An array of strings that defines the fields that are included
  323. in the analysis.
  324. `excludes`::::
  325. (Optional, array) An array of strings that defines the fields that are excluded
  326. from the analysis.
  327. `model_memory_limit`:::
  328. (string) The `model_memory_limit` that has been set to the {dfanalytics-job}.
  329. end::data-frame-analytics[]
  330. tag::data-frame-analytics-stats[]
  331. An array of statistics objects for {dfanalytics-jobs}, which are
  332. sorted by the `id` value in ascending order.
  333. `id`:::
  334. (string) The unique identifier of the {dfanalytics-job}.
  335. `state`:::
  336. (string) Current state of the {dfanalytics-job}.
  337. `progress`:::
  338. (array) The progress report of the {dfanalytics-job} by phase.
  339. `phase`:::
  340. (string) Defines the phase of the {dfanalytics-job}. Possible phases:
  341. `reindexing`, `loading_data`, `analyzing`, and `writing_results`.
  342. `progress_percent`:::
  343. (integer) The progress that the {dfanalytics-job} has made expressed in
  344. percentage.
  345. end::data-frame-analytics-stats[]
  346. tag::datafeed-id[]
  347. A numerical character string that uniquely identifies the
  348. {dfeed}. This identifier can contain lowercase alphanumeric characters (a-z
  349. and 0-9), hyphens, and underscores. It must start and end with alphanumeric
  350. characters.
  351. end::datafeed-id[]
  352. tag::datafeed-id-wildcard[]
  353. Identifier for the {dfeed}. It can be a {dfeed} identifier or a wildcard
  354. expression.
  355. end::datafeed-id-wildcard[]
  356. tag::decompress-definition[]
  357. Specifies whether the included model definition should be returned as a JSON map (`true`) or
  358. in a custom compressed format (`false`). Defaults to `true`.
  359. end::decompress-definition[]
  360. tag::delayed-data-check-config[]
  361. Specifies whether the {dfeed} checks for missing data and the size of the
  362. window. For example: `{"enabled": true, "check_window": "1h"}`.
  363. +
  364. --
  365. The {dfeed} can optionally search over indices that have already been read in
  366. an effort to determine whether any data has subsequently been added to the index.
  367. If missing data is found, it is a good indication that the `query_delay` option
  368. is set too low and the data is being indexed after the {dfeed} has passed that
  369. moment in time. See
  370. {ml-docs}/ml-delayed-data-detection.html[Working with delayed data].
  371. This check runs only on real-time {dfeeds}.
  372. `delayed_data_check_config`.`enabled`::
  373. (boolean) Specifies whether the {dfeed} periodically checks for delayed data.
  374. Defaults to `true`.
  375. `delayed_data_check_config`.`check_window`::
  376. (<<time-units,time units>>) The window of time that is searched for late data.
  377. This window of time ends with the latest finalized bucket. It defaults to
  378. `null`, which causes an appropriate `check_window` to be calculated when the
  379. real-time {dfeed} runs. In particular, the default `check_window` span
  380. calculation is based on the maximum of `2h` or `8 * bucket_span`.
  381. --
  382. end::delayed-data-check-config[]
  383. tag::dependent-variable[]
  384. Defines which field of the document is to be predicted.
  385. This parameter is supplied by field name and must match one of the fields in
  386. the index being used to train. If this field is missing from a document, then
  387. that document will not be used for training, but a prediction with the trained
  388. model will be generated for it. It is also known as continuous target variable.
  389. end::dependent-variable[]
  390. tag::desc-results[]
  391. If true, the results are sorted in descending order.
  392. end::desc-results[]
  393. tag::description-dfa[]
  394. A description of the job.
  395. end::description-dfa[]
  396. tag::dest[]
  397. The destination configuration, consisting of `index` and
  398. optionally `results_field` (`ml` by default).
  399. `index`:::
  400. (Required, string) Defines the _destination index_ to store the results of
  401. the {dfanalytics-job}.
  402. `results_field`:::
  403. (Optional, string) Defines the name of the field in which to store the
  404. results of the analysis. Default to `ml`.
  405. end::dest[]
  406. tag::detector-description[]
  407. A description of the detector. For example, `Low event rate`.
  408. end::detector-description[]
  409. tag::detector-field-name[]
  410. The field that the detector uses in the function. If you use an event rate
  411. function such as `count` or `rare`, do not specify this field.
  412. +
  413. --
  414. NOTE: The `field_name` cannot contain double quotes or backslashes.
  415. --
  416. end::detector-field-name[]
  417. tag::detector-index[]
  418. A unique identifier for the detector. This identifier is based on the order of
  419. the detectors in the `analysis_config`, starting at zero. You can use this
  420. identifier when you want to update a specific detector.
  421. end::detector-index[]
  422. tag::eta[]
  423. The shrinkage applied to the weights. Smaller values result
  424. in larger forests which have better generalization error. However, the smaller
  425. the value the longer the training will take. For more information, see
  426. https://en.wikipedia.org/wiki/Gradient_boosting#Shrinkage[this wiki article]
  427. about shrinkage.
  428. end::eta[]
  429. tag::exclude-frequent[]
  430. Contains one of the following values: `all`, `none`, `by`, or `over`. If set,
  431. frequent entities are excluded from influencing the anomaly results. Entities
  432. can be considered frequent over time or frequent in a population. If you are
  433. working with both over and by fields, then you can set `exclude_frequent` to
  434. `all` for both fields, or to `by` or `over` for those specific fields.
  435. end::exclude-frequent[]
  436. tag::exclude-interim-results[]
  437. If `true`, the output excludes interim results. By default, interim results are
  438. included.
  439. end::exclude-interim-results[]
  440. tag::feature-bag-fraction[]
  441. Defines the fraction of features that will be used when
  442. selecting a random bag for each candidate split.
  443. end::feature-bag-fraction[]
  444. tag::feature-influence-threshold[]
  445. The minimum {olscore} that a document needs to have in order to calculate its
  446. {fiscore}. Value range: 0-1 (`0.1` by default).
  447. end::feature-influence-threshold[]
  448. tag::field-selection[]
  449. An array of objects that explain selection for each field, sorted by
  450. the field names. Each object in the array has the following properties:
  451. `name`:::
  452. (string) The field name.
  453. `mapping_types`:::
  454. (string) The mapping types of the field.
  455. `is_included`:::
  456. (boolean) Whether the field is selected to be included in the analysis.
  457. `is_required`:::
  458. (boolean) Whether the field is required.
  459. `feature_type`:::
  460. (string) The feature type of this field for the analysis. May be `categorical`
  461. or `numerical`.
  462. `reason`:::
  463. (string) The reason a field is not selected to be included in the analysis.
  464. end::field-selection[]
  465. tag::filter[]
  466. One or more <<analysis-tokenfilters,token filters>>. In addition to the built-in
  467. token filters, other plugins can provide more token filters. This property is
  468. optional. If it is not specified, no token filters are applied prior to
  469. categorization.
  470. end::filter[]
  471. tag::frequency[]
  472. The interval at which scheduled queries are made while the {dfeed} runs in real
  473. time. The default value is either the bucket span for short bucket spans, or,
  474. for longer bucket spans, a sensible fraction of the bucket span. For example:
  475. `150s`.
  476. end::frequency[]
  477. tag::from[]
  478. Skips the specified number of {dfanalytics-jobs}. The default value is `0`.
  479. end::from[]
  480. tag::function[]
  481. The analysis function that is used. For example, `count`, `rare`, `mean`, `min`,
  482. `max`, and `sum`. For more information, see
  483. {ml-docs}/ml-functions.html[Function reference].
  484. end::function[]
  485. tag::gamma[]
  486. Regularization parameter to prevent overfitting on the
  487. training dataset. Multiplies a linear penalty associated with the size of
  488. individual trees in the forest. The higher the value the more training will
  489. prefer smaller trees. The smaller this parameter the larger individual trees
  490. will be and the longer train will take.
  491. end::gamma[]
  492. tag::groups[]
  493. A list of job groups. A job can belong to no groups or many.
  494. end::groups[]
  495. tag::include-model-definition[]
  496. Specifies if the model definition should be returned in the response. Defaults
  497. to `false`. When `true`, only a single model must match the ID patterns
  498. provided, otherwise a bad request is returned.
  499. end::include-model-definition[]
  500. tag::indices[]
  501. An array of index names. Wildcards are supported. For example:
  502. `["it_ops_metrics", "server*"]`.
  503. +
  504. --
  505. NOTE: If any indices are in remote clusters then `cluster.remote.connect` must
  506. not be set to `false` on any {ml} nodes.
  507. --
  508. end::indices[]
  509. tag::influencers[]
  510. A comma separated list of influencer field names. Typically these can be the by,
  511. over, or partition fields that are used in the detector configuration. You might
  512. also want to use a field name that is not specifically named in a detector, but
  513. is available as part of the input data. When you use multiple detectors, the use
  514. of influencers is recommended as it aggregates results for each influencer entity.
  515. end::influencers[]
  516. tag::is-interim[]
  517. If `true`, this is an interim result. In other words, the results are calculated
  518. based on partial input data.
  519. end::is-interim[]
  520. tag::job-id-anomaly-detection[]
  521. Identifier for the {anomaly-job}.
  522. end::job-id-anomaly-detection[]
  523. tag::job-id-data-frame-analytics[]
  524. Identifier for the {dfanalytics-job}.
  525. end::job-id-data-frame-analytics[]
  526. tag::job-id-anomaly-detection-default[]
  527. Identifier for the {anomaly-job}. It can be a job identifier, a group name, or a
  528. wildcard expression. If you do not specify one of these options, the API returns
  529. information for all {anomaly-jobs}.
  530. end::job-id-anomaly-detection-default[]
  531. tag::job-id-data-frame-analytics-default[]
  532. Identifier for the {dfanalytics-job}. If you do not specify this option, the API
  533. returns information for the first hundred {dfanalytics-jobs}.
  534. end::job-id-data-frame-analytics-default[]
  535. tag::job-id-anomaly-detection-list[]
  536. An identifier for the {anomaly-jobs}. It can be a job
  537. identifier, a group name, or a comma-separated list of jobs or groups.
  538. end::job-id-anomaly-detection-list[]
  539. tag::job-id-anomaly-detection-wildcard[]
  540. Identifier for the {anomaly-job}. It can be a job identifier, a group name, or a
  541. wildcard expression.
  542. end::job-id-anomaly-detection-wildcard[]
  543. tag::job-id-anomaly-detection-wildcard-list[]
  544. Identifier for the {anomaly-job}. It can be a job identifier, a group name, a
  545. comma-separated list of jobs or groups, or a wildcard expression.
  546. end::job-id-anomaly-detection-wildcard-list[]
  547. tag::job-id-anomaly-detection-define[]
  548. Identifier for the {anomaly-job}. This identifier can contain lowercase
  549. alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start
  550. and end with alphanumeric characters.
  551. end::job-id-anomaly-detection-define[]
  552. tag::job-id-data-frame-analytics-define[]
  553. Identifier for the {dfanalytics-job}. This identifier can contain lowercase
  554. alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start
  555. and end with alphanumeric characters.
  556. end::job-id-data-frame-analytics-define[]
  557. tag::job-id-datafeed[]
  558. The unique identifier for the job to which the {dfeed} sends data.
  559. end::job-id-datafeed[]
  560. tag::lambda[]
  561. Regularization parameter to prevent overfitting on the
  562. training dataset. Multiplies an L2 regularisation term which applies to leaf
  563. weights of the individual trees in the forest. The higher the value the more
  564. training will attempt to keep leaf weights small. This makes the prediction
  565. function smoother at the expense of potentially not being able to capture
  566. relevant relationships between the features and the {depvar}. The smaller this
  567. parameter the larger individual trees will be and the longer train will take.
  568. end::lambda[]
  569. tag::latency[]
  570. The size of the window in which to expect data that is out of time order. The
  571. default value is 0 (no latency). If you specify a non-zero value, it must be
  572. greater than or equal to one second. For more information about time units, see
  573. <<time-units>>.
  574. +
  575. --
  576. NOTE: Latency is only applicable when you send data by using
  577. the <<ml-post-data,post data>> API.
  578. --
  579. end::latency[]
  580. tag::max-empty-searches[]
  581. If a real-time {dfeed} has never seen any data (including during any initial
  582. training period) then it will automatically stop itself and close its associated
  583. job after this many real-time searches that return no documents. In other words,
  584. it will stop after `frequency` times `max_empty_searches` of real-time operation.
  585. If not set then a {dfeed} with no end time that sees no data will remain started
  586. until it is explicitly stopped. By default this setting is not set.
  587. end::max-empty-searches[]
  588. tag::maximum-number-trees[]
  589. Defines the maximum number of trees the forest is allowed
  590. to contain. The maximum value is 2000.
  591. end::maximum-number-trees[]
  592. tag::memory-estimation[]
  593. An object containing the memory estimates. The object has the
  594. following properties:
  595. `expected_memory_without_disk`:::
  596. (string) Estimated memory usage under the assumption that the whole
  597. {dfanalytics} should happen in memory (i.e. without overflowing to disk).
  598. `expected_memory_with_disk`:::
  599. (string) Estimated memory usage under the assumption that overflowing to disk is
  600. allowed during {dfanalytics}. `expected_memory_with_disk` is usually smaller
  601. than `expected_memory_without_disk` as using disk allows to limit the main
  602. memory needed to perform {dfanalytics}.
  603. end::memory-estimation[]
  604. tag::method[]
  605. Sets the method that {oldetection} uses. If the method is not set {oldetection}
  606. uses an ensemble of different methods and normalises and combines their
  607. individual {olscores} to obtain the overall {olscore}. We recommend to use the
  608. ensemble method. Available methods are `lof`, `ldof`, `distance_kth_nn`,
  609. `distance_knn`.
  610. end::method[]
  611. tag::mode[]
  612. There are three available modes:
  613. +
  614. --
  615. * `auto`: The chunk size is dynamically calculated. This is the default and
  616. recommended value.
  617. * `manual`: Chunking is applied according to the specified `time_span`.
  618. * `off`: No chunking is applied.
  619. --
  620. end::mode[]
  621. tag::model-id[]
  622. The unique identifier of the trained {infer} model.
  623. end::model-id[]
  624. tag::model-memory-limit[]
  625. The approximate maximum amount of memory resources that are required for
  626. analytical processing. Once this limit is approached, data pruning becomes
  627. more aggressive. Upon exceeding this limit, new entities are not modeled. The
  628. default value for jobs created in version 6.1 and later is `1024mb`.
  629. This value will need to be increased for jobs that are expected to analyze high
  630. cardinality fields, but the default is set to a relatively small size to ensure
  631. that high resource usage is a conscious decision. The default value for jobs
  632. created in versions earlier than 6.1 is `4096mb`.
  633. +
  634. --
  635. If you specify a number instead of a string, the units are assumed to be MiB.
  636. Specifying a string is recommended for clarity. If you specify a byte size unit
  637. of `b` or `kb` and the number does not equate to a discrete number of megabytes,
  638. it is rounded down to the closest MiB. The minimum valid value is 1 MiB. If you
  639. specify a value less than 1 MiB, an error occurs. For more information about
  640. supported byte size units, see <<byte-units>>.
  641. If your `elasticsearch.yml` file contains an `xpack.ml.max_model_memory_limit`
  642. setting, an error occurs when you try to create jobs that have
  643. `model_memory_limit` values greater than that setting. For more information,
  644. see <<ml-settings>>.
  645. --
  646. end::model-memory-limit[]
  647. tag::model-memory-limit-dfa[]
  648. The approximate maximum amount of memory resources that are permitted for
  649. analytical processing. The default value for {dfanalytics-jobs} is `1gb`. If
  650. your `elasticsearch.yml` file contains an `xpack.ml.max_model_memory_limit`
  651. setting, an error occurs when you try to create {dfanalytics-jobs} that have
  652. `model_memory_limit` values greater than that setting. For more information, see
  653. <<ml-settings>>.
  654. end::model-memory-limit-dfa[]
  655. tag::model-plot-config[]
  656. This advanced configuration option stores model information along with the
  657. results. It provides a more detailed view into {anomaly-detect}.
  658. +
  659. --
  660. WARNING: If you enable model plot it can add considerable overhead to the
  661. performance of the system; it is not feasible for jobs with many entities.
  662. Model plot provides a simplified and indicative view of the model and its
  663. bounds. It does not display complex features such as multivariate correlations
  664. or multimodal data. As such, anomalies may occasionally be reported which cannot
  665. be seen in the model plot.
  666. Model plot config can be configured when the job is created or updated later. It
  667. must be disabled if performance issues are experienced.
  668. --
  669. end::model-plot-config[]
  670. tag::model-plot-config-enabled[]
  671. If true, enables calculation and storage of the model bounds for each entity
  672. that is being analyzed. By default, this is not enabled.
  673. end::model-plot-config-enabled[]
  674. tag::model-plot-config-terms[]
  675. Limits data collection to this comma separated list of partition or by field
  676. values. If terms are not specified or it is an empty string, no filtering is
  677. applied. For example, "CPU,NetworkIn,DiskWrites". Wildcards are not supported.
  678. Only the specified `terms` can be viewed when using the Single Metric Viewer.
  679. end::model-plot-config-terms[]
  680. tag::model-snapshot-id[]
  681. A numerical character string that uniquely identifies the model snapshot. For
  682. example, `1575402236000 `.
  683. end::model-snapshot-id[]
  684. tag::model-snapshot-retention-days[]
  685. The time in days that model snapshots are retained for the job. Older snapshots
  686. are deleted. The default value is `1`, which means snapshots are retained for
  687. one day (twenty-four hours).
  688. end::model-snapshot-retention-days[]
  689. tag::multivariate-by-fields[]
  690. This functionality is reserved for internal use. It is not supported for use in
  691. customer environments and is not subject to the support SLA of official GA
  692. features.
  693. +
  694. --
  695. If set to `true`, the analysis will automatically find correlations between
  696. metrics for a given `by` field value and report anomalies when those
  697. correlations cease to hold. For example, suppose CPU and memory usage on host A
  698. is usually highly correlated with the same metrics on host B. Perhaps this
  699. correlation occurs because they are running a load-balanced application.
  700. If you enable this property, then anomalies will be reported when, for example,
  701. CPU usage on host A is high and the value of CPU usage on host B is low. That
  702. is to say, you'll see an anomaly when the CPU of host A is unusual given
  703. the CPU of host B.
  704. NOTE: To use the `multivariate_by_fields` property, you must also specify
  705. `by_field_name` in your detector.
  706. --
  707. end::multivariate-by-fields[]
  708. tag::n-neighbors[]
  709. Defines the value for how many nearest neighbors each method of
  710. {oldetection} will use to calculate its {olscore}. When the value is not set,
  711. different values will be used for different ensemble members. This helps
  712. improve diversity in the ensemble. Therefore, only override this if you are
  713. confident that the value you choose is appropriate for the data set.
  714. end::n-neighbors[]
  715. tag::num-top-classes[]
  716. Defines the number of categories for which the predicted
  717. probabilities are reported. It must be non-negative. If it is greater than the
  718. total number of categories (in the {version} version of the {stack}, it's two)
  719. to predict then we will report all category probabilities. Defaults to 2.
  720. end::num-top-classes[]
  721. tag::over-field-name[]
  722. The field used to split the data. In particular, this property is used for
  723. analyzing the splits with respect to the history of all splits. It is used for
  724. finding unusual values in the population of all splits. For more information,
  725. see {ml-docs}/ml-configuring-pop.html[Performing population analysis].
  726. end::over-field-name[]
  727. tag::outlier-fraction[]
  728. Sets the proportion of the data set that is assumed to be outlying prior to
  729. {oldetection}. For example, 0.05 means it is assumed that 5% of values are real
  730. outliers and 95% are inliers.
  731. end::outlier-fraction[]
  732. tag::partition-field-name[]
  733. The field used to segment the analysis. When you use this property, you have
  734. completely independent baselines for each value of this field.
  735. end::partition-field-name[]
  736. tag::prediction-field-name[]
  737. Defines the name of the prediction field in the results.
  738. Defaults to `<dependent_variable>_prediction`.
  739. end::prediction-field-name[]
  740. tag::randomize-seed[]
  741. Defines the seed to the random generator that is used to pick which documents
  742. will be used for training. By default it is randomly generated. Set it to a
  743. specific value to ensure the same documents are used for training assuming other
  744. related parameters (for example, `source`, `analyzed_fields`, etc.) are the
  745. same.
  746. end::randomize-seed[]
  747. tag::query[]
  748. The {es} query domain-specific language (DSL). This value corresponds to the
  749. query object in an {es} search POST body. All the options that are supported by
  750. {es} can be used, as this object is passed verbatim to {es}. By default, this
  751. property has the following value: `{"match_all": {"boost": 1}}`.
  752. end::query[]
  753. tag::query-delay[]
  754. The number of seconds behind real time that data is queried. For example, if
  755. data from 10:04 a.m. might not be searchable in {es} until 10:06 a.m., set this
  756. property to 120 seconds. The default value is randomly selected between `60s`
  757. and `120s`. This randomness improves the query performance when there are
  758. multiple jobs running on the same node.
  759. end::query-delay[]
  760. tag::renormalization-window-days[]
  761. Advanced configuration option. The period over which adjustments to the score
  762. are applied, as new data is seen. The default value is the longer of 30 days or
  763. 100 `bucket_spans`.
  764. end::renormalization-window-days[]
  765. tag::results-index-name[]
  766. A text string that affects the name of the {ml} results index. The default value
  767. is `shared`, which generates an index named `.ml-anomalies-shared`.
  768. end::results-index-name[]
  769. tag::results-retention-days[]
  770. Advanced configuration option. The number of days for which job results are
  771. retained. Once per day at 00:30 (server time), results older than this period
  772. are deleted from {es}. The default value is null, which means results are
  773. retained.
  774. end::results-retention-days[]
  775. tag::retain[]
  776. If `true`, this snapshot will not be deleted during automatic cleanup of
  777. snapshots older than `model_snapshot_retention_days`. However, this snapshot
  778. will be deleted when the job is deleted. The default value is `false`.
  779. end::retain[]
  780. tag::script-fields[]
  781. Specifies scripts that evaluate custom expressions and returns script fields to
  782. the {dfeed}. The detector configuration objects in a job can contain functions
  783. that use these script fields. For more information, see
  784. {ml-docs}/ml-configuring-transform.html[Transforming data with script fields]
  785. and <<request-body-search-script-fields,Script fields>>.
  786. end::script-fields[]
  787. tag::scroll-size[]
  788. The `size` parameter that is used in {es} searches. The default value is `1000`.
  789. end::scroll-size[]
  790. tag::size[]
  791. Specifies the maximum number of {dfanalytics-jobs} to obtain. The default value
  792. is `100`.
  793. end::size[]
  794. tag::snapshot-id[]
  795. Identifier for the model snapshot.
  796. end::snapshot-id[]
  797. tag::source-put-dfa[]
  798. The configuration of how to source the analysis data. It requires an
  799. `index`. Optionally, `query` and `_source` may be specified.
  800. `index`:::
  801. (Required, string or array) Index or indices on which to perform the
  802. analysis. It can be a single index or index pattern as well as an array of
  803. indices or patterns.
  804. `query`:::
  805. (Optional, object) The {es} query domain-specific language
  806. (<<query-dsl,DSL>>). This value corresponds to the query object in an {es}
  807. search POST body. All the options that are supported by {es} can be used,
  808. as this object is passed verbatim to {es}. By default, this property has
  809. the following value: `{"match_all": {}}`.
  810. `_source`:::
  811. (Optional, object) Specify `includes` and/or `excludes` patterns to select
  812. which fields will be present in the destination. Fields that are excluded
  813. cannot be included in the analysis.
  814. `includes`::::
  815. (array) An array of strings that defines the fields that will be
  816. included in the destination.
  817. `excludes`::::
  818. (array) An array of strings that defines the fields that will be
  819. excluded from the destination.
  820. end::source-put-dfa[]
  821. tag::standardization-enabled[]
  822. If `true`, then the following operation is performed on the columns before
  823. computing outlier scores: (x_i - mean(x_i)) / sd(x_i). Defaults to `true`. For
  824. more information, see
  825. https://en.wikipedia.org/wiki/Feature_scaling#Standardization_(Z-score_Normalization)[this wiki page about standardization].
  826. end::standardization-enabled[]
  827. tag::summary-count-field-name[]
  828. If this property is specified, the data that is fed to the job is expected to be
  829. pre-summarized. This property value is the name of the field that contains the
  830. count of raw data points that have been summarized. The same
  831. `summary_count_field_name` applies to all detectors in the job.
  832. +
  833. --
  834. NOTE: The `summary_count_field_name` property cannot be used with the `metric`
  835. function.
  836. --
  837. end::summary-count-field-name[]
  838. tag::timeout-start[]
  839. Controls the amount of time to wait until the {dfanalytics-job} starts. Defaults
  840. to 20 seconds.
  841. end::timeout-start[]
  842. tag::timeout-stop[]
  843. Controls the amount of time to wait until the {dfanalytics-job} stops. Defaults
  844. to 20 seconds.
  845. end::timeout-stop[]
  846. tag::time-format[]
  847. The time format, which can be `epoch`, `epoch_ms`, or a custom pattern. The
  848. default value is `epoch`, which refers to UNIX or Epoch time (the number of
  849. seconds since 1 Jan 1970). The value `epoch_ms` indicates that time is measured
  850. in milliseconds since the epoch. The `epoch` and `epoch_ms` time formats accept
  851. either integer or real values. +
  852. +
  853. --
  854. NOTE: Custom patterns must conform to the Java `DateTimeFormatter` class.
  855. When you use date-time formatting patterns, it is recommended that you provide
  856. the full date, time and time zone. For example: `yyyy-MM-dd'T'HH:mm:ssX`.
  857. If the pattern that you specify is not sufficient to produce a complete
  858. timestamp, job creation fails.
  859. --
  860. end::time-format[]
  861. tag::time-span[]
  862. The time span that each search will be querying. This setting is only applicable
  863. when the mode is set to `manual`. For example: `3h`.
  864. end::time-span[]
  865. tag::timestamp-results[]
  866. The start time of the bucket for which these results were calculated.
  867. end::timestamp-results[]
  868. tag::tokenizer[]
  869. The name or definition of the <<analysis-tokenizers,tokenizer>> to use after
  870. character filters are applied. This property is compulsory if
  871. `categorization_analyzer` is specified as an object. Machine learning provides a
  872. tokenizer called `ml_classic` that tokenizes in the same way as the
  873. non-customizable tokenizer in older versions of the product. If you want to use
  874. that tokenizer but change the character or token filters, specify
  875. `"tokenizer": "ml_classic"` in your `categorization_analyzer`.
  876. end::tokenizer[]
  877. tag::training-percent[]
  878. Defines what percentage of the eligible documents that will
  879. be used for training. Documents that are ignored by the analysis (for example
  880. those that contain arrays) won’t be included in the calculation for used
  881. percentage. Defaults to `100`.
  882. end::training-percent[]
  883. tag::use-null[]
  884. Defines whether a new series is used as the null series when there is no value
  885. for the by or partition fields. The default value is `false`.
  886. end::use-null[]