ml-shared.asciidoc 56 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435
  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-anomaly-jobs[]
  124. For open {anomaly-jobs} only, contains messages relating to the selection
  125. of a node to run the job.
  126. end::assignment-explanation-anomaly-jobs[]
  127. tag::assignment-explanation-datafeeds[]
  128. For started {dfeeds} only, contains messages relating to the selection of a node.
  129. end::assignment-explanation-datafeeds[]
  130. tag::assignment-explanation-dfanalytics[]
  131. Contains messages relating to the selection of a node.
  132. end::assignment-explanation-dfanalytics[]
  133. tag::background-persist-interval[]
  134. Advanced configuration option. The time between each periodic persistence of the
  135. model. The default value is a randomized value between 3 to 4 hours, which
  136. avoids all jobs persisting at exactly the same time. The smallest allowed value
  137. is 1 hour.
  138. +
  139. --
  140. TIP: For very large models (several GB), persistence could take 10-20 minutes,
  141. so do not set the `background_persist_interval` value too low.
  142. --
  143. end::background-persist-interval[]
  144. tag::bucket-allocation-failures-count[]
  145. The number of buckets for which new entities in incoming data were not processed
  146. due to insufficient model memory. This situation is also signified by a
  147. `hard_limit: memory_status` property value.
  148. end::bucket-allocation-failures-count[]
  149. tag::bucket-count[]
  150. The number of buckets processed.
  151. end::bucket-count[]
  152. tag::bucket-count-anomaly-jobs[]
  153. The number of bucket results produced by the job.
  154. end::bucket-count-anomaly-jobs[]
  155. tag::bucket-span[]
  156. The size of the interval that the analysis is aggregated into, typically between
  157. `5m` and `1h`. The default value is `5m`. If the {anomaly-job} uses a {dfeed}
  158. with {ml-docs}/ml-configuring-aggregation.html[aggregations], this value must be
  159. divisible by the interval of the date histogram aggregation. For more
  160. information, see {ml-docs}/ml-buckets.html[Buckets].
  161. end::bucket-span[]
  162. tag::bucket-span-results[]
  163. The length of the bucket in seconds. This value matches the `bucket_span`
  164. that is specified in the job.
  165. end::bucket-span-results[]
  166. tag::bucket-time-exponential-average[]
  167. Exponential moving average of all bucket processing times, in milliseconds.
  168. end::bucket-time-exponential-average[]
  169. tag::bucket-time-exponential-average-hour[]
  170. Exponentially-weighted moving average of bucket processing times
  171. calculated in a 1 hour time window, in milliseconds.
  172. end::bucket-time-exponential-average-hour[]
  173. tag::bucket-time-maximum[]
  174. Maximum among all bucket processing times, in milliseconds.
  175. end::bucket-time-maximum[]
  176. tag::bucket-time-minimum[]
  177. Minimum among all bucket processing times, in milliseconds.
  178. end::bucket-time-minimum[]
  179. tag::bucket-time-total[]
  180. Sum of all bucket processing times, in milliseconds.
  181. end::bucket-time-total[]
  182. tag::by-field-name[]
  183. The field used to split the data. In particular, this property is used for
  184. analyzing the splits with respect to their own history. It is used for finding
  185. unusual values in the context of the split.
  186. end::by-field-name[]
  187. tag::calendar-id[]
  188. A string that uniquely identifies a calendar.
  189. end::calendar-id[]
  190. tag::categorization-analyzer[]
  191. If `categorization_field_name` is specified, you can also define the analyzer
  192. that is used to interpret the categorization field. This property cannot be used
  193. at the same time as `categorization_filters`. The categorization analyzer
  194. specifies how the `categorization_field` is interpreted by the categorization
  195. process. The syntax is very similar to that used to define the `analyzer` in the
  196. <<indices-analyze,Analyze endpoint>>. For more information, see
  197. {ml-docs}/ml-configuring-categories.html[Categorizing log messages].
  198. +
  199. --
  200. The `categorization_analyzer` field can be specified either as a string or as an
  201. object. If it is a string it must refer to a
  202. <<analysis-analyzers,built-in analyzer>> or one added by another plugin. If it
  203. is an object it has the following properties:
  204. --
  205. `analysis_config`.`categorization_analyzer`.`char_filter`::::
  206. (array of strings or objects)
  207. include::{docdir}/ml/ml-shared.asciidoc[tag=char-filter]
  208. `analysis_config`.`categorization_analyzer`.`tokenizer`::::
  209. (string or object)
  210. include::{docdir}/ml/ml-shared.asciidoc[tag=tokenizer]
  211. `analysis_config`.`categorization_analyzer`.`filter`::::
  212. (array of strings or objects)
  213. include::{docdir}/ml/ml-shared.asciidoc[tag=filter]
  214. end::categorization-analyzer[]
  215. tag::categorization-examples-limit[]
  216. The maximum number of examples stored per category in memory and in the results
  217. data store. The default value is 4. If you increase this value, more examples
  218. are available, however it requires that you have more storage available. If you
  219. set this value to `0`, no examples are stored.
  220. +
  221. --
  222. NOTE: The `categorization_examples_limit` only applies to analysis that uses
  223. categorization. For more information, see
  224. {ml-docs}/ml-configuring-categories.html[Categorizing log messages].
  225. --
  226. end::categorization-examples-limit[]
  227. tag::categorization-field-name[]
  228. If this property is specified, the values of the specified field will be
  229. categorized. The resulting categories must be used in a detector by setting
  230. `by_field_name`, `over_field_name`, or `partition_field_name` to the keyword
  231. `mlcategory`. For more information, see
  232. {ml-docs}/ml-configuring-categories.html[Categorizing log messages].
  233. end::categorization-field-name[]
  234. tag::categorization-filters[]
  235. If `categorization_field_name` is specified, you can also define optional
  236. filters. This property expects an array of regular expressions. The expressions
  237. are used to filter out matching sequences from the categorization field values.
  238. You can use this functionality to fine tune the categorization by excluding
  239. sequences from consideration when categories are defined. For example, you can
  240. exclude SQL statements that appear in your log files. For more information, see
  241. {ml-docs}/ml-configuring-categories.html[Categorizing log messages]. This
  242. property cannot be used at the same time as `categorization_analyzer`. If you
  243. only want to define simple regular expression filters that are applied prior to
  244. tokenization, setting this property is the easiest method. If you also want to
  245. customize the tokenizer or post-tokenization filtering, use the
  246. `categorization_analyzer` property instead and include the filters as
  247. `pattern_replace` character filters. The effect is exactly the same.
  248. end::categorization-filters[]
  249. tag::categorization-status[]
  250. The status of categorization for the job. Contains one of the following values:
  251. +
  252. --
  253. * `ok`: Categorization is performing acceptably well (or not being used at all).
  254. * `warn`: Categorization is detecting a distribution of categories that suggests
  255. the input data is inappropriate for categorization. Problems could be that there
  256. is only one category, more than 90% of categories are rare, the number of
  257. categories is greater than 50% of the number of categorized documents, there are
  258. no frequently matched categories, or more than 50% of categories are dead.
  259. --
  260. end::categorization-status[]
  261. tag::categorized-doc-count[]
  262. The number of documents that have had a field categorized.
  263. end::categorized-doc-count[]
  264. tag::char-filter[]
  265. One or more <<analysis-charfilters,character filters>>. In addition to the
  266. built-in character filters, other plugins can provide more character filters.
  267. This property is optional. If it is not specified, no character filters are
  268. applied prior to categorization. If you are customizing some other aspect of the
  269. analyzer and you need to achieve the equivalent of `categorization_filters`
  270. (which are not permitted when some other aspect of the analyzer is customized),
  271. add them here as
  272. <<analysis-pattern-replace-charfilter,pattern replace character filters>>.
  273. end::char-filter[]
  274. tag::compute-feature-influence[]
  275. If `true`, the feature influence calculation is enabled. Defaults to `true`.
  276. end::compute-feature-influence[]
  277. tag::chunking-config[]
  278. {dfeeds-cap} might be required to search over long time periods, for several months
  279. or years. This search is split into time chunks in order to ensure the load
  280. on {es} is managed. Chunking configuration controls how the size of these time
  281. chunks are calculated and is an advanced configuration option.
  282. A chunking configuration object has the following properties:
  283. `chunking_config`.`mode`:::
  284. (string)
  285. include::{docdir}/ml/ml-shared.asciidoc[tag=mode]
  286. `chunking_config`.`time_span`:::
  287. (<<time-units,time units>>)
  288. include::{docdir}/ml/ml-shared.asciidoc[tag=time-span]
  289. end::chunking-config[]
  290. tag::custom-rules[]
  291. An array of custom rule objects, which enable you to customize the way detectors
  292. operate. For example, a rule may dictate to the detector conditions under which
  293. results should be skipped. For more examples, see
  294. {ml-docs}/ml-configuring-detector-custom-rules.html[Customizing detectors with custom rules].
  295. end::custom-rules[]
  296. tag::custom-rules-actions[]
  297. The set of actions to be triggered when the rule applies. If
  298. more than one action is specified the effects of all actions are combined. The
  299. available actions include:
  300. * `skip_result`: The result will not be created. This is the default value.
  301. Unless you also specify `skip_model_update`, the model will be updated as usual
  302. with the corresponding series value.
  303. * `skip_model_update`: The value for that series will not be used to update the
  304. model. Unless you also specify `skip_result`, the results will be created as
  305. usual. This action is suitable when certain values are expected to be
  306. consistently anomalous and they affect the model in a way that negatively
  307. impacts the rest of the results.
  308. end::custom-rules-actions[]
  309. tag::custom-rules-scope[]
  310. An optional scope of series where the rule applies. A rule must either
  311. have a non-empty scope or at least one condition. By default, the scope includes
  312. all series. Scoping is allowed for any of the fields that are also specified in
  313. `by_field_name`, `over_field_name`, or `partition_field_name`. To add a scope
  314. for a field, add the field name as a key in the scope object and set its value
  315. to an object with the following properties:
  316. end::custom-rules-scope[]
  317. tag::custom-rules-scope-filter-id[]
  318. The id of the filter to be used.
  319. end::custom-rules-scope-filter-id[]
  320. tag::custom-rules-scope-filter-type[]
  321. Either `include` (the rule applies for values in the filter) or `exclude` (the
  322. rule applies for values not in the filter). Defaults to `include`.
  323. end::custom-rules-scope-filter-type[]
  324. tag::custom-rules-conditions[]
  325. An optional array of numeric conditions when the rule applies. A rule must
  326. either have a non-empty scope or at least one condition. Multiple conditions are
  327. combined together with a logical `AND`. A condition has the following properties:
  328. end::custom-rules-conditions[]
  329. tag::custom-rules-conditions-applies-to[]
  330. Specifies the result property to which the condition applies. The available
  331. options are `actual`, `typical`, `diff_from_typical`, `time`. If your detector
  332. uses `lat_long`, `metric`, `rare`, or `freq_rare` functions, you can only
  333. specify conditions that apply to `time`.
  334. end::custom-rules-conditions-applies-to[]
  335. tag::custom-rules-conditions-operator[]
  336. Specifies the condition operator. The available options are `gt` (greater than),
  337. `gte` (greater than or equals), `lt` (less than) and `lte` (less than or equals).
  338. end::custom-rules-conditions-operator[]
  339. tag::custom-rules-conditions-value[]
  340. The value that is compared against the `applies_to` field using the `operator`.
  341. end::custom-rules-conditions-value[]
  342. tag::custom-settings[]
  343. Advanced configuration option. Contains custom meta data about the job. For
  344. example, it can contain custom URL information as shown in
  345. {ml-docs}/ml-configuring-url.html[Adding custom URLs to {ml} results].
  346. end::custom-settings[]
  347. tag::data-description[]
  348. The data description defines the format of the input data when you send data to
  349. the job by using the <<ml-post-data,post data>> API. Note that when configure
  350. a {dfeed}, these properties are automatically set.
  351. +
  352. --
  353. When data is received via the <<ml-post-data,post data>> API, it is not stored
  354. in {es}. Only the results for {anomaly-detect} are retained.
  355. `data_description`.`format`:::
  356. (string) Only `JSON` format is supported at this time.
  357. `data_description`.`time_field`:::
  358. (string) The name of the field that contains the timestamp.
  359. The default value is `time`.
  360. `data_description`.`time_format`:::
  361. (string)
  362. include::{docdir}/ml/ml-shared.asciidoc[tag=time-format]
  363. --
  364. end::data-description[]
  365. tag::data-frame-analytics[]
  366. An array of {dfanalytics-job} resources, which are sorted by the `id` value in
  367. ascending order.
  368. `id`:::
  369. (string) The unique identifier of the {dfanalytics-job}.
  370. `source`:::
  371. (object) The configuration of how the analysis data is sourced. It has an
  372. `index` parameter and optionally a `query` and a `_source`.
  373. `index`::::
  374. (array) Index or indices on which to perform the analysis. It can be a single
  375. index or index pattern as well as an array of indices or patterns.
  376. `query`::::
  377. (object) The query that has been specified for the {dfanalytics-job}. The {es}
  378. query domain-specific language (<<query-dsl,DSL>>). This value corresponds to
  379. the query object in an {es} search POST body. By default, this property has the
  380. following value: `{"match_all": {}}`.
  381. `_source`::::
  382. (object) Contains the specified `includes` and/or `excludes` patterns that
  383. select which fields are present in the destination. Fields that are excluded
  384. cannot be included in the analysis.
  385. `includes`:::::
  386. (array) An array of strings that defines the fields that are included in the
  387. destination.
  388. `excludes`:::::
  389. (array) An array of strings that defines the fields that are excluded from the
  390. destination.
  391. `dest`:::
  392. (string) The destination configuration of the analysis.
  393. `index`::::
  394. (string) The _destination index_ that stores the results of the
  395. {dfanalytics-job}.
  396. `results_field`::::
  397. (string) The name of the field that stores the results of the analysis. Defaults
  398. to `ml`.
  399. `analysis`:::
  400. (object) The type of analysis that is performed on the `source`.
  401. `analyzed_fields`:::
  402. (object) Contains `includes` and/or `excludes` patterns that select which fields
  403. are included in the analysis.
  404. `includes`::::
  405. (Optional, array) An array of strings that defines the fields that are included
  406. in the analysis.
  407. `excludes`::::
  408. (Optional, array) An array of strings that defines the fields that are excluded
  409. from the analysis.
  410. `model_memory_limit`:::
  411. (string) The `model_memory_limit` that has been set to the {dfanalytics-job}.
  412. end::data-frame-analytics[]
  413. tag::data-frame-analytics-stats[]
  414. An array of statistics objects for {dfanalytics-jobs}, which are
  415. sorted by the `id` value in ascending order.
  416. `id`:::
  417. (string) The unique identifier of the {dfanalytics-job}.
  418. `state`:::
  419. (string) Current state of the {dfanalytics-job}.
  420. `progress`:::
  421. (array) The progress report of the {dfanalytics-job} by phase.
  422. `phase`::::
  423. (string) Defines the phase of the {dfanalytics-job}. Possible phases:
  424. `reindexing`, `loading_data`, `analyzing`, and `writing_results`.
  425. `progress_percent`::::
  426. (integer) The progress that the {dfanalytics-job} has made expressed in
  427. percentage.
  428. `memory_usage`:::
  429. (Optional, Object) An object describing memory usage of the analytics.
  430. It will be present only after the job has started and memory usage has
  431. been reported.
  432. `timestamp`::::
  433. (date) The timestamp when memory usage was calculated.
  434. `peak_usage_bytes`::::
  435. (long) The number of bytes used at the highest peak of memory usage.
  436. end::data-frame-analytics-stats[]
  437. tag::datafeed-id[]
  438. A numerical character string that uniquely identifies the
  439. {dfeed}. This identifier can contain lowercase alphanumeric characters (a-z
  440. and 0-9), hyphens, and underscores. It must start and end with alphanumeric
  441. characters.
  442. end::datafeed-id[]
  443. tag::datafeed-id-wildcard[]
  444. Identifier for the {dfeed}. It can be a {dfeed} identifier or a wildcard
  445. expression.
  446. end::datafeed-id-wildcard[]
  447. tag::dead-category-count[]
  448. The number of categories created by categorization that will never be assigned
  449. again because another category's definition makes it a superset of the dead
  450. category. (Dead categories are a side effect of the way categorization has no
  451. prior training.)
  452. end::dead-category-count[]
  453. tag::decompress-definition[]
  454. Specifies whether the included model definition should be returned as a JSON map (`true`) or
  455. in a custom compressed format (`false`). Defaults to `true`.
  456. end::decompress-definition[]
  457. tag::delayed-data-check-config[]
  458. Specifies whether the {dfeed} checks for missing data and the size of the
  459. window. For example: `{"enabled": true, "check_window": "1h"}`.
  460. +
  461. --
  462. The {dfeed} can optionally search over indices that have already been read in
  463. an effort to determine whether any data has subsequently been added to the index.
  464. If missing data is found, it is a good indication that the `query_delay` option
  465. is set too low and the data is being indexed after the {dfeed} has passed that
  466. moment in time. See
  467. {ml-docs}/ml-delayed-data-detection.html[Working with delayed data].
  468. This check runs only on real-time {dfeeds}.
  469. `delayed_data_check_config`.`enabled`::
  470. (boolean) Specifies whether the {dfeed} periodically checks for delayed data.
  471. Defaults to `true`.
  472. `delayed_data_check_config`.`check_window`::
  473. (<<time-units,time units>>) The window of time that is searched for late data.
  474. This window of time ends with the latest finalized bucket. It defaults to
  475. `null`, which causes an appropriate `check_window` to be calculated when the
  476. real-time {dfeed} runs. In particular, the default `check_window` span
  477. calculation is based on the maximum of `2h` or `8 * bucket_span`.
  478. --
  479. end::delayed-data-check-config[]
  480. tag::dependent-variable[]
  481. Defines which field of the document is to be predicted.
  482. This parameter is supplied by field name and must match one of the fields in
  483. the index being used to train. If this field is missing from a document, then
  484. that document will not be used for training, but a prediction with the trained
  485. model will be generated for it. It is also known as continuous target variable.
  486. end::dependent-variable[]
  487. tag::desc-results[]
  488. If true, the results are sorted in descending order.
  489. end::desc-results[]
  490. tag::description-dfa[]
  491. A description of the job.
  492. end::description-dfa[]
  493. tag::dest[]
  494. The destination configuration, consisting of `index` and
  495. optionally `results_field` (`ml` by default).
  496. `index`:::
  497. (Required, string) Defines the _destination index_ to store the results of
  498. the {dfanalytics-job}.
  499. `results_field`:::
  500. (Optional, string) Defines the name of the field in which to store the
  501. results of the analysis. Default to `ml`.
  502. end::dest[]
  503. tag::detector-description[]
  504. A description of the detector. For example, `Low event rate`.
  505. end::detector-description[]
  506. tag::detector-field-name[]
  507. The field that the detector uses in the function. If you use an event rate
  508. function such as `count` or `rare`, do not specify this field.
  509. +
  510. --
  511. NOTE: The `field_name` cannot contain double quotes or backslashes.
  512. --
  513. end::detector-field-name[]
  514. tag::detector-index[]
  515. A unique identifier for the detector. This identifier is based on the order of
  516. the detectors in the `analysis_config`, starting at zero.
  517. end::detector-index[]
  518. tag::earliest-record-timestamp[]
  519. The timestamp of the earliest chronologically input document.
  520. end::earliest-record-timestamp[]
  521. tag::empty-bucket-count[]
  522. The number of buckets which did not contain any data. If your data
  523. contains many empty buckets, consider increasing your `bucket_span` or using
  524. functions that are tolerant to gaps in data such as `mean`, `non_null_sum` or
  525. `non_zero_count`.
  526. end::empty-bucket-count[]
  527. tag::eta[]
  528. Advanced configuration option. The shrinkage applied to the weights. Smaller
  529. values result in larger forests which have better generalization error. However,
  530. the smaller the value the longer the training will take. For more information
  531. about shrinkage, see
  532. https://en.wikipedia.org/wiki/Gradient_boosting#Shrinkage[this wiki article].
  533. end::eta[]
  534. tag::exclude-frequent[]
  535. Contains one of the following values: `all`, `none`, `by`, or `over`. If set,
  536. frequent entities are excluded from influencing the anomaly results. Entities
  537. can be considered frequent over time or frequent in a population. If you are
  538. working with both over and by fields, then you can set `exclude_frequent` to
  539. `all` for both fields, or to `by` or `over` for those specific fields.
  540. end::exclude-frequent[]
  541. tag::exclude-interim-results[]
  542. If `true`, the output excludes interim results. By default, interim results are
  543. included.
  544. end::exclude-interim-results[]
  545. tag::feature-bag-fraction[]
  546. Advanced configuration option. Defines the fraction of features that will be
  547. used when selecting a random bag for each candidate split.
  548. end::feature-bag-fraction[]
  549. tag::feature-influence-threshold[]
  550. The minimum {olscore} that a document needs to have in order to calculate its
  551. {fiscore}. Value range: 0-1 (`0.1` by default).
  552. end::feature-influence-threshold[]
  553. tag::field-selection[]
  554. An array of objects that explain selection for each field, sorted by
  555. the field names. Each object in the array has the following properties:
  556. `name`:::
  557. (string) The field name.
  558. `mapping_types`:::
  559. (string) The mapping types of the field.
  560. `is_included`:::
  561. (boolean) Whether the field is selected to be included in the analysis.
  562. `is_required`:::
  563. (boolean) Whether the field is required.
  564. `feature_type`:::
  565. (string) The feature type of this field for the analysis. May be `categorical`
  566. or `numerical`.
  567. `reason`:::
  568. (string) The reason a field is not selected to be included in the analysis.
  569. end::field-selection[]
  570. tag::filter[]
  571. One or more <<analysis-tokenfilters,token filters>>. In addition to the built-in
  572. token filters, other plugins can provide more token filters. This property is
  573. optional. If it is not specified, no token filters are applied prior to
  574. categorization.
  575. end::filter[]
  576. tag::filter-id[]
  577. A string that uniquely identifies a filter.
  578. end::filter-id[]
  579. tag::forecast-total[]
  580. The number of individual forecasts currently available for the job. A value of
  581. `1` or more indicates that forecasts exist.
  582. end::forecast-total[]
  583. tag::frequency[]
  584. The interval at which scheduled queries are made while the {dfeed} runs in real
  585. time. The default value is either the bucket span for short bucket spans, or,
  586. for longer bucket spans, a sensible fraction of the bucket span. For example:
  587. `150s`. When `frequency` is shorter than the bucket span, interim results for
  588. the last (partial) bucket are written then eventually overwritten by the full
  589. bucket results. If the {dfeed} uses aggregations, this value must be divisible
  590. by the interval of the date histogram aggregation.
  591. end::frequency[]
  592. tag::frequent-category-count[]
  593. The number of categories that match more than 1% of categorized documents.
  594. end::frequent-category-count[]
  595. tag::from[]
  596. Skips the specified number of {dfanalytics-jobs}. The default value is `0`.
  597. end::from[]
  598. tag::function[]
  599. The analysis function that is used. For example, `count`, `rare`, `mean`, `min`,
  600. `max`, and `sum`. For more information, see
  601. {ml-docs}/ml-functions.html[Function reference].
  602. end::function[]
  603. tag::gamma[]
  604. Advanced configuration option. Regularization parameter to prevent overfitting
  605. on the training dataset. Multiplies a linear penalty associated with the size of
  606. individual trees in the forest. The higher the value the more training will
  607. prefer smaller trees. The smaller this parameter the larger individual trees
  608. will be and the longer train will take.
  609. end::gamma[]
  610. tag::groups[]
  611. A list of job groups. A job can belong to no groups or many.
  612. end::groups[]
  613. tag::include-model-definition[]
  614. Specifies if the model definition should be returned in the response. Defaults
  615. to `false`. When `true`, only a single model must match the ID patterns
  616. provided, otherwise a bad request is returned.
  617. end::include-model-definition[]
  618. tag::indices[]
  619. An array of index names. Wildcards are supported. For example:
  620. `["it_ops_metrics", "server*"]`.
  621. +
  622. --
  623. NOTE: If any indices are in remote clusters then `cluster.remote.connect` must
  624. not be set to `false` on any {ml} nodes.
  625. --
  626. end::indices[]
  627. tag::indices-options[]
  628. Object specifying index expansion options used during search.
  629. For example:
  630. ```
  631. {
  632. "expand_wildcards": ["all"],
  633. "ignore_unavailable": true,
  634. "allow_no_indices": "false",
  635. "ignore_throttled": true
  636. }
  637. ```
  638. end::indices-options[]
  639. tag::influencers[]
  640. A comma separated list of influencer field names. Typically these can be the by,
  641. over, or partition fields that are used in the detector configuration. You might
  642. also want to use a field name that is not specifically named in a detector, but
  643. is available as part of the input data. When you use multiple detectors, the use
  644. of influencers is recommended as it aggregates results for each influencer entity.
  645. end::influencers[]
  646. tag::input-bytes[]
  647. The number of bytes of input data posted to the {anomaly-job}.
  648. end::input-bytes[]
  649. tag::input-field-count[]
  650. The total number of fields in input documents posted to the {anomaly-job}. This
  651. count includes fields that are not used in the analysis. However, be aware that
  652. if you are using a {dfeed}, it extracts only the required fields from the
  653. documents it retrieves before posting them to the job.
  654. end::input-field-count[]
  655. tag::input-record-count[]
  656. The number of input documents posted to the {anomaly-job}.
  657. end::input-record-count[]
  658. tag::invalid-date-count[]
  659. The number of input documents with either a missing date field or a date that
  660. could not be parsed.
  661. end::invalid-date-count[]
  662. tag::is-interim[]
  663. If `true`, this is an interim result. In other words, the results are calculated
  664. based on partial input data.
  665. end::is-interim[]
  666. tag::job-id-anomaly-detection[]
  667. Identifier for the {anomaly-job}.
  668. end::job-id-anomaly-detection[]
  669. tag::job-id-data-frame-analytics[]
  670. Identifier for the {dfanalytics-job}.
  671. end::job-id-data-frame-analytics[]
  672. tag::job-id-anomaly-detection-default[]
  673. Identifier for the {anomaly-job}. It can be a job identifier, a group name, or a
  674. wildcard expression. If you do not specify one of these options, the API returns
  675. information for all {anomaly-jobs}.
  676. end::job-id-anomaly-detection-default[]
  677. tag::job-id-data-frame-analytics-default[]
  678. Identifier for the {dfanalytics-job}. If you do not specify this option, the API
  679. returns information for the first hundred {dfanalytics-jobs}.
  680. end::job-id-data-frame-analytics-default[]
  681. tag::job-id-anomaly-detection-list[]
  682. An identifier for the {anomaly-jobs}. It can be a job
  683. identifier, a group name, or a comma-separated list of jobs or groups.
  684. end::job-id-anomaly-detection-list[]
  685. tag::job-id-anomaly-detection-wildcard[]
  686. Identifier for the {anomaly-job}. It can be a job identifier, a group name, or a
  687. wildcard expression.
  688. end::job-id-anomaly-detection-wildcard[]
  689. tag::job-id-anomaly-detection-wildcard-list[]
  690. Identifier for the {anomaly-job}. It can be a job identifier, a group name, a
  691. comma-separated list of jobs or groups, or a wildcard expression.
  692. end::job-id-anomaly-detection-wildcard-list[]
  693. tag::job-id-anomaly-detection-define[]
  694. Identifier for the {anomaly-job}. This identifier can contain lowercase
  695. alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start
  696. and end with alphanumeric characters.
  697. end::job-id-anomaly-detection-define[]
  698. tag::job-id-data-frame-analytics-define[]
  699. Identifier for the {dfanalytics-job}. This identifier can contain lowercase
  700. alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start
  701. and end with alphanumeric characters.
  702. end::job-id-data-frame-analytics-define[]
  703. tag::job-id-datafeed[]
  704. The unique identifier for the job to which the {dfeed} sends data.
  705. end::job-id-datafeed[]
  706. tag::lambda[]
  707. Advanced configuration option. Regularization parameter to prevent overfitting
  708. on the training dataset. Multiplies an L2 regularisation term which applies to
  709. leaf weights of the individual trees in the forest. The higher the value the
  710. more training will attempt to keep leaf weights small. This makes the prediction
  711. function smoother at the expense of potentially not being able to capture
  712. relevant relationships between the features and the {depvar}. The smaller this
  713. parameter the larger individual trees will be and the longer train will take.
  714. end::lambda[]
  715. tag::last-data-time[]
  716. The timestamp at which data was last analyzed, according to server time.
  717. end::last-data-time[]
  718. tag::latency[]
  719. The size of the window in which to expect data that is out of time order. The
  720. default value is 0 (no latency). If you specify a non-zero value, it must be
  721. greater than or equal to one second. For more information about time units, see
  722. <<time-units>>.
  723. +
  724. --
  725. NOTE: Latency is only applicable when you send data by using
  726. the <<ml-post-data,post data>> API.
  727. --
  728. end::latency[]
  729. tag::latest-empty-bucket-timestamp[]
  730. The timestamp of the last bucket that did not contain any data.
  731. end::latest-empty-bucket-timestamp[]
  732. tag::latest-record-timestamp[]
  733. The timestamp of the latest chronologically input document.
  734. end::latest-record-timestamp[]
  735. tag::latest-sparse-record-timestamp[]
  736. The timestamp of the last bucket that was considered sparse.
  737. end::latest-sparse-record-timestamp[]
  738. tag::max-empty-searches[]
  739. If a real-time {dfeed} has never seen any data (including during any initial
  740. training period) then it will automatically stop itself and close its associated
  741. job after this many real-time searches that return no documents. In other words,
  742. it will stop after `frequency` times `max_empty_searches` of real-time operation.
  743. If not set then a {dfeed} with no end time that sees no data will remain started
  744. until it is explicitly stopped. By default this setting is not set.
  745. end::max-empty-searches[]
  746. tag::maximum-number-trees[]
  747. Advanced configuration option. Defines the maximum number of trees the forest is
  748. allowed to contain. The maximum value is 2000.
  749. end::maximum-number-trees[]
  750. tag::memory-estimation[]
  751. An object containing the memory estimates. The object has the
  752. following properties:
  753. `expected_memory_without_disk`:::
  754. (string) Estimated memory usage under the assumption that the whole
  755. {dfanalytics} should happen in memory (i.e. without overflowing to disk).
  756. `expected_memory_with_disk`:::
  757. (string) Estimated memory usage under the assumption that overflowing to disk is
  758. allowed during {dfanalytics}. `expected_memory_with_disk` is usually smaller
  759. than `expected_memory_without_disk` as using disk allows to limit the main
  760. memory needed to perform {dfanalytics}.
  761. end::memory-estimation[]
  762. tag::method[]
  763. Sets the method that {oldetection} uses. If the method is not set {oldetection}
  764. uses an ensemble of different methods and normalises and combines their
  765. individual {olscores} to obtain the overall {olscore}. We recommend to use the
  766. ensemble method. Available methods are `lof`, `ldof`, `distance_kth_nn`,
  767. `distance_knn`.
  768. end::method[]
  769. tag::missing-field-count[]
  770. The number of input documents that are missing a field that the {anomaly-job} is
  771. configured to analyze. Input documents with missing fields are still processed
  772. because it is possible that not all fields are missing.
  773. +
  774. --
  775. NOTE: If you are using {dfeeds} or posting data to the job in JSON format, a
  776. high `missing_field_count` is often not an indication of data issues. It is not
  777. necessarily a cause for concern.
  778. --
  779. end::missing-field-count[]
  780. tag::mode[]
  781. There are three available modes:
  782. +
  783. --
  784. * `auto`: The chunk size is dynamically calculated. This is the default and
  785. recommended value.
  786. * `manual`: Chunking is applied according to the specified `time_span`.
  787. * `off`: No chunking is applied.
  788. --
  789. end::mode[]
  790. tag::model-bytes[]
  791. The number of bytes of memory used by the models. This is the maximum value
  792. since the last time the model was persisted. If the job is closed, this value
  793. indicates the latest size.
  794. end::model-bytes[]
  795. tag::model-bytes-exceeded[]
  796. The number of bytes over the high limit for memory usage at the last allocation
  797. failure.
  798. end::model-bytes-exceeded[]
  799. tag::model-id[]
  800. The unique identifier of the trained {infer} model.
  801. end::model-id[]
  802. tag::model-memory-limit[]
  803. The approximate maximum amount of memory resources that are required for
  804. analytical processing. Once this limit is approached, data pruning becomes
  805. more aggressive. Upon exceeding this limit, new entities are not modeled. The
  806. default value for jobs created in version 6.1 and later is `1024mb`.
  807. This value will need to be increased for jobs that are expected to analyze high
  808. cardinality fields, but the default is set to a relatively small size to ensure
  809. that high resource usage is a conscious decision. The default value for jobs
  810. created in versions earlier than 6.1 is `4096mb`.
  811. +
  812. --
  813. If you specify a number instead of a string, the units are assumed to be MiB.
  814. Specifying a string is recommended for clarity. If you specify a byte size unit
  815. of `b` or `kb` and the number does not equate to a discrete number of megabytes,
  816. it is rounded down to the closest MiB. The minimum valid value is 1 MiB. If you
  817. specify a value less than 1 MiB, an error occurs. For more information about
  818. supported byte size units, see <<byte-units>>.
  819. If your `elasticsearch.yml` file contains an `xpack.ml.max_model_memory_limit`
  820. setting, an error occurs when you try to create jobs that have
  821. `model_memory_limit` values greater than that setting. For more information,
  822. see <<ml-settings>>.
  823. --
  824. end::model-memory-limit[]
  825. tag::model-memory-limit-anomaly-jobs[]
  826. The upper limit for model memory usage, checked on increasing values.
  827. end::model-memory-limit-anomaly-jobs[]
  828. tag::model-memory-limit-dfa[]
  829. The approximate maximum amount of memory resources that are permitted for
  830. analytical processing. The default value for {dfanalytics-jobs} is `1gb`. If
  831. your `elasticsearch.yml` file contains an `xpack.ml.max_model_memory_limit`
  832. setting, an error occurs when you try to create {dfanalytics-jobs} that have
  833. `model_memory_limit` values greater than that setting. For more information, see
  834. <<ml-settings>>.
  835. end::model-memory-limit-dfa[]
  836. tag::model-memory-status[]
  837. The status of the mathematical models, which can have one of the following
  838. values:
  839. +
  840. --
  841. * `ok`: The models stayed below the configured value.
  842. * `soft_limit`: The models used more than 60% of the configured memory limit
  843. and older unused models will be pruned to free up space.
  844. * `hard_limit`: The models used more space than the configured memory limit.
  845. As a result, not all incoming data was processed.
  846. --
  847. end::model-memory-status[]
  848. tag::model-plot-config[]
  849. This advanced configuration option stores model information along with the
  850. results. It provides a more detailed view into {anomaly-detect}.
  851. +
  852. --
  853. WARNING: If you enable model plot it can add considerable overhead to the
  854. performance of the system; it is not feasible for jobs with many entities.
  855. Model plot provides a simplified and indicative view of the model and its
  856. bounds. It does not display complex features such as multivariate correlations
  857. or multimodal data. As such, anomalies may occasionally be reported which cannot
  858. be seen in the model plot.
  859. Model plot config can be configured when the job is created or updated later. It
  860. must be disabled if performance issues are experienced.
  861. --
  862. end::model-plot-config[]
  863. tag::model-plot-config-enabled[]
  864. If true, enables calculation and storage of the model bounds for each entity
  865. that is being analyzed. By default, this is not enabled.
  866. end::model-plot-config-enabled[]
  867. tag::model-plot-config-terms[]
  868. Limits data collection to this comma separated list of partition or by field
  869. values. If terms are not specified or it is an empty string, no filtering is
  870. applied. For example, "CPU,NetworkIn,DiskWrites". Wildcards are not supported.
  871. Only the specified `terms` can be viewed when using the Single Metric Viewer.
  872. end::model-plot-config-terms[]
  873. tag::model-snapshot-id[]
  874. A numerical character string that uniquely identifies the model snapshot. For
  875. example, `1575402236000 `.
  876. end::model-snapshot-id[]
  877. tag::model-snapshot-retention-days[]
  878. Advanced configuration option. The period of time (in days) that model snapshots are retained.
  879. Age is calculated relative to the timestamp of the newest model snapshot.
  880. The default value is `1`, which means snapshots that are one day (twenty-four hours)
  881. older than the newest snapshot are deleted.
  882. end::model-snapshot-retention-days[]
  883. tag::model-timestamp[]
  884. The timestamp of the last record when the model stats were gathered.
  885. end::model-timestamp[]
  886. tag::multivariate-by-fields[]
  887. This functionality is reserved for internal use. It is not supported for use in
  888. customer environments and is not subject to the support SLA of official GA
  889. features.
  890. +
  891. --
  892. If set to `true`, the analysis will automatically find correlations between
  893. metrics for a given `by` field value and report anomalies when those
  894. correlations cease to hold. For example, suppose CPU and memory usage on host A
  895. is usually highly correlated with the same metrics on host B. Perhaps this
  896. correlation occurs because they are running a load-balanced application.
  897. If you enable this property, then anomalies will be reported when, for example,
  898. CPU usage on host A is high and the value of CPU usage on host B is low. That
  899. is to say, you'll see an anomaly when the CPU of host A is unusual given
  900. the CPU of host B.
  901. NOTE: To use the `multivariate_by_fields` property, you must also specify
  902. `by_field_name` in your detector.
  903. --
  904. end::multivariate-by-fields[]
  905. tag::n-neighbors[]
  906. Defines the value for how many nearest neighbors each method of
  907. {oldetection} will use to calculate its {olscore}. When the value is not set,
  908. different values will be used for different ensemble members. This helps
  909. improve diversity in the ensemble. Therefore, only override this if you are
  910. confident that the value you choose is appropriate for the data set.
  911. end::n-neighbors[]
  912. tag::node-address[]
  913. The network address of the node.
  914. end::node-address[]
  915. tag::node-datafeeds[]
  916. For started {dfeeds} only, this information pertains to the node upon which the
  917. {dfeed} is started.
  918. end::node-datafeeds[]
  919. tag::node-ephemeral-id[]
  920. The ephemeral ID of the node.
  921. end::node-ephemeral-id[]
  922. tag::node-id[]
  923. The unique identifier of the node.
  924. end::node-id[]
  925. tag::node-jobs[]
  926. Contains properties for the node that runs the job. This information is
  927. available only for open jobs.
  928. end::node-jobs[]
  929. tag::num-top-classes[]
  930. Defines the number of categories for which the predicted
  931. probabilities are reported. It must be non-negative. If it is greater than the
  932. total number of categories (in the {version} version of the {stack}, it's two)
  933. to predict then we will report all category probabilities. Defaults to 2.
  934. end::num-top-classes[]
  935. tag::open-time[]
  936. For open jobs only, the elapsed time for which the job has been open.
  937. end::open-time[]
  938. tag::out-of-order-timestamp-count[]
  939. The number of input documents that are out of time sequence and outside
  940. of the latency window. This information is applicable only when you provide data
  941. to the {anomaly-job} by using the <<ml-post-data,post data API>>. These out of
  942. order documents are discarded, since jobs require time series data to be in
  943. ascending chronological order.
  944. end::out-of-order-timestamp-count[]
  945. tag::outlier-fraction[]
  946. Sets the proportion of the data set that is assumed to be outlying prior to
  947. {oldetection}. For example, 0.05 means it is assumed that 5% of values are real
  948. outliers and 95% are inliers.
  949. end::outlier-fraction[]
  950. tag::over-field-name[]
  951. The field used to split the data. In particular, this property is used for
  952. analyzing the splits with respect to the history of all splits. It is used for
  953. finding unusual values in the population of all splits. For more information,
  954. see {ml-docs}/ml-configuring-pop.html[Performing population analysis].
  955. end::over-field-name[]
  956. tag::partition-field-name[]
  957. The field used to segment the analysis. When you use this property, you have
  958. completely independent baselines for each value of this field.
  959. end::partition-field-name[]
  960. tag::prediction-field-name[]
  961. Defines the name of the prediction field in the results.
  962. Defaults to `<dependent_variable>_prediction`.
  963. end::prediction-field-name[]
  964. tag::processed-field-count[]
  965. The total number of fields in all the documents that have been processed by the
  966. {anomaly-job}. Only fields that are specified in the detector configuration
  967. object contribute to this count. The timestamp is not included in this count.
  968. end::processed-field-count[]
  969. tag::processed-record-count[]
  970. The number of input documents that have been processed by the {anomaly-job}.
  971. This value includes documents with missing fields, since they are nonetheless
  972. analyzed. If you use {dfeeds} and have aggregations in your search query, the
  973. `processed_record_count` is the number of aggregation results processed, not the
  974. number of {es} documents.
  975. end::processed-record-count[]
  976. tag::randomize-seed[]
  977. Defines the seed to the random generator that is used to pick which documents
  978. will be used for training. By default it is randomly generated. Set it to a
  979. specific value to ensure the same documents are used for training assuming other
  980. related parameters (for example, `source`, `analyzed_fields`, etc.) are the
  981. same.
  982. end::randomize-seed[]
  983. tag::query[]
  984. The {es} query domain-specific language (DSL). This value corresponds to the
  985. query object in an {es} search POST body. All the options that are supported by
  986. {es} can be used, as this object is passed verbatim to {es}. By default, this
  987. property has the following value: `{"match_all": {"boost": 1}}`.
  988. end::query[]
  989. tag::query-delay[]
  990. The number of seconds behind real time that data is queried. For example, if
  991. data from 10:04 a.m. might not be searchable in {es} until 10:06 a.m., set this
  992. property to 120 seconds. The default value is randomly selected between `60s`
  993. and `120s`. This randomness improves the query performance when there are
  994. multiple jobs running on the same node. For more information, see
  995. {ml-docs}/ml-delayed-data-detection.html[Handling delayed data].
  996. end::query-delay[]
  997. tag::rare-category-count[]
  998. The number of categories that match just one categorized document.
  999. end::rare-category-count[]
  1000. tag::renormalization-window-days[]
  1001. Advanced configuration option. The period over which adjustments to the score
  1002. are applied, as new data is seen. The default value is the longer of 30 days or
  1003. 100 `bucket_spans`.
  1004. end::renormalization-window-days[]
  1005. tag::results-index-name[]
  1006. A text string that affects the name of the {ml} results index. The default value
  1007. is `shared`, which generates an index named `.ml-anomalies-shared`.
  1008. end::results-index-name[]
  1009. tag::results-retention-days[]
  1010. Advanced configuration option. The period of time (in days) that results are retained.
  1011. Age is calculated relative to the timestamp of the latest bucket result.
  1012. If this property has a non-null value, once per day at 00:30 (server time),
  1013. results that are the specified number of days older than the latest
  1014. bucket result are deleted from {es}. The default value is null, which means all
  1015. results are retained.
  1016. end::results-retention-days[]
  1017. tag::retain[]
  1018. If `true`, this snapshot will not be deleted during automatic cleanup of
  1019. snapshots older than `model_snapshot_retention_days`. However, this snapshot
  1020. will be deleted when the job is deleted. The default value is `false`.
  1021. end::retain[]
  1022. tag::script-fields[]
  1023. Specifies scripts that evaluate custom expressions and returns script fields to
  1024. the {dfeed}. The detector configuration objects in a job can contain functions
  1025. that use these script fields. For more information, see
  1026. {ml-docs}/ml-configuring-transform.html[Transforming data with script fields]
  1027. and <<request-body-search-script-fields,Script fields>>.
  1028. end::script-fields[]
  1029. tag::scroll-size[]
  1030. The `size` parameter that is used in {es} searches. The default value is `1000`.
  1031. end::scroll-size[]
  1032. tag::search-bucket-avg[]
  1033. The average search time per bucket, in milliseconds.
  1034. end::search-bucket-avg[]
  1035. tag::search-count[]
  1036. The number of searches run by the {dfeed}.
  1037. end::search-count[]
  1038. tag::search-exp-avg-hour[]
  1039. The exponential average search time per hour, in milliseconds.
  1040. end::search-exp-avg-hour[]
  1041. tag::search-time[]
  1042. The total time the {dfeed} spent searching, in milliseconds.
  1043. end::search-time[]
  1044. tag::size[]
  1045. Specifies the maximum number of {dfanalytics-jobs} to obtain. The default value
  1046. is `100`.
  1047. end::size[]
  1048. tag::snapshot-id[]
  1049. Identifier for the model snapshot.
  1050. end::snapshot-id[]
  1051. tag::source-put-dfa[]
  1052. The configuration of how to source the analysis data. It requires an
  1053. `index`. Optionally, `query` and `_source` may be specified.
  1054. `index`:::
  1055. (Required, string or array) Index or indices on which to perform the
  1056. analysis. It can be a single index or index pattern as well as an array of
  1057. indices or patterns.
  1058. `query`:::
  1059. (Optional, object) The {es} query domain-specific language
  1060. (<<query-dsl,DSL>>). This value corresponds to the query object in an {es}
  1061. search POST body. All the options that are supported by {es} can be used,
  1062. as this object is passed verbatim to {es}. By default, this property has
  1063. the following value: `{"match_all": {}}`.
  1064. `_source`:::
  1065. (Optional, object) Specify `includes` and/or `excludes` patterns to select
  1066. which fields will be present in the destination. Fields that are excluded
  1067. cannot be included in the analysis.
  1068. `includes`::::
  1069. (array) An array of strings that defines the fields that will be
  1070. included in the destination.
  1071. `excludes`::::
  1072. (array) An array of strings that defines the fields that will be
  1073. excluded from the destination.
  1074. end::source-put-dfa[]
  1075. tag::sparse-bucket-count[]
  1076. The number of buckets that contained few data points compared to the expected
  1077. number of data points. If your data contains many sparse buckets, consider using
  1078. a longer `bucket_span`.
  1079. end::sparse-bucket-count[]
  1080. tag::standardization-enabled[]
  1081. If `true`, then the following operation is performed on the columns before
  1082. computing outlier scores: (x_i - mean(x_i)) / sd(x_i). Defaults to `true`. For
  1083. more information, see
  1084. https://en.wikipedia.org/wiki/Feature_scaling#Standardization_(Z-score_Normalization)[this wiki page about standardization].
  1085. end::standardization-enabled[]
  1086. tag::state-anomaly-job[]
  1087. The status of the {anomaly-job}, which can be one of the following values:
  1088. +
  1089. --
  1090. * `closed`: The job finished successfully with its model state persisted. The
  1091. job must be opened before it can accept further data.
  1092. * `closing`: The job close action is in progress and has not yet completed. A
  1093. closing job cannot accept further data.
  1094. * `failed`: The job did not finish successfully due to an error. This situation
  1095. can occur due to invalid input data, a fatal error occurring during the analysis,
  1096. or an external interaction such as the process being killed by the Linux out of
  1097. memory (OOM) killer. If the job had irrevocably failed, it must be force closed
  1098. and then deleted. If the {dfeed} can be corrected, the job can be closed and
  1099. then re-opened.
  1100. * `opened`: The job is available to receive and process data.
  1101. * `opening`: The job open action is in progress and has not yet completed.
  1102. --
  1103. end::state-anomaly-job[]
  1104. tag::state-datafeed[]
  1105. The status of the {dfeed}, which can be one of the following values:
  1106. +
  1107. --
  1108. * `started`: The {dfeed} is actively receiving data.
  1109. * `stopped`: The {dfeed} is stopped and will not receive data until it is
  1110. re-started.
  1111. --
  1112. end::state-datafeed[]
  1113. tag::summary-count-field-name[]
  1114. If this property is specified, the data that is fed to the job is expected to be
  1115. pre-summarized. This property value is the name of the field that contains the
  1116. count of raw data points that have been summarized. The same
  1117. `summary_count_field_name` applies to all detectors in the job.
  1118. +
  1119. --
  1120. NOTE: The `summary_count_field_name` property cannot be used with the `metric`
  1121. function.
  1122. --
  1123. end::summary-count-field-name[]
  1124. tag::tags[]
  1125. A comma delimited string of tags. A {infer} model can have many tags, or none.
  1126. When supplied, only {infer} models that contain all the supplied tags are
  1127. returned.
  1128. end::tags[]
  1129. tag::timeout-start[]
  1130. Controls the amount of time to wait until the {dfanalytics-job} starts. Defaults
  1131. to 20 seconds.
  1132. end::timeout-start[]
  1133. tag::timeout-stop[]
  1134. Controls the amount of time to wait until the {dfanalytics-job} stops. Defaults
  1135. to 20 seconds.
  1136. end::timeout-stop[]
  1137. tag::time-format[]
  1138. The time format, which can be `epoch`, `epoch_ms`, or a custom pattern. The
  1139. default value is `epoch`, which refers to UNIX or Epoch time (the number of
  1140. seconds since 1 Jan 1970). The value `epoch_ms` indicates that time is measured
  1141. in milliseconds since the epoch. The `epoch` and `epoch_ms` time formats accept
  1142. either integer or real values. +
  1143. +
  1144. --
  1145. NOTE: Custom patterns must conform to the Java `DateTimeFormatter` class.
  1146. When you use date-time formatting patterns, it is recommended that you provide
  1147. the full date, time and time zone. For example: `yyyy-MM-dd'T'HH:mm:ssX`.
  1148. If the pattern that you specify is not sufficient to produce a complete
  1149. timestamp, job creation fails.
  1150. --
  1151. end::time-format[]
  1152. tag::time-span[]
  1153. The time span that each search will be querying. This setting is only applicable
  1154. when the mode is set to `manual`. For example: `3h`.
  1155. end::time-span[]
  1156. tag::timestamp-results[]
  1157. The start time of the bucket for which these results were calculated.
  1158. end::timestamp-results[]
  1159. tag::tokenizer[]
  1160. The name or definition of the <<analysis-tokenizers,tokenizer>> to use after
  1161. character filters are applied. This property is compulsory if
  1162. `categorization_analyzer` is specified as an object. Machine learning provides a
  1163. tokenizer called `ml_classic` that tokenizes in the same way as the
  1164. non-customizable tokenizer in older versions of the product. If you want to use
  1165. that tokenizer but change the character or token filters, specify
  1166. `"tokenizer": "ml_classic"` in your `categorization_analyzer`.
  1167. end::tokenizer[]
  1168. tag::total-by-field-count[]
  1169. The number of `by` field values that were analyzed by the models. This value is
  1170. cumulative for all detectors in the job.
  1171. end::total-by-field-count[]
  1172. tag::total-category-count[]
  1173. The number of categories created by categorization.
  1174. end::total-category-count[]
  1175. tag::total-over-field-count[]
  1176. The number of `over` field values that were analyzed by the models. This value
  1177. is cumulative for all detectors in the job.
  1178. end::total-over-field-count[]
  1179. tag::total-partition-field-count[]
  1180. The number of `partition` field values that were analyzed by the models. This
  1181. value is cumulative for all detectors in the job.
  1182. end::total-partition-field-count[]
  1183. tag::training-percent[]
  1184. Defines what percentage of the eligible documents that will
  1185. be used for training. Documents that are ignored by the analysis (for example
  1186. those that contain arrays with more than one value) won’t be included in the
  1187. calculation for used percentage. Defaults to `100`.
  1188. end::training-percent[]
  1189. tag::use-null[]
  1190. Defines whether a new series is used as the null series when there is no value
  1191. for the by or partition fields. The default value is `false`.
  1192. end::use-null[]