ml-shared.asciidoc 78 KB

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