ml-shared.asciidoc 46 KB

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