ml-shared.asciidoc 65 KB

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