Skip to content

Commit abdbd84

Browse files
committed
Merge remote-tracking branch 'es/master' into enrich
2 parents 4de7133 + 15e2de6 commit abdbd84

File tree

77 files changed

+1174
-532
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+1174
-532
lines changed

distribution/docker/docker-build-context/src/docker/config/log4j2.properties

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ appender.deprecation_rolling.type = Console
1616
appender.deprecation_rolling.name = deprecation_rolling
1717
appender.deprecation_rolling.layout.type = ESJsonLayout
1818
appender.deprecation_rolling.layout.type_name = deprecation
19-
appender.deprecation_rolling.layout.esmessagefields=x-opaque-id
2019

2120
logger.deprecation.name = org.elasticsearch.deprecation
2221
logger.deprecation.level = warn
@@ -27,7 +26,7 @@ appender.index_search_slowlog_rolling.type = Console
2726
appender.index_search_slowlog_rolling.name = index_search_slowlog_rolling
2827
appender.index_search_slowlog_rolling.layout.type = ESJsonLayout
2928
appender.index_search_slowlog_rolling.layout.type_name = index_search_slowlog
30-
appender.index_search_slowlog_rolling.layout.esmessagefields=message,took,took_millis,total_hits,stats,search_type,total_shards,source,id
29+
appender.index_search_slowlog_rolling.layout.overrideFields=message
3130

3231
logger.index_search_slowlog_rolling.name = index.search.slowlog
3332
logger.index_search_slowlog_rolling.level = trace
@@ -38,7 +37,7 @@ appender.index_indexing_slowlog_rolling.type = Console
3837
appender.index_indexing_slowlog_rolling.name = index_indexing_slowlog_rolling
3938
appender.index_indexing_slowlog_rolling.layout.type = ESJsonLayout
4039
appender.index_indexing_slowlog_rolling.layout.type_name = index_indexing_slowlog
41-
appender.index_indexing_slowlog_rolling.layout.esmessagefields=message,took,took_millis,doc_type,id,routing,source
40+
appender.index_indexing_slowlog_rolling.layout.overrideFields=message
4241

4342
logger.index_indexing_slowlog.name = index.indexing.slowlog.index
4443
logger.index_indexing_slowlog.level = trace

distribution/src/config/log4j2.properties

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ appender.deprecation_rolling.name = deprecation_rolling
6767
appender.deprecation_rolling.fileName = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_deprecation.json
6868
appender.deprecation_rolling.layout.type = ESJsonLayout
6969
appender.deprecation_rolling.layout.type_name = deprecation
70-
appender.deprecation_rolling.layout.esmessagefields=x-opaque-id
7170

7271
appender.deprecation_rolling.filePattern = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}_deprecation-%i.json.gz
7372
appender.deprecation_rolling.policies.type = Policies
@@ -104,7 +103,7 @@ appender.index_search_slowlog_rolling.fileName = ${sys:es.logs.base_path}${sys:f
104103
.cluster_name}_index_search_slowlog.json
105104
appender.index_search_slowlog_rolling.layout.type = ESJsonLayout
106105
appender.index_search_slowlog_rolling.layout.type_name = index_search_slowlog
107-
appender.index_search_slowlog_rolling.layout.esmessagefields=message,took,took_millis,total_hits,stats,search_type,total_shards,source,id
106+
appender.index_search_slowlog_rolling.layout.overrideFields=message
108107

