ml-shared.asciidoc 65 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630
  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-no-datafeeds[]
  19. Specifies what to do when the request:
  20. +
  21. --
  22. * Contains wildcard expressions and there are no {dfeeds} that match.
  23. * Contains the `_all` string or no identifiers and there are no matches.
  24. * Contains wildcard expressions and there are only partial matches.
  25. The default value is `true`, which returns an empty `datafeeds` array when
  26. there are no matches and the subset of results when there are partial matches.
  27. If this parameter is `false`, the request returns a `404` status code when there
  28. are no matches or only partial matches.
  29. --
  30. end::allow-no-datafeeds[]
  31. tag::allow-no-jobs[]
  32. Specifies what to do when the request:
  33. +
  34. --
  35. * Contains wildcard expressions and there are no jobs that match.
  36. * Contains the `_all` string or no identifiers and there are no matches.
  37. * Contains wildcard expressions and there are only partial matches.
  38. The default value is `true`, which returns an empty `jobs` array
  39. when there are no matches and the subset of results when there are partial
  40. matches. If this parameter is `false`, the request returns a `404` status code
  41. when there are no matches or only partial matches.
  42. --
  43. end::allow-no-jobs[]
  44. tag::allow-no-match[]
  45. Specifies what to do when the request:
  46. +
  47. --
  48. * Contains wildcard expressions and there are no {dfanalytics-jobs} that match.
  49. * Contains the `_all` string or no identifiers and there are no matches.
  50. * Contains wildcard expressions and there are only partial matches.
  51. The default value is `true`, which returns an empty `data_frame_analytics` array
  52. when there are no matches and the subset of results when there are partial
  53. matches. If this parameter is `false`, the request returns a `404` status code
  54. when there are no matches or only partial matches.
  55. --
  56. end::allow-no-match[]
  57. tag::allow-no-match-models[]
  58. Specifies what to do when the request:
  59. +
  60. --
  61. * Contains wildcard expressions and there are no models that match.
  62. * Contains the `_all` string or no identifiers and there are no matches.
  63. * Contains wildcard expressions and there are only partial matches.
  64. The default value is `true`, which returns an empty array when there are no
  65. matches and the subset of results when there are partial matches. If this
  66. parameter is `false`, the request returns a `404` status code when there are no
  67. matches or only partial matches.
  68. --
  69. end::allow-no-match-models[]
  70. tag::analysis[]
  71. Defines the type of {dfanalytics} you want to perform on your source index. For
  72. example: `outlier_detection`. See <<ml-dfa-analysis-objects>>.
  73. end::analysis[]
  74. tag::analysis-config[]
  75. The analysis configuration, which specifies how to analyze the data. After you
  76. create a job, you cannot change the analysis configuration; all the properties
  77. are informational.
  78. end::analysis-config[]
  79. tag::analysis-limits[]
  80. Limits can be applied for the resources required to hold the mathematical models
  81. in memory. These limits are approximate and can be set per job. They do not
  82. control the memory used by other processes, for example the {es} Java processes.
  83. end::analysis-limits[]
  84. tag::assignment-explanation-anomaly-jobs[]
  85. For open {anomaly-jobs} only, contains messages relating to the selection
  86. of a node to run the job.
  87. end::assignment-explanation-anomaly-jobs[]
  88. tag::assignment-explanation-datafeeds[]
  89. For started {dfeeds} only, contains messages relating to the selection of a
  90. node.
  91. end::assignment-explanation-datafeeds[]
  92. tag::assignment-explanation-dfanalytics[]
  93. Contains messages relating to the selection of a node.
  94. end::assignment-explanation-dfanalytics[]
  95. tag::assignment-memory-basis[]
  96. Where should the memory requirement used for deciding which node the job
  97. will run on come from? The possible values are:
  98. +
  99. --
  100. * `model_memory_limit`: The job's memory requirement will be calculated on
  101. the basis that its model memory will grow to the `model_memory_limit`
  102. specified in the `analysis_limits` of its config.
  103. * `current_model_bytes`: The job's memory requirement will be calculated on
  104. the basis that its current model memory size is a good reflection of what
  105. it will be in the future.
  106. * `peak_model_bytes`: The job's memory requirement will be calculated on
  107. the basis that its peak model memory size is a good reflection of what
  108. the model size will be in the future.
  109. --
  110. end::assignment-memory-basis[]
  111. tag::background-persist-interval[]
  112. Advanced configuration option. The time between each periodic persistence of the
  113. model. The default value is a randomized value between 3 to 4 hours, which
  114. avoids all jobs persisting at exactly the same time. The smallest allowed value
  115. is 1 hour.
  116. +
  117. --
  118. TIP: For very large models (several GB), persistence could take 10-20 minutes,
  119. so do not set the `background_persist_interval` value too low.
  120. --
  121. end::background-persist-interval[]
  122. tag::bucket-allocation-failures-count[]
  123. The number of buckets for which new entities in incoming data were not processed
  124. due to insufficient model memory. This situation is also signified by a
  125. `hard_limit: memory_status` property value.
  126. end::bucket-allocation-failures-count[]
  127. tag::bucket-count[]
  128. The number of buckets processed.
  129. end::bucket-count[]
  130. tag::bucket-count-anomaly-jobs[]
  131. The number of bucket results produced by the job.
  132. end::bucket-count-anomaly-jobs[]
  133. tag::bucket-span[]
  134. The size of the interval that the analysis is aggregated into, typically between
  135. `5m` and `1h`. The default value is `5m`. If the {anomaly-job} uses a {dfeed}
  136. with {ml-docs}/ml-configuring-aggregation.html[aggregations], this value must be
  137. divisible by the interval of the date histogram aggregation. For more
  138. information, see {ml-docs}/ml-buckets.html[Buckets].
  139. end::bucket-span[]
  140. tag::bucket-span-results[]
  141. The length of the bucket in seconds. This value matches the `bucket_span`
  142. that is specified in the job.
  143. end::bucket-span-results[]
  144. tag::bucket-time-exponential-average[]
  145. Exponential moving average of all bucket processing times, in milliseconds.
  146. end::bucket-time-exponential-average[]
  147. tag::bucket-time-exponential-average-hour[]
  148. Exponentially-weighted moving average of bucket processing times
  149. calculated in a 1 hour time window, in milliseconds.
  150. end::bucket-time-exponential-average-hour[]
  151. tag::bucket-time-maximum[]
  152. Maximum among all bucket processing times, in milliseconds.
  153. end::bucket-time-maximum[]
  154. tag::bucket-time-minimum[]
  155. Minimum among all bucket processing times, in milliseconds.
  156. end::bucket-time-minimum[]
  157. tag::bucket-time-total[]
  158. Sum of all bucket processing times, in milliseconds.
  159. end::bucket-time-total[]
  160. tag::by-field-name[]
  161. The field used to split the data. In particular, this property is used for
  162. analyzing the splits with respect to their own history. It is used for finding
  163. unusual values in the context of the split.
  164. end::by-field-name[]
  165. tag::calendar-id[]
  166. A string that uniquely identifies a calendar.
  167. end::calendar-id[]
  168. tag::categorization-analyzer[]
  169. If `categorization_field_name` is specified, you can also define the analyzer
  170. that is used to interpret the categorization field. This property cannot be used
  171. at the same time as `categorization_filters`. The categorization analyzer
  172. specifies how the `categorization_field` is interpreted by the categorization
  173. process. The syntax is very similar to that used to define the `analyzer` in the
  174. <<indices-analyze,Analyze endpoint>>. For more information, see
  175. {ml-docs}/ml-configuring-categories.html[Categorizing log messages].
  176. +
  177. The `categorization_analyzer` field can be specified either as a string or as an
  178. object. If it is a string it must refer to a
  179. <<analysis-analyzers,built-in analyzer>> or one added by another plugin. If it
  180. is an object it has the following properties:
  181. +
  182. .Properties of `categorization_analyzer`
  183. [%collapsible%open]
  184. =====
  185. `char_filter`::::
  186. (array of strings or objects)
  187. include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=char-filter]
  188. `tokenizer`::::
  189. (string or object)
  190. include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=tokenizer]
  191. `filter`::::
  192. (array of strings or objects)
  193. include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=filter]
  194. =====
  195. end::categorization-analyzer[]
  196. tag::categorization-examples-limit[]
  197. The maximum number of examples stored per category in memory and in the results
  198. data store. The default value is 4. If you increase this value, more examples
  199. are available, however it requires that you have more storage available. If you
  200. set this value to `0`, no examples are stored.
  201. +
  202. NOTE: The `categorization_examples_limit` only applies to analysis that uses
  203. categorization. For more information, see
  204. {ml-docs}/ml-configuring-categories.html[Categorizing log messages].
  205. end::categorization-examples-limit[]
  206. tag::categorization-field-name[]
  207. If this property is specified, the values of the specified field will be
  208. categorized. The resulting categories must be used in a detector by setting
  209. `by_field_name`, `over_field_name`, or `partition_field_name` to the keyword
  210. `mlcategory`. For more information, see
  211. {ml-docs}/ml-configuring-categories.html[Categorizing log messages].
  212. end::categorization-field-name[]
  213. tag::categorization-filters[]
  214. If `categorization_field_name` is specified, you can also define optional
  215. filters. This property expects an array of regular expressions. The expressions
  216. are used to filter out matching sequences from the categorization field values.
  217. You can use this functionality to fine tune the categorization by excluding
  218. sequences from consideration when categories are defined. For example, you can
  219. exclude SQL statements that appear in your log files. For more information, see
  220. {ml-docs}/ml-configuring-categories.html[Categorizing log messages]. This
  221. property cannot be used at the same time as `categorization_analyzer`. If you
  222. only want to define simple regular expression filters that are applied prior to
  223. tokenization, setting this property is the easiest method. If you also want to
  224. customize the tokenizer or post-tokenization filtering, use the
  225. `categorization_analyzer` property instead and include the filters as
  226. `pattern_replace` character filters. The effect is exactly the same.
  227. end::categorization-filters[]
  228. tag::categorization-status[]
  229. The status of categorization for the job. Contains one of the following values:
  230. +
  231. --
  232. * `ok`: Categorization is performing acceptably well (or not being used at all).
  233. * `warn`: Categorization is detecting a distribution of categories that suggests
  234. the input data is inappropriate for categorization. Problems could be that there
  235. is only one category, more than 90% of categories are rare, the number of
  236. categories is greater than 50% of the number of categorized documents, there are
  237. no frequently matched categories, or more than 50% of categories are dead.
  238. --
  239. end::categorization-status[]
  240. tag::categorized-doc-count[]
  241. The number of documents that have had a field categorized.
  242. end::categorized-doc-count[]
  243. tag::char-filter[]
  244. One or more <<analysis-charfilters,character filters>>. In addition to the
  245. built-in character filters, other plugins can provide more character filters.
  246. This property is optional. If it is not specified, no character filters are
  247. applied prior to categorization. If you are customizing some other aspect of the
  248. analyzer and you need to achieve the equivalent of `categorization_filters`
  249. (which are not permitted when some other aspect of the analyzer is customized),
  250. add them here as
  251. <<analysis-pattern-replace-charfilter,pattern replace character filters>>.
  252. end::char-filter[]
  253. tag::chunking-config[]
  254. {dfeeds-cap} might be required to search over long time periods, for several
  255. months or years. This search is split into time chunks in order to ensure the
  256. load on {es} is managed. Chunking configuration controls how the size of these
  257. time chunks are calculated and is an advanced configuration option.
  258. +
  259. .Properties of `chunking_config`
  260. [%collapsible%open]
  261. ====
  262. `mode`:::
  263. (string)
  264. include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=mode]
  265. `time_span`:::
  266. (<<time-units,time units>>)
  267. include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=time-span]
  268. ====
  269. end::chunking-config[]
  270. tag::class-assignment-objective[]
  271. Defines the objective to optimize when assigning class labels:
  272. `maximize_accuracy` or `maximize_minimum_recall`. When maximizing accuracy,
  273. class labels are chosen to maximize the number of correct predictions. When
  274. maximizing minimum recall, labels are chosen to maximize the minimum recall for
  275. any class. Defaults to `maximize_minimum_recall`.
  276. end::class-assignment-objective[]
  277. tag::compute-feature-influence[]
  278. Specifies whether the feature influence calculation is enabled. Defaults to
  279. `true`.
  280. end::compute-feature-influence[]
  281. tag::custom-preprocessor[]
  282. (Optional, Boolean)
  283. Boolean value indicating if the analytics job created the preprocessor
  284. or if a user provided it. This adjusts the feature importance calculation.
  285. When `true`, the feature importance calculation returns importance for the
  286. processed feature. When `false`, the total importance of the original field
  287. is returned. Default is `false`.
  288. end::custom-preprocessor[]
  289. tag::custom-rules[]
  290. An array of custom rule objects, which enable you to customize the way detectors
  291. operate. For example, a rule may dictate to the detector conditions under which
  292. results should be skipped. {kib} refers to custom rules as _job rules_. For more
  293. 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
  328. properties:
  329. end::custom-rules-conditions[]
  330. tag::custom-rules-conditions-applies-to[]
  331. Specifies the result property to which the condition applies. The available
  332. options are `actual`, `typical`, `diff_from_typical`, `time`. If your detector
  333. uses `lat_long`, `metric`, `rare`, or `freq_rare` functions, you can only
  334. specify conditions that apply to `time`.
  335. end::custom-rules-conditions-applies-to[]
  336. tag::custom-rules-conditions-operator[]
  337. Specifies the condition operator. The available options are `gt` (greater than),
  338. `gte` (greater than or equals), `lt` (less than) and `lte` (less than or
  339. equals).
  340. end::custom-rules-conditions-operator[]
  341. tag::custom-rules-conditions-value[]
  342. The value that is compared against the `applies_to` field using the `operator`.
  343. end::custom-rules-conditions-value[]
  344. tag::custom-settings[]
  345. Advanced configuration option. Contains custom meta data about the job. For
  346. example, it can contain custom URL information as shown in
  347. {ml-docs}/ml-configuring-url.html[Adding custom URLs to {ml} results].
  348. end::custom-settings[]
  349. tag::daily-model-snapshot-retention-after-days[]
  350. Advanced configuration option, which affects the automatic removal of old model
  351. snapshots for this job. It specifies a period of time (in days) after which only
  352. the first snapshot per day is retained. This period is relative to the timestamp
  353. of the most recent snapshot for this job. Valid values range from `0` to
  354. `model_snapshot_retention_days`. For new jobs, the default value is `1`. For
  355. jobs created before version 7.8.0, the default value matches
  356. `model_snapshot_retention_days`. For more information, refer to
  357. {ml-docs}/ml-model-snapshots.html[Model snapshots].
  358. end::daily-model-snapshot-retention-after-days[]
  359. tag::data-description[]
  360. The data description defines the format of the input data when you send data to
  361. the job by using the <<ml-post-data,post data>> API. Note that when configure
  362. a {dfeed}, these properties are automatically set. When data is received via
  363. the <<ml-post-data,post data>> API, it is not stored in {es}. Only the results
  364. for {anomaly-detect} are retained.
  365. +
  366. .Properties of `data_description`
  367. [%collapsible%open]
  368. ====
  369. `format`:::
  370. (string) Only `JSON` format is supported at this time.
  371. `time_field`:::
  372. (string) The name of the field that contains the timestamp.
  373. The default value is `time`.
  374. `time_format`:::
  375. (string)
  376. include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=time-format]
  377. ====
  378. end::data-description[]
  379. tag::datafeed-id[]
  380. A numerical character string that uniquely identifies the
  381. {dfeed}. This identifier can contain lowercase alphanumeric characters (a-z
  382. and 0-9), hyphens, and underscores. It must start and end with alphanumeric
  383. characters.
  384. end::datafeed-id[]
  385. tag::datafeed-id-wildcard[]
  386. Identifier for the {dfeed}. It can be a {dfeed} identifier or a wildcard
  387. expression.
  388. end::datafeed-id-wildcard[]
  389. tag::dead-category-count[]
  390. The number of categories created by categorization that will never be assigned
  391. again because another category's definition makes it a superset of the dead
  392. category. (Dead categories are a side effect of the way categorization has no
  393. prior training.)
  394. end::dead-category-count[]
  395. tag::delayed-data-check-config[]
  396. Specifies whether the {dfeed} checks for missing data and the size of the
  397. window. For example: `{"enabled": true, "check_window": "1h"}`.
  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
  401. index. If missing data is found, it is a good indication that the `query_delay`
  402. option is set too low and the data is being indexed after the {dfeed} has passed
  403. that moment in time. See
  404. {ml-docs}/ml-delayed-data-detection.html[Working with delayed data].
  405. +
  406. This check runs only on real-time {dfeeds}.
  407. +
  408. .Properties of `delayed_data_check_config`
  409. [%collapsible%open]
  410. ====
  411. `check_window`::
  412. (<<time-units,time units>>) The window of time that is searched for late data.
  413. This window of time ends with the latest finalized bucket. It defaults to
  414. `null`, which causes an appropriate `check_window` to be calculated when the
  415. real-time {dfeed} runs. In particular, the default `check_window` span
  416. calculation is based on the maximum of `2h` or `8 * bucket_span`.
  417. `enabled`::
  418. (Boolean) Specifies whether the {dfeed} periodically checks for delayed data.
  419. Defaults to `true`.
  420. ====
  421. end::delayed-data-check-config[]
  422. tag::dependent-variable[]
  423. Defines which field of the document is to be predicted.
  424. This parameter is supplied by field name and must match one of the fields in
  425. the index being used to train. If this field is missing from a document, then
  426. that document will not be used for training, but a prediction with the trained
  427. model will be generated for it. It is also known as continuous target variable.
  428. end::dependent-variable[]
  429. tag::desc-results[]
  430. If true, the results are sorted in descending order.
  431. end::desc-results[]
  432. tag::description-dfa[]
  433. A description of the job.
  434. end::description-dfa[]
  435. tag::dest[]
  436. The destination configuration, consisting of `index` and optionally
  437. `results_field` (`ml` by default).
  438. +
  439. .Properties of `dest`
  440. [%collapsible%open]
  441. ====
  442. `index`:::
  443. (Required, string) Defines the _destination index_ to store the results of the
  444. {dfanalytics-job}.
  445. `results_field`:::
  446. (Optional, string) Defines the name of the field in which to store the results
  447. of the analysis. Defaults to `ml`.
  448. ====
  449. end::dest[]
  450. tag::detector-description[]
  451. A description of the detector. For example, `Low event rate`.
  452. end::detector-description[]
  453. tag::detector-field-name[]
  454. The field that the detector uses in the function. If you use an event rate
  455. function such as `count` or `rare`, do not specify this field.
  456. +
  457. --
  458. NOTE: The `field_name` cannot contain double quotes or backslashes.
  459. --
  460. end::detector-field-name[]
  461. tag::detector-index[]
  462. A unique identifier for the detector. This identifier is based on the order of
  463. the detectors in the `analysis_config`, starting at zero.
  464. end::detector-index[]
  465. tag::dfas-alpha[]
  466. Advanced configuration option. {ml-cap} uses loss guided tree growing, which
  467. means that the decision trees grow where the regularized loss decreases most
  468. quickly. This parameter affects loss calculations by acting as a multiplier of
  469. the tree depth. Higher alpha values result in shallower trees and faster
  470. training times. By default, this value is calculated during hyperparameter
  471. optimization. It must be greater than or equal to zero.
  472. end::dfas-alpha[]
  473. tag::dfas-downsample-factor[]
  474. Advanced configuration option. Controls the fraction of data that is used to
  475. compute the derivatives of the loss function for tree training. A small value
  476. results in the use of a small fraction of the data. If this value is set to be
  477. less than 1, accuracy typically improves. However, too small a value may result
  478. in poor convergence for the ensemble and so require more trees. For more
  479. information about shrinkage, refer to
  480. {wikipedia}/Gradient_boosting#Stochastic_gradient_boosting[this wiki article].
  481. By default, this value is calculated during hyperparameter optimization. It
  482. must be greater than zero and less than or equal to 1.
  483. end::dfas-downsample-factor[]
  484. tag::dfas-early-stopping-enabled[]
  485. Advanced configuration option.
  486. Specifies whether the training process should finish if it is not finding any
  487. better performing models. If disabled, the training process can take significantly
  488. longer and the chance of finding a better performing model is unremarkable.
  489. By default, early stoppping is enabled.
  490. end::dfas-early-stopping-enabled[]
  491. tag::dfas-eta-growth[]
  492. Advanced configuration option. Specifies the rate at which `eta` increases for
  493. each new tree that is added to the forest. For example, a rate of 1.05
  494. increases `eta` by 5% for each extra tree. By default, this value is calculated
  495. during hyperparameter optimization. It must be between 0.5 and 2.
  496. end::dfas-eta-growth[]
  497. tag::dfas-feature-bag-fraction[]
  498. The fraction of features that is used when selecting a random bag for each
  499. candidate split.
  500. end::dfas-feature-bag-fraction[]
  501. tag::dfas-feature-processors[]
  502. Advanced configuration option. A collection of feature preprocessors that modify
  503. one or more included fields. The analysis uses the resulting one or more
  504. features instead of the original document field. However, these features are
  505. ephemeral; they are not stored in the destination index. Multiple
  506. `feature_processors` entries can refer to the same document fields. Automatic
  507. categorical {ml-docs}/ml-feature-encoding.html[feature encoding] still occurs
  508. for the fields that are unprocessed by a custom processor or that have
  509. categorical values. Use this property only if you want to override the automatic
  510. feature encoding of the specified fields. Refer to
  511. {ml-docs}/ml-feature-processors.html[{dfanalytics} feature processors] to learn
  512. more.
  513. end::dfas-feature-processors[]
  514. tag::dfas-feature-processors-feat-name[]
  515. The resulting feature name.
  516. end::dfas-feature-processors-feat-name[]
  517. tag::dfas-feature-processors-field[]
  518. The name of the field to encode.
  519. end::dfas-feature-processors-field[]
  520. tag::dfas-feature-processors-frequency[]
  521. The configuration information necessary to perform frequency encoding.
  522. end::dfas-feature-processors-frequency[]
  523. tag::dfas-feature-processors-frequency-map[]
  524. The resulting frequency map for the field value. If the field value is missing
  525. from the `frequency_map`, the resulting value is `0`.
  526. end::dfas-feature-processors-frequency-map[]
  527. tag::dfas-feature-processors-multi[]
  528. The configuration information necessary to perform multi encoding. It allows
  529. multiple processors to be changed together. This way the output of a processor
  530. can then be passed to another as an input.
  531. end::dfas-feature-processors-multi[]
  532. tag::dfas-feature-processors-multi-proc[]
  533. The ordered array of custom processors to execute. Must be more than 1.
  534. end::dfas-feature-processors-multi-proc[]
  535. tag::dfas-feature-processors-ngram[]
  536. The configuration information necessary to perform n-gram encoding. Features
  537. created by this encoder have the following name format:
  538. `<feature_prefix>.<ngram><string position>`. For example, if the
  539. `feature_prefix` is `f`, the feature name for the second unigram in a string is
  540. `f.11`.
  541. end::dfas-feature-processors-ngram[]
  542. tag::dfas-feature-processors-ngram-feat-pref[]
  543. The feature name prefix. Defaults to `ngram_<start>_<length>`.
  544. end::dfas-feature-processors-ngram-feat-pref[]
  545. tag::dfas-feature-processors-ngram-field[]
  546. The name of the text field to encode.
  547. end::dfas-feature-processors-ngram-field[]
  548. tag::dfas-feature-processors-ngram-length[]
  549. Specifies the length of the n-gram substring. Defaults to `50`. Must be greater
  550. than `0`.
  551. end::dfas-feature-processors-ngram-length[]
  552. tag::dfas-feature-processors-ngram-ngrams[]
  553. Specifies which n-grams to gather. It’s an array of integer values where the
  554. minimum value is 1, and a maximum value is 5.
  555. end::dfas-feature-processors-ngram-ngrams[]
  556. tag::dfas-feature-processors-ngram-start[]
  557. Specifies the zero-indexed start of the n-gram substring. Negative values are
  558. allowed for encoding n-grams of string suffixes. Defaults to `0`.
  559. end::dfas-feature-processors-ngram-start[]
  560. tag::dfas-feature-processors-one-hot[]
  561. The configuration information necessary to perform one hot encoding.
  562. end::dfas-feature-processors-one-hot[]
  563. tag::dfas-feature-processors-one-hot-map[]
  564. The one hot map mapping the field value with the column name.
  565. end::dfas-feature-processors-one-hot-map[]
  566. tag::dfas-feature-processors-target-mean[]
  567. The configuration information necessary to perform target mean encoding.
  568. end::dfas-feature-processors-target-mean[]
  569. tag::dfas-feature-processors-target-mean-default[]
  570. The default value if field value is not found in the `target_map`.
  571. end::dfas-feature-processors-target-mean-default[]
  572. tag::dfas-feature-processors-target-mean-map[]
  573. The field value to target mean transition map.
  574. end::dfas-feature-processors-target-mean-map[]
  575. tag::dfas-iteration[]
  576. The number of iterations on the analysis.
  577. end::dfas-iteration[]
  578. tag::dfas-max-attempts[]
  579. If the algorithm fails to determine a non-trivial tree (more than a single
  580. leaf), this parameter determines how many of such consecutive failures are
  581. tolerated. Once the number of attempts exceeds the threshold, the forest
  582. training stops.
  583. end::dfas-max-attempts[]
  584. tag::dfas-max-optimization-rounds[]
  585. Advanced configuration option.
  586. A multiplier responsible for determining the maximum number of
  587. hyperparameter optimization steps in the Bayesian optimization procedure.
  588. The maximum number of steps is determined based on the number of undefined
  589. hyperparameters times the maximum optimization rounds per hyperparameter.
  590. By default, this value is calculated during hyperparameter optimization.
  591. end::dfas-max-optimization-rounds[]
  592. tag::dfas-num-folds[]
  593. The maximum number of folds for the cross-validation procedure.
  594. end::dfas-num-folds[]
  595. tag::dfas-num-splits[]
  596. Determines the maximum number of splits for every feature that can occur in a
  597. decision tree when the tree is trained.
  598. end::dfas-num-splits[]
  599. tag::dfas-soft-limit[]
  600. Advanced configuration option. {ml-cap} uses loss guided tree growing, which
  601. means that the decision trees grow where the regularized loss decreases most
  602. quickly. This soft limit combines with the `soft_tree_depth_tolerance` to
  603. penalize trees that exceed the specified depth; the regularized loss increases
  604. quickly beyond this depth. By default, this value is calculated during
  605. hyperparameter optimization. It must be greater than or equal to 0.
  606. end::dfas-soft-limit[]
  607. tag::dfas-soft-tolerance[]
  608. Advanced configuration option. This option controls how quickly the regularized
  609. loss increases when the tree depth exceeds `soft_tree_depth_limit`. By default,
  610. this value is calculated during hyperparameter optimization. It must be greater
  611. than or equal to 0.01.
  612. end::dfas-soft-tolerance[]
  613. tag::dfas-timestamp[]
  614. The timestamp when the statistics were reported in milliseconds since the epoch.
  615. end::dfas-timestamp[]
  616. tag::dfas-timing-stats[]
  617. An object containing time statistics about the {dfanalytics-job}.
  618. end::dfas-timing-stats[]
  619. tag::dfas-timing-stats-elapsed[]
  620. Runtime of the analysis in milliseconds.
  621. end::dfas-timing-stats-elapsed[]
  622. tag::dfas-timing-stats-iteration[]
  623. Runtime of the latest iteration of the analysis in milliseconds.
  624. end::dfas-timing-stats-iteration[]
  625. tag::dfas-validation-loss[]
  626. An object containing information about validation loss.
  627. end::dfas-validation-loss[]
  628. tag::dfas-validation-loss-fold[]
  629. Validation loss values for every added decision tree during the forest growing
  630. procedure.
  631. end::dfas-validation-loss-fold[]
  632. tag::dfas-validation-loss-type[]
  633. The type of the loss metric. For example, `binomial_logistic`.
  634. end::dfas-validation-loss-type[]
  635. tag::earliest-record-timestamp[]
  636. The timestamp of the earliest chronologically input document.
  637. end::earliest-record-timestamp[]
  638. tag::empty-bucket-count[]
  639. The number of buckets which did not contain any data. If your data
  640. contains many empty buckets, consider increasing your `bucket_span` or using
  641. functions that are tolerant to gaps in data such as `mean`, `non_null_sum` or
  642. `non_zero_count`.
  643. end::empty-bucket-count[]
  644. tag::eta[]
  645. Advanced configuration option. The shrinkage applied to the weights. Smaller
  646. values result in larger forests which have a better generalization error.
  647. However, larger forests cause slower training. For more information about
  648. shrinkage, refer to
  649. {wikipedia}/Gradient_boosting#Shrinkage[this wiki article].
  650. By default, this value is calculated during hyperparameter optimization. It must
  651. be a value between 0.001 and 1.
  652. end::eta[]
  653. tag::exclude-frequent[]
  654. Contains one of the following values: `all`, `none`, `by`, or `over`. If set,
  655. frequent entities are excluded from influencing the anomaly results. Entities
  656. can be considered frequent over time or frequent in a population. If you are
  657. working with both over and by fields, then you can set `exclude_frequent` to
  658. `all` for both fields, or to `by` or `over` for those specific fields.
  659. end::exclude-frequent[]
  660. tag::exclude-interim-results[]
  661. If `true`, the output excludes interim results. By default, interim results are
  662. included.
  663. end::exclude-interim-results[]
  664. tag::failed-category-count[]
  665. The number of times that categorization wanted to create a new category but
  666. couldn't because the job had hit its `model_memory_limit`. This count does not
  667. track which specific categories failed to be created. Therefore you cannot use
  668. this value to determine the number of unique categories that were missed.
  669. end::failed-category-count[]
  670. tag::feature-bag-fraction[]
  671. Advanced configuration option. Defines the fraction of features that will be
  672. used when selecting a random bag for each candidate split. By default, this
  673. value is calculated during hyperparameter optimization.
  674. end::feature-bag-fraction[]
  675. tag::feature-influence-threshold[]
  676. The minimum {olscore} that a document needs to have in order to calculate its
  677. {fiscore}. Value range: 0-1 (`0.1` by default).
  678. end::feature-influence-threshold[]
  679. tag::filter[]
  680. One or more <<analysis-tokenfilters,token filters>>. In addition to the built-in
  681. token filters, other plugins can provide more token filters. This property is
  682. optional. If it is not specified, no token filters are applied prior to
  683. categorization.
  684. end::filter[]
  685. tag::filter-id[]
  686. A string that uniquely identifies a filter.
  687. end::filter-id[]
  688. tag::forecast-total[]
  689. The number of individual forecasts currently available for the job. A value of
  690. `1` or more indicates that forecasts exist.
  691. end::forecast-total[]
  692. tag::exclude-generated[]
  693. Indicates if certain fields should be removed from the configuration on
  694. retrieval. This allows the configuration to be in an acceptable format to be retrieved
  695. and then added to another cluster. Default is false.
  696. end::exclude-generated[]
  697. tag::frequency[]
  698. The interval at which scheduled queries are made while the {dfeed} runs in real
  699. time. The default value is either the bucket span for short bucket spans, or,
  700. for longer bucket spans, a sensible fraction of the bucket span. For example:
  701. `150s`. When `frequency` is shorter than the bucket span, interim results for
  702. the last (partial) bucket are written then eventually overwritten by the full
  703. bucket results. If the {dfeed} uses aggregations, this value must be divisible
  704. by the interval of the date histogram aggregation.
  705. end::frequency[]
  706. tag::frequent-category-count[]
  707. The number of categories that match more than 1% of categorized documents.
  708. end::frequent-category-count[]
  709. tag::from[]
  710. Skips the specified number of {dfanalytics-jobs}. The default value is `0`.
  711. end::from[]
  712. tag::from-models[]
  713. Skips the specified number of models. The default value is `0`.
  714. end::from-models[]
  715. tag::function[]
  716. The analysis function that is used. For example, `count`, `rare`, `mean`, `min`,
  717. `max`, and `sum`. For more information, see
  718. {ml-docs}/ml-functions.html[Function reference].
  719. end::function[]
  720. tag::gamma[]
  721. Advanced configuration option. Regularization parameter to prevent overfitting
  722. on the training data set. Multiplies a linear penalty associated with the size
  723. of individual trees in the forest. A high gamma value causes training to prefer
  724. small trees. A small gamma value results in larger individual trees and slower
  725. training. By default, this value is calculated during hyperparameter
  726. optimization. It must be a nonnegative value.
  727. end::gamma[]
  728. tag::groups[]
  729. A list of job groups. A job can belong to no groups or many.
  730. end::groups[]
  731. tag::indices[]
  732. An array of index names. Wildcards are supported. For example:
  733. `["it_ops_metrics", "server*"]`.
  734. +
  735. --
  736. NOTE: If any indices are in remote clusters then the {ml} nodes need to have the
  737. `remote_cluster_client` role.
  738. --
  739. end::indices[]
  740. tag::indices-options[]
  741. Specifies index expansion options that are used during search.
  742. +
  743. --
  744. For example:
  745. ```
  746. {
  747. "expand_wildcards": ["all"],
  748. "ignore_unavailable": true,
  749. "allow_no_indices": "false",
  750. "ignore_throttled": true
  751. }
  752. ```
  753. For more information about these options, see <<multi-index>>.
  754. --
  755. end::indices-options[]
  756. tag::runtime-mappings[]
  757. Specifies runtime fields for the datafeed search.
  758. +
  759. --
  760. For example:
  761. ```
  762. {
  763. "day_of_week": {
  764. "type": "keyword",
  765. "script": {
  766. "source": "emit(doc['@timestamp'].value.dayOfWeekEnum.getDisplayName(TextStyle.FULL, Locale.ROOT))"
  767. }
  768. }
  769. }
  770. ```
  771. --
  772. end::runtime-mappings[]
  773. tag::inference-config-classification-num-top-classes[]
  774. Specifies the number of top class predictions to return. Defaults to 0.
  775. end::inference-config-classification-num-top-classes[]
  776. tag::inference-config-classification-num-top-feature-importance-values[]
  777. Specifies the maximum number of
  778. {ml-docs}/ml-feature-importance.html[{feat-imp}] values per document. By
  779. default, it is zero and no {feat-imp} calculation occurs.
  780. end::inference-config-classification-num-top-feature-importance-values[]
  781. tag::inference-config-classification-top-classes-results-field[]
  782. Specifies the field to which the top classes are written. Defaults to
  783. `top_classes`.
  784. end::inference-config-classification-top-classes-results-field[]
  785. tag::inference-config-classification-prediction-field-type[]
  786. Specifies the type of the predicted field to write.
  787. Acceptable values are: `string`, `number`, `boolean`. When `boolean` is provided
  788. `1.0` is transformed to `true` and `0.0` to `false`.
  789. end::inference-config-classification-prediction-field-type[]
  790. tag::inference-config-regression-num-top-feature-importance-values[]
  791. Specifies the maximum number of
  792. {ml-docs}/ml-feature-importance.html[{feat-imp}] values per document.
  793. By default, it is zero and no {feat-imp} calculation occurs.
  794. end::inference-config-regression-num-top-feature-importance-values[]
  795. tag::inference-config-results-field[]
  796. The field that is added to incoming documents to contain the inference
  797. prediction. Defaults to `predicted_value`.
  798. end::inference-config-results-field[]
  799. tag::inference-config-results-field-processor[]
  800. The field that is added to incoming documents to contain the inference
  801. prediction. Defaults to the `results_field` value of the {dfanalytics-job} that was
  802. used to train the model, which defaults to `<dependent_variable>_prediction`.
  803. end::inference-config-results-field-processor[]
  804. tag::inference-metadata-feature-importance-feature-name[]
  805. The feature for which this importance was calculated.
  806. end::inference-metadata-feature-importance-feature-name[]
  807. tag::inference-metadata-feature-importance-magnitude[]
  808. The average magnitude of this feature across all the training data.
  809. This value is the average of the absolute values of the importance
  810. for this feature.
  811. end::inference-metadata-feature-importance-magnitude[]
  812. tag::inference-metadata-feature-importance-max[]
  813. The maximum importance value across all the training data for this
  814. feature.
  815. end::inference-metadata-feature-importance-max[]
  816. tag::inference-metadata-feature-importance-min[]
  817. The minimum importance value across all the training data for this
  818. feature.
  819. end::inference-metadata-feature-importance-min[]
  820. tag::influencers[]
  821. A comma separated list of influencer field names. Typically these can be the by,
  822. over, or partition fields that are used in the detector configuration. You might
  823. also want to use a field name that is not specifically named in a detector, but
  824. is available as part of the input data. When you use multiple detectors, the use
  825. of influencers is recommended as it aggregates results for each influencer
  826. entity.
  827. end::influencers[]
  828. tag::input-bytes[]
  829. The number of bytes of input data posted to the {anomaly-job}.
  830. end::input-bytes[]
  831. tag::input-field-count[]
  832. The total number of fields in input documents posted to the {anomaly-job}. This
  833. count includes fields that are not used in the analysis. However, be aware that
  834. if you are using a {dfeed}, it extracts only the required fields from the
  835. documents it retrieves before posting them to the job.
  836. end::input-field-count[]
  837. tag::input-record-count[]
  838. The number of input documents posted to the {anomaly-job}.
  839. end::input-record-count[]
  840. tag::invalid-date-count[]
  841. The number of input documents with either a missing date field or a date that
  842. could not be parsed.
  843. end::invalid-date-count[]
  844. tag::is-interim[]
  845. If `true`, this is an interim result. In other words, the results are calculated
  846. based on partial input data.
  847. end::is-interim[]
  848. tag::job-id-anomaly-detection[]
  849. Identifier for the {anomaly-job}.
  850. end::job-id-anomaly-detection[]
  851. tag::job-id-data-frame-analytics[]
  852. Identifier for the {dfanalytics-job}.
  853. end::job-id-data-frame-analytics[]
  854. tag::job-id-anomaly-detection-default[]
  855. Identifier for the {anomaly-job}. It can be a job identifier, a group name, or a
  856. wildcard expression. If you do not specify one of these options, the API returns
  857. information for all {anomaly-jobs}.
  858. end::job-id-anomaly-detection-default[]
  859. tag::job-id-data-frame-analytics-default[]
  860. Identifier for the {dfanalytics-job}. If you do not specify this option, the API
  861. returns information for the first hundred {dfanalytics-jobs}.
  862. end::job-id-data-frame-analytics-default[]
  863. tag::job-id-anomaly-detection-list[]
  864. An identifier for the {anomaly-jobs}. It can be a job
  865. identifier, a group name, or a comma-separated list of jobs or groups.
  866. end::job-id-anomaly-detection-list[]
  867. tag::job-id-anomaly-detection-wildcard[]
  868. Identifier for the {anomaly-job}. It can be a job identifier, a group name, or a
  869. wildcard expression.
  870. end::job-id-anomaly-detection-wildcard[]
  871. tag::job-id-anomaly-detection-wildcard-list[]
  872. Identifier for the {anomaly-job}. It can be a job identifier, a group name, a
  873. comma-separated list of jobs or groups, or a wildcard expression.
  874. end::job-id-anomaly-detection-wildcard-list[]
  875. tag::job-id-anomaly-detection-define[]
  876. Identifier for the {anomaly-job}. This identifier can contain lowercase
  877. alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start
  878. and end with alphanumeric characters.
  879. end::job-id-anomaly-detection-define[]
  880. tag::job-id-data-frame-analytics-define[]
  881. Identifier for the {dfanalytics-job}. This identifier can contain lowercase
  882. alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start
  883. and end with alphanumeric characters.
  884. end::job-id-data-frame-analytics-define[]
  885. tag::job-id-datafeed[]
  886. The unique identifier for the job to which the {dfeed} sends data.
  887. end::job-id-datafeed[]
  888. tag::lambda[]
  889. Advanced configuration option. Regularization parameter to prevent overfitting
  890. on the training data set. Multiplies an L2 regularization term which applies to
  891. leaf weights of the individual trees in the forest. A high lambda value causes
  892. training to favor small leaf weights. This behavior makes the prediction
  893. function smoother at the expense of potentially not being able to capture
  894. relevant relationships between the features and the {depvar}. A small lambda
  895. value results in large individual trees and slower training. By default, this
  896. value is calculated during hyperparameter optimization. It must be a nonnegative
  897. value.
  898. end::lambda[]
  899. tag::last-data-time[]
  900. The timestamp at which data was last analyzed, according to server time.
  901. end::last-data-time[]
  902. tag::latency[]
  903. The size of the window in which to expect data that is out of time order. The
  904. default value is 0 (no latency). If you specify a non-zero value, it must be
  905. greater than or equal to one second. For more information about time units, see
  906. <<time-units>>.
  907. +
  908. --
  909. NOTE: Latency is only applicable when you send data by using
  910. the <<ml-post-data,post data>> API.
  911. --
  912. end::latency[]
  913. tag::latest-empty-bucket-timestamp[]
  914. The timestamp of the last bucket that did not contain any data.
  915. end::latest-empty-bucket-timestamp[]
  916. tag::latest-record-timestamp[]
  917. The timestamp of the latest chronologically input document.
  918. end::latest-record-timestamp[]
  919. tag::latest-sparse-record-timestamp[]
  920. The timestamp of the last bucket that was considered sparse.
  921. end::latest-sparse-record-timestamp[]
  922. tag::max-empty-searches[]
  923. If a real-time {dfeed} has never seen any data (including during any initial
  924. training period) then it will automatically stop itself and close its associated
  925. job after this many real-time searches that return no documents. In other words,
  926. it will stop after `frequency` times `max_empty_searches` of real-time
  927. operation. If not set then a {dfeed} with no end time that sees no data will
  928. remain started until it is explicitly stopped. By default this setting is not
  929. set.
  930. end::max-empty-searches[]
  931. tag::max-trees[]
  932. Advanced configuration option. Defines the maximum number of decision trees in
  933. the forest. The maximum value is 2000. By default, this value is calculated
  934. during hyperparameter optimization.
  935. end::max-trees[]
  936. tag::method[]
  937. The method that {oldetection} uses. Available methods are `lof`, `ldof`,
  938. `distance_kth_nn`, `distance_knn`, and `ensemble`. The default value is
  939. `ensemble`, which means that {oldetection} uses an ensemble of different methods
  940. and normalises and combines their individual {olscores} to obtain the overall
  941. {olscore}.
  942. end::method[]
  943. tag::missing-field-count[]
  944. The number of input documents that are missing a field that the {anomaly-job} is
  945. configured to analyze. Input documents with missing fields are still processed
  946. because it is possible that not all fields are missing.
  947. +
  948. --
  949. NOTE: If you are using {dfeeds} or posting data to the job in JSON format, a
  950. high `missing_field_count` is often not an indication of data issues. It is not
  951. necessarily a cause for concern.
  952. --
  953. end::missing-field-count[]
  954. tag::mode[]
  955. There are three available modes:
  956. +
  957. --
  958. * `auto`: The chunk size is dynamically calculated. This is the default and
  959. recommended value when the {dfeed} does not use aggregations.
  960. * `manual`: Chunking is applied according to the specified `time_span`. Use this
  961. mode when the {dfeed} uses aggregations.
  962. * `off`: No chunking is applied.
  963. --
  964. end::mode[]
  965. tag::model-bytes[]
  966. The number of bytes of memory used by the models. This is the maximum value
  967. since the last time the model was persisted. If the job is closed, this value
  968. indicates the latest size.
  969. end::model-bytes[]
  970. tag::model-bytes-exceeded[]
  971. The number of bytes over the high limit for memory usage at the last allocation
  972. failure.
  973. end::model-bytes-exceeded[]
  974. tag::model-id[]
  975. The unique identifier of the trained model.
  976. end::model-id[]
  977. tag::model-id-or-alias[]
  978. The unique identifier of the trained model or a model alias.
  979. end::model-id-or-alias[]
  980. tag::model-memory-limit-ad[]
  981. The approximate maximum amount of memory resources that are required for
  982. analytical processing. Once this limit is approached, data pruning becomes
  983. more aggressive. Upon exceeding this limit, new entities are not modeled. The
  984. default value for jobs created in version 6.1 and later is `1024mb`. If the
  985. `xpack.ml.max_model_memory_limit` setting has a value greater than `0` and less
  986. than `1024mb`, however, that value is used instead. The default value is
  987. relatively small to ensure that high resource usage is a conscious decision. If
  988. you have jobs that are expected to analyze high cardinality fields, you will
  989. likely need to use a higher value.
  990. +
  991. If you specify a number instead of a string, the units are assumed to be MiB.
  992. Specifying a string is recommended for clarity. If you specify a byte size unit
  993. of `b` or `kb` and the number does not equate to a discrete number of megabytes,
  994. it is rounded down to the closest MiB. The minimum valid value is 1 MiB. If you
  995. specify a value less than 1 MiB, an error occurs. For more information about
  996. supported byte size units, see <<byte-units>>.
  997. +
  998. If you specify a value for the `xpack.ml.max_model_memory_limit` setting, an
  999. error occurs when you try to create jobs that have `model_memory_limit` values
  1000. greater than that setting value. For more information, see <<ml-settings>>.
  1001. end::model-memory-limit-ad[]
  1002. tag::model-memory-limit-anomaly-jobs[]
  1003. The upper limit for model memory usage, checked on increasing values.
  1004. end::model-memory-limit-anomaly-jobs[]
  1005. tag::model-memory-limit-dfa[]
  1006. The approximate maximum amount of memory resources that are permitted for
  1007. analytical processing. The default value for {dfanalytics-jobs} is `1gb`. If
  1008. you specify a value for the `xpack.ml.max_model_memory_limit` setting, an error
  1009. occurs when you try to create jobs that have `model_memory_limit` values greater
  1010. than that setting value. For more information, see
  1011. <<ml-settings>>.
  1012. end::model-memory-limit-dfa[]
  1013. tag::model-memory-status[]
  1014. The status of the mathematical models, which can have one of the following
  1015. values:
  1016. +
  1017. --
  1018. * `ok`: The models stayed below the configured value.
  1019. * `soft_limit`: The models used more than 60% of the configured memory limit
  1020. and older unused models will be pruned to free up space. Additionally, in
  1021. categorization jobs no further category examples will be stored.
  1022. * `hard_limit`: The models used more space than the configured memory limit.
  1023. As a result, not all incoming data was processed.
  1024. --
  1025. end::model-memory-status[]
  1026. tag::model-plot-config[]
  1027. This advanced configuration option stores model information along with the
  1028. results. It provides a more detailed view into {anomaly-detect}.
  1029. +
  1030. --
  1031. WARNING: If you enable model plot it can add considerable overhead to the
  1032. performance of the system; it is not feasible for jobs with many entities.
  1033. Model plot provides a simplified and indicative view of the model and its
  1034. bounds. It does not display complex features such as multivariate correlations
  1035. or multimodal data. As such, anomalies may occasionally be reported which cannot
  1036. be seen in the model plot.
  1037. Model plot config can be configured when the job is created or updated later. It
  1038. must be disabled if performance issues are experienced.
  1039. --
  1040. end::model-plot-config[]
  1041. tag::model-plot-config-annotations-enabled[]
  1042. If true, enables calculation and storage of the model change annotations
  1043. for each entity that is being analyzed. Defaults to `enabled`.
  1044. end::model-plot-config-annotations-enabled[]
  1045. tag::model-plot-config-enabled[]
  1046. If true, enables calculation and storage of the model bounds for each entity
  1047. that is being analyzed. By default, this is not enabled.
  1048. end::model-plot-config-enabled[]
  1049. tag::model-plot-config-terms[]
  1050. Limits data collection to this comma separated list of partition or by field
  1051. values. If terms are not specified or it is an empty string, no filtering is
  1052. applied. For example, "CPU,NetworkIn,DiskWrites". Wildcards are not supported.
  1053. Only the specified `terms` can be viewed when using the Single Metric Viewer.
  1054. end::model-plot-config-terms[]
  1055. tag::model-snapshot-id[]
  1056. A numerical character string that uniquely identifies the model snapshot. For
  1057. example, `1575402236000 `.
  1058. end::model-snapshot-id[]
  1059. tag::model-snapshot-retention-days[]
  1060. Advanced configuration option, which affects the automatic removal of old model
  1061. snapshots for this job. It specifies the maximum period of time (in days) that
  1062. snapshots are retained. This period is relative to the timestamp of the most
  1063. recent snapshot for this job. The default value is `10`, which means snapshots
  1064. ten days older than the newest snapshot are deleted. For more information, refer
  1065. to {ml-docs}/ml-model-snapshots.html[Model snapshots].
  1066. end::model-snapshot-retention-days[]
  1067. tag::model-timestamp[]
  1068. The timestamp of the last record when the model stats were gathered.
  1069. end::model-timestamp[]
  1070. tag::multivariate-by-fields[]
  1071. This functionality is reserved for internal use. It is not supported for use in
  1072. customer environments and is not subject to the support SLA of official GA
  1073. features.
  1074. +
  1075. --
  1076. If set to `true`, the analysis will automatically find correlations between
  1077. metrics for a given `by` field value and report anomalies when those
  1078. correlations cease to hold. For example, suppose CPU and memory usage on host A
  1079. is usually highly correlated with the same metrics on host B. Perhaps this
  1080. correlation occurs because they are running a load-balanced application.
  1081. If you enable this property, then anomalies will be reported when, for example,
  1082. CPU usage on host A is high and the value of CPU usage on host B is low. That
  1083. is to say, you'll see an anomaly when the CPU of host A is unusual given
  1084. the CPU of host B.
  1085. NOTE: To use the `multivariate_by_fields` property, you must also specify
  1086. `by_field_name` in your detector.
  1087. --
  1088. end::multivariate-by-fields[]
  1089. tag::n-neighbors[]
  1090. Defines the value for how many nearest neighbors each method of {oldetection}
  1091. uses to calculate its {olscore}. When the value is not set, different values are
  1092. used for different ensemble members. This default behavior helps improve the
  1093. diversity in the ensemble; only override it if you are confident that the value
  1094. you choose is appropriate for the data set.
  1095. end::n-neighbors[]
  1096. tag::node-address[]
  1097. The network address of the node.
  1098. end::node-address[]
  1099. tag::node-attributes[]
  1100. Lists node attributes such as `ml.machine_memory` or `ml.max_open_jobs` settings.
  1101. end::node-attributes[]
  1102. tag::node-datafeeds[]
  1103. For started {dfeeds} only, this information pertains to the node upon which the
  1104. {dfeed} is started.
  1105. end::node-datafeeds[]
  1106. tag::node-ephemeral-id[]
  1107. The ephemeral ID of the node.
  1108. end::node-ephemeral-id[]
  1109. tag::node-id[]
  1110. The unique identifier of the node.
  1111. end::node-id[]
  1112. tag::node-jobs[]
  1113. Contains properties for the node that runs the job. This information is
  1114. available only for open jobs.
  1115. end::node-jobs[]
  1116. tag::node-transport-address[]
  1117. The host and port where transport HTTP connections are accepted.
  1118. end::node-transport-address[]
  1119. tag::open-time[]
  1120. For open jobs only, the elapsed time for which the job has been open.
  1121. end::open-time[]
  1122. tag::out-of-order-timestamp-count[]
  1123. The number of input documents that have a timestamp chronologically
  1124. preceding the start of the current anomaly detection bucket offset by
  1125. the latency window. This information is applicable only when you provide
  1126. data to the {anomaly-job} by using the <<ml-post-data,post data API>>.
  1127. These out of order documents are discarded, since jobs require time
  1128. series data to be in ascending chronological order.
  1129. end::out-of-order-timestamp-count[]
  1130. tag::outlier-fraction[]
  1131. The proportion of the data set that is assumed to be outlying prior to
  1132. {oldetection}. For example, 0.05 means it is assumed that 5% of values are real
  1133. outliers and 95% are inliers.
  1134. end::outlier-fraction[]
  1135. tag::over-field-name[]
  1136. The field used to split the data. In particular, this property is used for
  1137. analyzing the splits with respect to the history of all splits. It is used for
  1138. finding unusual values in the population of all splits. For more information,
  1139. see {ml-docs}/ml-configuring-populations.html[Performing population analysis].
  1140. end::over-field-name[]
  1141. tag::partition-field-name[]
  1142. The field used to segment the analysis. When you use this property, you have
  1143. completely independent baselines for each value of this field.
  1144. end::partition-field-name[]
  1145. tag::peak-model-bytes[]
  1146. The peak number of bytes of memory ever used by the models.
  1147. end::peak-model-bytes[]
  1148. tag::per-partition-categorization[]
  1149. Settings related to how categorization interacts with partition fields.
  1150. end::per-partition-categorization[]
  1151. tag::per-partition-categorization-enabled[]
  1152. To enable this setting, you must also set the partition_field_name property to
  1153. the same value in every detector that uses the keyword mlcategory. Otherwise,
  1154. job creation fails.
  1155. end::per-partition-categorization-enabled[]
  1156. tag::per-partition-categorization-stop-on-warn[]
  1157. This setting can be set to true only if per-partition categorization is enabled.
  1158. If true, both categorization and subsequent anomaly detection stops for
  1159. partitions where the categorization status changes to `warn`. This setting makes
  1160. it viable to have a job where it is expected that categorization works well for
  1161. some partitions but not others; you do not pay the cost of bad categorization
  1162. forever in the partitions where it works badly.
  1163. end::per-partition-categorization-stop-on-warn[]
  1164. tag::prediction-field-name[]
  1165. Defines the name of the prediction field in the results.
  1166. Defaults to `<dependent_variable>_prediction`.
  1167. end::prediction-field-name[]
  1168. tag::processed-field-count[]
  1169. The total number of fields in all the documents that have been processed by the
  1170. {anomaly-job}. Only fields that are specified in the detector configuration
  1171. object contribute to this count. The timestamp is not included in this count.
  1172. end::processed-field-count[]
  1173. tag::processed-record-count[]
  1174. The number of input documents that have been processed by the {anomaly-job}.
  1175. This value includes documents with missing fields, since they are nonetheless
  1176. analyzed. If you use {dfeeds} and have aggregations in your search query, the
  1177. `processed_record_count` is the number of aggregation results processed, not the
  1178. number of {es} documents.
  1179. end::processed-record-count[]
  1180. tag::randomize-seed[]
  1181. Defines the seed for the random generator that is used to pick training data. By
  1182. default, it is randomly generated. Set it to a specific value to use the same
  1183. training data each time you start a job (assuming other related parameters such
  1184. as `source` and `analyzed_fields` are the same).
  1185. end::randomize-seed[]
  1186. tag::query[]
  1187. The {es} query domain-specific language (DSL). This value corresponds to the
  1188. query object in an {es} search POST body. All the options that are supported by
  1189. {es} can be used, as this object is passed verbatim to {es}. By default, this
  1190. property has the following value: `{"match_all": {"boost": 1}}`.
  1191. end::query[]
  1192. tag::query-delay[]
  1193. The number of seconds behind real time that data is queried. For example, if
  1194. data from 10:04 a.m. might not be searchable in {es} until 10:06 a.m., set this
  1195. property to 120 seconds. The default value is randomly selected between `60s`
  1196. and `120s`. This randomness improves the query performance when there are
  1197. multiple jobs running on the same node. For more information, see
  1198. {ml-docs}/ml-delayed-data-detection.html[Handling delayed data].
  1199. end::query-delay[]
  1200. tag::rare-category-count[]
  1201. The number of categories that match just one categorized document.
  1202. end::rare-category-count[]
  1203. tag::renormalization-window-days[]
  1204. Advanced configuration option. The period over which adjustments to the score
  1205. are applied, as new data is seen. The default value is the longer of 30 days or
  1206. 100 `bucket_spans`.
  1207. end::renormalization-window-days[]
  1208. tag::results-index-name[]
  1209. A text string that affects the name of the {ml} results index. The default value
  1210. is `shared`, which generates an index named `.ml-anomalies-shared`.
  1211. end::results-index-name[]
  1212. tag::results-retention-days[]
  1213. Advanced configuration option. The period of time (in days) that results are
  1214. retained. Age is calculated relative to the timestamp of the latest bucket
  1215. result. If this property has a non-null value, once per day at 00:30 (server
  1216. time), results that are the specified number of days older than the latest
  1217. bucket result are deleted from {es}. The default value is null, which means all
  1218. results are retained.
  1219. end::results-retention-days[]
  1220. tag::retain[]
  1221. If `true`, this snapshot will not be deleted during automatic cleanup of
  1222. snapshots older than `model_snapshot_retention_days`. However, this snapshot
  1223. will be deleted when the job is deleted. The default value is `false`.
  1224. end::retain[]
  1225. tag::script-fields[]
  1226. Specifies scripts that evaluate custom expressions and returns script fields to
  1227. the {dfeed}. The detector configuration objects in a job can contain functions
  1228. that use these script fields. For more information, see
  1229. {ml-docs}/ml-configuring-transform.html[Transforming data with script fields]
  1230. and <<script-fields,Script fields>>.
  1231. end::script-fields[]
  1232. tag::scroll-size[]
  1233. The `size` parameter that is used in {es} searches when the {dfeed} does not use
  1234. aggregations. The default value is `1000`. The maximum value is the value of
  1235. `index.max_result_window` which is 10,000 by default.
  1236. end::scroll-size[]
  1237. tag::search-bucket-avg[]
  1238. The average search time per bucket, in milliseconds.
  1239. end::search-bucket-avg[]
  1240. tag::search-count[]
  1241. The number of searches run by the {dfeed}.
  1242. end::search-count[]
  1243. tag::search-exp-avg-hour[]
  1244. The exponential average search time per hour, in milliseconds.
  1245. end::search-exp-avg-hour[]
  1246. tag::search-time[]
  1247. The total time the {dfeed} spent searching, in milliseconds.
  1248. end::search-time[]
  1249. tag::size[]
  1250. Specifies the maximum number of {dfanalytics-jobs} to obtain. The default value
  1251. is `100`.
  1252. end::size[]
  1253. tag::size-models[]
  1254. Specifies the maximum number of models to obtain. The default value
  1255. is `100`.
  1256. end::size-models[]
  1257. tag::snapshot-id[]
  1258. Identifier for the model snapshot.
  1259. end::snapshot-id[]
  1260. tag::sparse-bucket-count[]
  1261. The number of buckets that contained few data points compared to the expected
  1262. number of data points. If your data contains many sparse buckets, consider using
  1263. a longer `bucket_span`.
  1264. end::sparse-bucket-count[]
  1265. tag::standardization-enabled[]
  1266. If `true`, the following operation is performed on the columns before computing
  1267. outlier scores: (x_i - mean(x_i)) / sd(x_i). Defaults to `true`. For more
  1268. information about this concept, see
  1269. {wikipedia}/Feature_scaling#Standardization_(Z-score_Normalization)[Wikipedia].
  1270. end::standardization-enabled[]
  1271. tag::state-anomaly-job[]
  1272. The status of the {anomaly-job}, which can be one of the following values:
  1273. +
  1274. --
  1275. * `closed`: The job finished successfully with its model state persisted. The
  1276. job must be opened before it can accept further data.
  1277. * `closing`: The job close action is in progress and has not yet completed. A
  1278. closing job cannot accept further data.
  1279. * `failed`: The job did not finish successfully due to an error. This situation
  1280. can occur due to invalid input data, a fatal error occurring during the
  1281. analysis, or an external interaction such as the process being killed by the
  1282. Linux out of memory (OOM) killer. If the job had irrevocably failed, it must be
  1283. force closed and then deleted. If the {dfeed} can be corrected, the job can be
  1284. closed and then re-opened.
  1285. * `opened`: The job is available to receive and process data.
  1286. * `opening`: The job open action is in progress and has not yet completed.
  1287. --
  1288. end::state-anomaly-job[]
  1289. tag::state-datafeed[]
  1290. The status of the {dfeed}, which can be one of the following values:
  1291. +
  1292. --
  1293. * `starting`: The {dfeed} has been requested to start but has not yet started.
  1294. * `started`: The {dfeed} is actively receiving data.
  1295. * `stopping`: The {dfeed} has been requested to stop gracefully and is
  1296. completing its final action.
  1297. * `stopped`: The {dfeed} is stopped and will not receive data until it is
  1298. re-started.
  1299. --
  1300. end::state-datafeed[]
  1301. tag::summary-count-field-name[]
  1302. If this property is specified, the data that is fed to the job is expected to be
  1303. pre-summarized. This property value is the name of the field that contains the
  1304. count of raw data points that have been summarized. The same
  1305. `summary_count_field_name` applies to all detectors in the job.
  1306. +
  1307. --
  1308. NOTE: The `summary_count_field_name` property cannot be used with the `metric`
  1309. function.
  1310. --
  1311. end::summary-count-field-name[]
  1312. tag::tags[]
  1313. A comma delimited string of tags. A trained model can have many tags, or none.
  1314. When supplied, only trained models that contain all the supplied tags are
  1315. returned.
  1316. end::tags[]
  1317. tag::timeout-start[]
  1318. Controls the amount of time to wait until the {dfanalytics-job} starts. Defaults
  1319. to 20 seconds.
  1320. end::timeout-start[]
  1321. tag::timeout-stop[]
  1322. Controls the amount of time to wait until the {dfanalytics-job} stops. Defaults
  1323. to 20 seconds.
  1324. end::timeout-stop[]
  1325. tag::time-format[]
  1326. The time format, which can be `epoch`, `epoch_ms`, or a custom pattern. The
  1327. default value is `epoch`, which refers to UNIX or Epoch time (the number of
  1328. seconds since 1 Jan 1970). The value `epoch_ms` indicates that time is measured
  1329. in milliseconds since the epoch. The `epoch` and `epoch_ms` time formats accept
  1330. either integer or real values. +
  1331. +
  1332. NOTE: Custom patterns must conform to the Java `DateTimeFormatter` class.
  1333. When you use date-time formatting patterns, it is recommended that you provide
  1334. the full date, time and time zone. For example: `yyyy-MM-dd'T'HH:mm:ssX`.
  1335. If the pattern that you specify is not sufficient to produce a complete
  1336. timestamp, job creation fails.
  1337. end::time-format[]
  1338. tag::time-span[]
  1339. The time span that each search will be querying. This setting is only applicable
  1340. when the mode is set to `manual`. For example: `3h`.
  1341. end::time-span[]
  1342. tag::timestamp-results[]
  1343. The start time of the bucket for which these results were calculated.
  1344. end::timestamp-results[]
  1345. tag::tokenizer[]
  1346. The name or definition of the <<analysis-tokenizers,tokenizer>> to use after
  1347. character filters are applied. This property is compulsory if
  1348. `categorization_analyzer` is specified as an object. Machine learning provides a
  1349. tokenizer called `ml_classic` that tokenizes in the same way as the
  1350. non-customizable tokenizer in older versions of the product. If you want to use
  1351. that tokenizer but change the character or token filters, specify
  1352. `"tokenizer": "ml_classic"` in your `categorization_analyzer`.
  1353. end::tokenizer[]
  1354. tag::total-by-field-count[]
  1355. The number of `by` field values that were analyzed by the models. This value is
  1356. cumulative for all detectors in the job.
  1357. end::total-by-field-count[]
  1358. tag::total-category-count[]
  1359. The number of categories created by categorization.
  1360. end::total-category-count[]
  1361. tag::total-over-field-count[]
  1362. The number of `over` field values that were analyzed by the models. This value
  1363. is cumulative for all detectors in the job.
  1364. end::total-over-field-count[]
  1365. tag::total-partition-field-count[]
  1366. The number of `partition` field values that were analyzed by the models. This
  1367. value is cumulative for all detectors in the job.
  1368. end::total-partition-field-count[]
  1369. tag::training-percent[]
  1370. Defines what percentage of the eligible documents that will
  1371. be used for training. Documents that are ignored by the analysis (for example
  1372. those that contain arrays with more than one value) won’t be included in the
  1373. calculation for used percentage. Defaults to `100`.
  1374. end::training-percent[]
  1375. tag::use-null[]
  1376. Defines whether a new series is used as the null series when there is no value
  1377. for the by or partition fields. The default value is `false`.
  1378. end::use-null[]
  1379. tag::verbose[]
  1380. Defines whether the stats response should be verbose. The default value is `false`.
  1381. end::verbose[]