ml-shared.asciidoc 45 KB

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