109108
appender.index_search_slowlog_rolling.filePattern = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs\
110109
.cluster_name}_index_search_slowlog-%i.json.gz
@@ -143,7 +142,7 @@ appender.index_indexing_slowlog_rolling.fileName = ${sys:es.logs.base_path}${sys
143142
_index_indexing_slowlog.json
144143
appender.index_indexing_slowlog_rolling.layout.type = ESJsonLayout
145144
appender.index_indexing_slowlog_rolling.layout.type_name = index_indexing_slowlog
146-
appender.index_indexing_slowlog_rolling.layout.esmessagefields=message,took,took_millis,doc_type,id,routing,source
145+
appender.index_indexing_slowlog_rolling.layout.overrideFields=message
147146

148147
appender.index_indexing_slowlog_rolling.filePattern = ${sys:es.logs.base_path}${sys:file.separator}${sys:es.logs.cluster_name}\
149148
_index_indexing_slowlog-%i.json.gz

docs/reference/cat/alias.asciidoc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,16 @@ filter and routing information.
1111
[[cat-alias-api-request]]
1212
==== {api-request-title}
1313

14-
`GET /_cat/aliases/<name>`
14+
`GET /_cat/aliases/<alias>`
15+
16+
`GET /_cat/aliases`
1517

1618
[[cat-alias-api-path-params]]
1719
==== {api-path-parms-title}
1820

19-
include::{docdir}/rest-api/common-parms.asciidoc[tag=name]
21+
`<alias>`::
22+
(Optional, string)
23+
include::{docdir}/rest-api/common-parms.asciidoc[tag=index-alias]
2024

2125

2226
[[cat-alias-api-query-params]]

docs/reference/cat/allocation.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ and their disk space.
1414

1515
`GET /_cat/allocation/<node_id>`
1616

17+
`GET /_cat/allocation`
18+
1719
[[cat-allocation-api-path-params]]
1820
==== {api-path-parms-title}
1921

docs/reference/cat/count.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ which have not yet been removed by the merge process.
1616

1717
`GET /_cat/count/<index>`
1818

19+
`GET /_cat/count`
20+
1921

2022
[[cat-count-api-path-params]]
2123
==== {api-path-parms-title}

docs/reference/cat/fielddata.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ in the cluster.
1313

1414
`GET /_cat/fielddata/<field>`
1515

16+
`GET /_cat/fielddata`
17+
1618

1719
[[cat-fielddata-api-path-params]]
1820
==== {api-path-parms-title}

docs/reference/cat/health.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ include::{docdir}/rest-api/common-parms.asciidoc[tag=master-timeout]
5151

5252
include::{docdir}/rest-api/common-parms.asciidoc[tag=cat-s]
5353

54+
include::{docdir}/rest-api/common-parms.asciidoc[tag=time]
55+
5456
`ts` (timestamps)::
5557
(Optional, boolean) If `true`, returns `HH:MM:SS` and
5658
https://en.wikipedia.org/wiki/Unix_time[Unix `epoch`] timestamps. Defaults to

docs/reference/cat/indices.asciidoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Returns high-level information about indices in a cluster.
1212

1313
`GET /_cat/indices/<index>`
1414

15+
`GET /_cat/indices`
16+
1517

1618
[[cat-indices-api-desc]]
1719
==== {api-description-title}
@@ -77,6 +79,8 @@ primary shards. Defaults to `false`.
7779

7880
include::{docdir}/rest-api/common-parms.asciidoc[tag=cat-s]
7981

82+
include::{docdir}/rest-api/common-parms.asciidoc[tag=time]
83+
8084
include::{docdir}/rest-api/common-parms.asciidoc[tag=cat-v]
8185

8286

docs/reference/cat/nodes.asciidoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Returns information about a cluster's nodes.
1414
[[cat-nodes-api-query-params]]
1515
==== {api-query-parms-title}
1616

17+
include::{docdir}/rest-api/common-parms.asciidoc[tag=bytes]
18+
1719
include::{docdir}/rest-api/common-parms.asciidoc[tag=http-format]
1820

1921
`full_id`::
@@ -287,6 +289,8 @@ include::{docdir}/rest-api/common-parms.asciidoc[tag=master-timeout]
287289

288290
include::{docdir}/rest-api/common-parms.asciidoc[tag=cat-s]
289291

292+
include::{docdir}/rest-api/common-parms.asciidoc[tag=time]
293+
290294
include::{docdir}/rest-api/common-parms.asciidoc[tag=cat-v]
291295

292296

docs/reference/cat/pending_tasks.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ include::{docdir}/rest-api/common-parms.asciidoc[tag=master-timeout]
2727

2828
include::{docdir}/rest-api/common-parms.asciidoc[tag=cat-s]
2929

30+
include::{docdir}/rest-api/common-parms.asciidoc[tag=time]
31+
3032
include::{docdir}/rest-api/common-parms.asciidoc[tag=cat-v]
3133

3234

docs/reference/cat/recovery.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ include::{docdir}/rest-api/common-parms.asciidoc[tag=master-timeout]
5656

5757
include::{docdir}/rest-api/common-parms.asciidoc[tag=cat-s]
5858

59+
include::{docdir}/rest-api/common-parms.asciidoc[tag=time]
60+
5961
include::{docdir}/rest-api/common-parms.asciidoc[tag=cat-v]
6062

6163

docs/reference/cat/segments.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ API.
1313

1414
`GET /_cat/segments/<index>`
1515

16+
`GET /_cat/segments`
17+
1618

1719
[[cat-segments-path-params]]
1820
==== {api-path-parms-title}

docs/reference/cat/shards.asciidoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ docs, the bytes it takes on disk, and the node where it's located.
1414

1515
`GET /_cat/shards/<index>`
1616

17+
`GET /_cat/shards`
18+
1719

1820
[[cat-shards-path-params]]
1921
==== {api-path-parms-title}
@@ -269,6 +271,8 @@ include::{docdir}/rest-api/common-parms.asciidoc[tag=master-timeout]
269271

270272
include::{docdir}/rest-api/common-parms.asciidoc[tag=cat-s]
271273

274+
include::{docdir}/rest-api/common-parms.asciidoc[tag=time]
275+
272276
include::{docdir}/rest-api/common-parms.asciidoc[tag=cat-v]
273277

274278

docs/reference/cat/snapshots.asciidoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ more repositories. A snapshot is a backup of an index or running {es} cluster.
1313

1414
`GET /_cat/snapshots/<repository>`
1515

16+
`GET /_cat/snapshots`
17+
1618

1719
[[cat-snapshots-path-params]]
1820
==== {api-path-parms-title}
@@ -103,6 +105,8 @@ include::{docdir}/rest-api/common-parms.asciidoc[tag=master-timeout]
103105

104106
include::{docdir}/rest-api/common-parms.asciidoc[tag=cat-s]
105107

108+
include::{docdir}/rest-api/common-parms.asciidoc[tag=time]
109+
106110
include::{docdir}/rest-api/common-parms.asciidoc[tag=cat-v]
107111

108112

docs/reference/cat/tasks.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ include::{docdir}/rest-api/common-parms.asciidoc[tag=parent-task-id]
5757

5858
include::{docdir}/rest-api/common-parms.asciidoc[tag=cat-s]
5959

60+
include::{docdir}/rest-api/common-parms.asciidoc[tag=time]
61+
6062
include::{docdir}/rest-api/common-parms.asciidoc[tag=wait_for_completion]
6163

6264
include::{docdir}/rest-api/common-parms.asciidoc[tag=cat-v]

docs/reference/cat/templates.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ and <<mapping,field mappings>> to new indices at creation.
1414

1515
`GET /_cat/templates/<template_name>`
1616

17+
`GET /_cat/templates`
18+
1719

1820
[[cat-templates-path-params]]
1921
==== {api-path-parms-title}

docs/reference/cat/thread_pool.asciidoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ pools.
1414

1515
`GET /_cat/thread_pool/<thread_pool>`
1616

17+
`GET /_cat/thread_pool`
18+
19+
1720
[[cat-thread-pool-path-params]]
1821
==== {api-path-parms-title}
1922

docs/reference/ml/df-analytics/apis/put-dfanalytics.asciidoc

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,26 @@ If the destination index already exists, then it will be use as is. This makes
4646
it possible to set up the destination index in advance with custom settings
4747
and mappings.
4848

49+
[[ml-put-dfanalytics-supported-fields]]
50+
===== Supported fields
51+
52+
====== {oldetection-cap}
53+
54+
{oldetection-cap} requires numeric or boolean data to analyze. The algorithms
55+
don't support missing values therefore fields that have data types other than
56+
numeric or boolean are ignored. Documents where included fields contain missing
57+
values, null values, or an array are also ignored. Therefore the `dest` index
58+
may contain documents that don't have an {olscore}.
59+
60+
61+
====== {regression-cap}
62+
63+
{regression-cap} supports fields that are numeric, boolean, text, keyword and ip. It
64+
is also tolerant of missing values. Fields that are supported are included in
65+
the analysis, other fields are ignored. Documents where included fields contain
66+
an array with two or more values are also ignored. Documents in the `dest` index
67+
that don’t contain a results field are not included in the {reganalysis}.
68+
4969

5070
[[ml-put-dfanalytics-path-params]]
5171
==== {api-path-parms-title}
@@ -68,9 +88,8 @@ and mappings.
6888
`analyzed_fields`::
6989
(Optional, object) You can specify both `includes` and/or `excludes` patterns.
7090
If `analyzed_fields` is not set, only the relevant fields will be included.
71-
For example, all the numeric fields for {oldetection}. For the potential field
72-
type limitations, see
73-
{stack-ov}/ml-dfa-limitations.html[{dfanalytics} limitations].
91+
For example, all the numeric fields for {oldetection}. For the supported field
92+
types, see <<ml-put-dfanalytics-supported-fields>>.
7493

7594
`includes`:::
7695
(Optional, array) An array of strings that defines the fields that will be

docs/reference/modules/discovery/bootstrapping.asciidoc

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
Starting an Elasticsearch cluster for the very first time requires the initial
55
set of <<master-node,master-eligible nodes>> to be explicitly defined on one or
66
more of the master-eligible nodes in the cluster. This is known as _cluster
7-
bootstrapping_. This is only required the very first time the cluster starts
8-
up: nodes that have already joined a cluster store this information in their
9-
data folder for use in a <<restart-upgrade,full cluster restart>>, and
10-
freshly-started nodes that are joining a running cluster obtain this
11-
information from the cluster's elected master.
7+
bootstrapping_. This is only required the first time a cluster starts up: nodes
8+
that have already joined a cluster store this information in their data folder
9+
for use in a <<restart-upgrade,full cluster restart>>, and freshly-started nodes
10+
that are joining a running cluster obtain this information from the cluster's
11+
elected master.
1212

1313
The initial set of master-eligible nodes is defined in the
1414
<<initial_master_nodes,`cluster.initial_master_nodes` setting>>. This should be
@@ -30,12 +30,8 @@ node:
3030

3131
When you start a master-eligible node, you can provide this setting on the
3232
command line or in the `elasticsearch.yml` file. After the cluster has formed,
33-
this setting is no longer required and is ignored. It need not be set on
34-
master-ineligible nodes, nor on master-eligible nodes that are started to join
35-
an existing cluster. Note that master-eligible nodes should use storage that
36-
persists across restarts. If they do not, and `cluster.initial_master_nodes` is
37-
set, and a full cluster restart occurs, then another brand-new cluster will
38-
form and this may result in data loss.
33+
this setting is no longer required. It should not be set for master-ineligible
34+
nodes, master-eligible nodes joining an existing cluster, or cluster restarts.
3935

4036
It is technically sufficient to set `cluster.initial_master_nodes` on a single
4137
master-eligible node in the cluster, and only to mention that single node in the

docs/reference/rest-api/common-parms.asciidoc

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -438,11 +438,6 @@ such as `1264`.
438438
A value of `-1` indicates {es} was unable to compute this number.
439439
end::memory[]
440440

441-
tag::name[]
442-
`<name>`::
443-
(Optional, string) Comma-separated list of alias names to return.
444-
end::name[]
445-
446441
tag::node-id[]
447442
`<node_id>`::
448443
(Optional, string) Comma-separated list of node IDs or names used to limit
@@ -574,8 +569,9 @@ end::scroll_size[]
574569

575570
tag::search_timeout[]
576571
`search_timeout`::
577-
(Optional, <<time-units, time units>> Explicit timeout for each search
578-
request. Defaults to no timeout.
572+
(Optional, <<time-units, time units>>)
573+
Explicit timeout for each search request.
574+
Defaults to no timeout.
579575
end::search_timeout[]
580576

581577
tag::search_type[]
@@ -687,6 +683,12 @@ tag::terminate_after[]
687683
upon reaching which the query execution will terminate early.
688684
end::terminate_after[]
689685

686+
tag::time[]
687+
`time`::
688+
(Optional, <<time-units,time units>>)
689+
Unit used to display time values.
690+
end::time[]
691+
690692
tag::timeoutparms[]
691693

692694
tag::timeout[]

docs/reference/search/request-body.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ include::{docdir}/rest-api/common-parms.asciidoc[tag=search_type]
7373

7474
include::{docdir}/rest-api/common-parms.asciidoc[tag=terminate_after]
7575

76-
include::{docdir}/rest-api/common-parms.asciidoc[tag=timeout]
76+
include::{docdir}/rest-api/common-parms.asciidoc[tag=search_timeout]
7777

7878

7979
Out of the above, the `search_type`, `request_cache` and the

docs/reference/setup/important-settings/discovery-settings.asciidoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ settings configured, this step is automatically performed by the nodes
4040
themselves. As this auto-bootstrapping is <<modules-discovery-quorums,inherently
4141
unsafe>>, when you start a brand new cluster in <<dev-vs-prod-mode,production
4242
mode>>, you must explicitly list the master-eligible nodes whose votes should be
43-
counted in the very first election. This list is set using the
44-
`cluster.initial_master_nodes` setting.
43+
counted in the very first election. This list is set using the
44+
`cluster.initial_master_nodes` setting. You should not use this setting when
45+
restarting a cluster or adding a new node to an existing cluster.
4546

4647
[source,yaml]
4748
--------------------------------------------------

0 commit comments

Comments
 (0)