ml-shared.asciidoc 59 KB

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