Skip to content

Commit c807bc2

Browse files
Merge branch '7.x' into backport/7.x/pr-53851
2 parents 90fbdd8 + 570aec8 commit c807bc2

File tree

772 files changed

+10295
-6362
lines changed

Some content is hidden

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

772 files changed

+10295
-6362
lines changed

.eslintrc.js

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,6 @@ module.exports = {
183183
'react-hooks/exhaustive-deps': 'off',
184184
},
185185
},
186-
{
187-
files: ['x-pack/legacy/plugins/monitoring/**/*.{js,ts,tsx}'],
188-
rules: {
189-
'jsx-a11y/click-events-have-key-events': 'off',
190-
},
191-
},
192186
{
193187
files: ['x-pack/legacy/plugins/snapshot_restore/**/*.{js,ts,tsx}'],
194188
rules: {
@@ -742,30 +736,27 @@ module.exports = {
742736
'no-unreachable': 'error',
743737
'no-unsafe-finally': 'error',
744738
'no-useless-call': 'error',
745-
// This will be turned on after bug fixes are mostly complete
746-
// 'no-useless-catch': 'warn',
739+
'no-useless-catch': 'error',
747740
'no-useless-concat': 'error',
748741
'no-useless-computed-key': 'error',
749742
// This will be turned on after bug fixes are mostly complete
750743
// 'no-useless-escape': 'warn',
751744
'no-useless-rename': 'error',
752-
// This will be turned on after bug fixes are mostly complete
753-
// 'no-useless-return': 'warn',
745+
'no-useless-return': 'error',
754746
// This will be turned on after bug fixers are mostly complete
755747
// 'no-void': 'warn',
756748
'one-var-declaration-per-line': 'error',
757749
'prefer-object-spread': 'error',
758750
'prefer-promise-reject-errors': 'error',
759751
'prefer-rest-params': 'error',
760752
'prefer-spread': 'error',
761-
// This style will be turned on after most bugs are fixed
762-
// 'prefer-template': 'warn',
753+
'prefer-template': 'error',
763754
'react/boolean-prop-naming': 'error',
764755
'react/button-has-type': 'error',
756+
'react/display-name': 'error',
765757
'react/forbid-dom-props': 'error',
766758
'react/no-access-state-in-setstate': 'error',
767-
// This style will be turned on after most bugs are fixed
768-
// 'react/no-children-prop': 'warn',
759+
'react/no-children-prop': 'error',
769760
'react/no-danger-with-children': 'error',
770761
'react/no-deprecated': 'error',
771762
'react/no-did-mount-set-state': 'error',
@@ -827,21 +818,6 @@ module.exports = {
827818
},
828819
},
829820

830-
/**
831-
* Monitoring overrides
832-
*/
833-
{
834-
files: ['x-pack/legacy/plugins/monitoring/**/*.js'],
835-
rules: {
836-
'no-unused-vars': ['error', { args: 'all', argsIgnorePattern: '^_' }],
837-
'no-else-return': 'error',
838-
},
839-
},
840-
{
841-
files: ['x-pack/legacy/plugins/monitoring/public/**/*.js'],
842-
env: { browser: true },
843-
},
844-
845821
/**
846822
* Canvas overrides
847823
*/

docs/limitations.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ These {stack} features also have limitations that affect {kib}:
1919

2020
include::limitations/nested-objects.asciidoc[]
2121

22-
include::limitations/export-data.asciidoc[]
22+
include::limitations/export-data.asciidoc[]
Lines changed: 75 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
[[index-patterns]]
2-
== Index patterns
2+
== Creating an index pattern
33

4-
To visualize and explore data in {kib}, you must create an index pattern.
5-
An index pattern tells {kib} which {es} indices contain the data that you want to work with.
6-
An index pattern can match a single index, multiple indices, and a rollup index.
4+
To explore and visualize data in {kib}, you must create an index pattern.
5+
An index pattern tells {kib} which {es} indices contain the data that
6+
you want to work with.
7+
Once you create an index pattern, you're ready to:
8+
9+
* Interactively explore your data in <<discover, Discover>>.
10+
* Analyze your data in charts, tables, gauges, tag clouds, and more in <<visualize, Visualize>>.
11+
* Show off your data in a <<canvas, Canvas>> workpad.
12+
* If your data includes geo data, visualize it with <<maps, Maps>>.
713

814
[float]
915
[[index-patterns-read-only-access]]
1016
=== [xpack]#Read-only access#
11-
If you have insufficient privileges to create or save index patterns, a read-only
17+
If you have insufficient privileges to create or save index patterns, a read-only
1218
indicator appears in Kibana. The buttons to create new index patterns or save
13-
existing index patterns are not visible. For more information on granting access to
14-
Kibana see <<xpack-security-authorization>>.
19+
existing index patterns are not visible. For more information, see <<xpack-security-authorization>>.
1520

1621
[role="screenshot"]
1722
image::images/management-index-read-only-badge.png[Example of Index Pattern Management's read only access indicator in Kibana's header]
@@ -20,96 +25,103 @@ image::images/management-index-read-only-badge.png[Example of Index Pattern Mana
2025
[[settings-create-pattern]]
2126
=== Create an index pattern
2227

23-
To get started, go to *Management > Kibana > Index Patterns*. You begin with
24-
an overview of your index patterns, including any that were added when you
25-
downloaded sample data sets.
26-
27-
You can create a standard index pattern, and if a rollup index is detected in the
28-
cluster, a rollup index pattern.
28+
If you are in an app that requires an index pattern, and you don't have one yet,
29+
{kib} prompts you to create one. Or, you can go directly to
30+
*Management > Kibana > Index Patterns*.
2931

3032
[role="screenshot"]
3133
image:management/index-patterns/images/rollup-index-pattern.png["Menu with rollup index pattern"]
3234

3335
[float]
3436
==== Standard index pattern
3537

36-
{kib} makes it easy for you to create an index pattern by walking you through
37-
the process. Just start typing in the *Index pattern* field, and {kib} looks for
38-
the names of {es} indices that match your input. Make sure that the name of the
38+
Just start typing in the *Index pattern* field, and {kib} looks for
39+
the names of {es} indices that match your input. Make sure that the name of the
3940
index pattern is unique.
40-
41-
If you want to include system indices in your search, toggle the switch in the
42-
upper right.
41+
To include system indices in your search, toggle the switch in the upper right.
4342

4443
[role="screenshot"]
4544
image:management/index-patterns/images/create-index-pattern.png["Create index pattern"]
4645

47-
Your index pattern can match multiple {es} indices.
48-
Use a comma to separate the names, with no space after the comma. The notation for
49-
wildcards (`*`) and the ability to "exclude" (`-`) also apply
46+
Your index pattern can match multiple {es} indices.
47+
Use a comma to separate the names, with no space after the comma. The notation for
48+
wildcards (`*`) and the ability to "exclude" (`-`) also apply
5049
(for example, `test*,-test3`).
5150

52-
When {kib} detects an index with a timestamp, you’re asked to choose a field to
53-
filter your data by time. If you don’t specify a field, you won’t be able
51+
If {kib} detects an index with a timestamp, you’re asked to choose a field to
52+
filter your data by time. If you don’t specify a field, you won’t be able
5453
to use the time filter.
5554

56-
Once you’ve created your index pattern, you can start working with
57-
your {es} data in {kib}. Here are some things to try:
5855

59-
* Interactively explore your data in <<discover, Discover>>.
60-
* Present your data in charts, tables, gauges, tag clouds, and more in <<visualize, Visualize>>.
61-
* Show off your data in a <<canvas, Canvas>> presentation.
62-
* If your data includes geo data, visualize it using <<maps, Maps>>.
63-
64-
For a walkthrough of creating an index pattern and visualizing the data,
65-
see <<getting-started, Getting Started>>.
6656

6757
[float]
6858
==== Rollup index pattern
6959

70-
If a rollup index is detected in the cluster, clicking *Create index pattern*
71-
includes an item for creating a rollup index pattern. You create an
72-
index pattern for rolled up data the same way you do for any data.
60+
If a rollup index is detected in the cluster, clicking *Create index pattern*
61+
includes an item for creating a rollup index pattern.
62+
You can match an index pattern to only rolled up data, or mix both rolled
63+
up and raw data to explore and visualize all data together.
64+
An index pattern can match
65+
only one rollup index.
66+
67+
[float]
68+
[[management-cross-cluster-search]]
69+
==== {ccs-cap} index pattern
70+
71+
If your {es} clusters are configured for {ref}/modules-cross-cluster-search.html[{ccs}], you can create
72+
index patterns to search across the clusters of your choosing. Using the
73+
same syntax that you'd use in a raw {ccs} request in {es}, create your
74+
index pattern with the convention `<cluster-names>:<pattern>`.
75+
76+
For example, to query {ls} indices across two {es} clusters
77+
that you set up for {ccs}, which are named `cluster_one` and `cluster_two`,
78+
you would use `cluster_one:logstash-*,cluster_two:logstash-*` as your index pattern.
79+
80+
You can use wildcards in your cluster names
81+
to match any number of clusters, so if you want to search {ls} indices across
82+
clusters named `cluster_foo`, `cluster_bar`, and so on, you would use `cluster_*:logstash-*`
83+
as your index pattern.
7384

74-
You can match an index pattern to only rolled up data, or mix both rolled
75-
up and raw data to visualize all data together. An index pattern can match
76-
only one rollup index, not multiple. There is no restriction on the
77-
number of standard indices that an index pattern can match.
85+
To query across all {es} clusters that have been configured for {ccs},
86+
use a standalone wildcard for your cluster name in your index
87+
pattern: `*:logstash-*`.
7888

79-
See <<visualize-rollup-data, Creating a visualization using rolled up data>>
80-
for more detailed information.
89+
Once an index pattern is configured using the {ccs} syntax, all searches and
90+
aggregations using that index pattern in {kib} take advantage of {ccs}.
8191

8292
[float]
8393
=== Manage your index pattern
8494

85-
Once you’ve created an index pattern, you’re presented a table of all fields
86-
and associated data types in the index.
95+
Once you create an index pattern, manually or with a sample data set,
96+
you can look at its fields and associated data types.
97+
You can also perform housekeeping tasks, such as making the
98+
index pattern the default or deleting it when you longer need it.
99+
To drill down into the details of an index pattern, click its name in
100+
the *Index patterns* overview.
87101

88102
[role="screenshot"]
89103
image:management/index-patterns/images/new-index-pattern.png["Index files and data types"]
90104

91-
You can perform the following actions:
105+
From the detailed view, you can perform the following actions:
92106

93-
* *Manage the index fields.* Click a column header to sort the table by that column.
94-
Use the field dropdown menu to limit to display to a specific field.
95-
See <<managing-fields, Managing fields>> for more detailed information.
107+
* *Manage the index fields.* You can add formatters to format values and create
108+
scripted fields.
109+
See <<managing-fields, Managing fields>> for more information.
96110

97-
* [[set-default-pattern]]*Set the default index pattern.* {kib} uses a badge to make users
98-
aware of which index pattern is the default. The first pattern
99-
you create is automatically designated as the default pattern. The default
100-
index pattern is loaded when you view the Discover tab.
111+
* [[set-default-pattern]]*Set the default index pattern.* {kib} uses a badge to make users
112+
aware of which index pattern is the default. The first pattern
113+
you create is automatically designated as the default pattern. The default
114+
index pattern is loaded when you open *Discover*.
101115

102-
* [[reload-fields]]*Reload the index fields list.* You can reload the index fields list to
103-
pick up any newly-added fields. Doing so also resets Kibana’s popularity counters
104-
for the fields. The popularity counters keep track of the fields
105-
you’ve used most often in {kib} and are used to sort fields in lists.
116+
* [[reload-fields]]*Refresh the index fields list.* You can refresh the index fields list to
117+
pick up any newly-added fields. Doing so also resets Kibana’s popularity counters
118+
for the fields. The popularity counters are used in *Discover* to sort fields in lists.
106119

107-
* [[delete-pattern]]*Delete the index pattern.* This action removes the pattern from the list of
108-
Saved Objects in {kib}. You will not be able to recover field formatters,
120+
* [[delete-pattern]]*Delete the index pattern.* This action removes the pattern from the list of
121+
Saved Objects in {kib}. You will not be able to recover field formatters,
109122
scripted fields, source filters, and field popularity data associated with the index pattern.
110-
+
111-
Deleting an index pattern breaks all visualizations, saved searches, and
112-
other saved objects that reference the pattern. Deleting an index pattern does
123+
Deleting an index pattern does
113124
not remove any indices or data documents from {es}.
114-
115-
include::index-patterns/management-cross-cluster-search.asciidoc[]
125+
+
126+
WARNING: Deleting an index pattern breaks all visualizations, saved searches, and
127+
other saved objects that reference the pattern.

docs/management/index-patterns/management-cross-cluster-search.asciidoc

Lines changed: 0 additions & 30 deletions
This file was deleted.

docs/user/discover.asciidoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
[partintro]
55
--
6+
67
When you know what your data includes, you can create visualizations
78
that best display that data and build better dashboards.
89
*Discover* enables you to explore your data, find
@@ -99,6 +100,8 @@ or create a direct link to share. The *Save* and *Share* actions are in the men
99100

100101
--
101102

103+
include::{kib-repo-dir}/management/index-patterns.asciidoc[]
104+
102105
include::{kib-repo-dir}/discover/set-time-filter.asciidoc[]
103106

104107
include::{kib-repo-dir}/discover/search.asciidoc[]

docs/user/management.asciidoc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ visualizations, and dashboards.
1313

1414
include::{kib-repo-dir}/management/managing-licenses.asciidoc[]
1515

16-
include::{kib-repo-dir}/management/index-patterns.asciidoc[]
17-
1816
include::{kib-repo-dir}/management/rollups/create_and_manage_rollups.asciidoc[]
1917

2018
include::{kib-repo-dir}/management/index-lifecycle-policies/intro-to-lifecycle-policies.asciidoc[]
@@ -40,4 +38,3 @@ include::{kib-repo-dir}/management/managing-beats.asciidoc[]
4038
include::{kib-repo-dir}/management/managing-remote-clusters.asciidoc[]
4139

4240
include::{kib-repo-dir}/management/snapshot-restore/index.asciidoc[]
43-

docs/user/security/reporting.asciidoc

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,30 @@ that provides read and write privileges in
5757
Go to *Management > Users*, add a new user, and assign the user the built-in
5858
`reporting_user` role and your new custom role, `custom_reporting_user`.
5959

60+
[float]
61+
==== With a custom index
62+
63+
If you are using Reporting with a custom index,
64+
the `xpack.reporting.index` setting should begin
65+
with `.reporting-*`. The default {kib} system user has
66+
`all` privileges against the `.reporting-*` pattern of indices.
67+
68+
[source,js]
69+
xpack.reporting.index: '.reporting-custom-index'
70+
71+
If you use a different pattern for the `xpack.reporting.index` setting,
72+
you must create a custom role with appropriate access to the index, similar
73+
to the following:
74+
75+
. Go to *Management > Roles*, and click *Create role*.
76+
. Name the role `custom-reporting-user`.
77+
. Specify the custom index and assign it the `all` index privilege.
78+
. Go to *Management > Users* and create a new user with
79+
the `kibana_system` role and the `custom-reporting-user` role.
80+
. Configure {kib} to use the new account:
81+
[source,js]
82+
elasticsearch.username: 'custom_kibana_system'
83+
6084
[float]
6185
[[reporting-roles-user-api]]
6286
==== With the user API

0 commit comments

Comments
 (0)