[DOCS] Fixed cross cluster search docs issue (elastic/x-pack-elasticsearch#3113)

Original commit: elastic/x-pack-elasticsearch@023d220082
This commit is contained in:
Lisa Cawley 2017-11-27 07:56:38 -08:00 committed by GitHub
parent 6406c9816a
commit 5507c46257
2 changed files with 13 additions and 6 deletions

View File

@ -29,7 +29,6 @@ buildRestTests.expectedUnconvertedCandidates = [
'en/security/tribe-clients-integrations/beats.asciidoc',
'en/security/tribe-clients-integrations/http.asciidoc',
'en/security/tribe-clients-integrations/monitoring.asciidoc',
'en/security/tribe-clients-integrations/cross-cluster.asciidoc',
'en/security/authorization/custom-roles-provider.asciidoc',
'en/watcher/actions/email.asciidoc',
'en/watcher/actions/hipchat.asciidoc',

View File

@ -17,9 +17,8 @@ is allowed to access.
[WARNING]
This feature was added as Beta in Elasticsearch `v5.3` with further
improvements made in 5.4 and 5.5. It requires gateway eligible nodes to be on
`v5.5` onwards.
This feature was added as Beta in {es} `v5.3` with further improvements made in
5.4 and 5.5. It requires gateway eligible nodes to be on `v5.5` onwards.
To use cross cluster search with secured clusters:
@ -42,6 +41,7 @@ To use cross cluster search with secured clusters:
For example, the following configuration adds two remote clusters
to the local cluster:
+
--
[source,js]
-----------------------------------------------------------
PUT _cluster/settings
@ -60,6 +60,8 @@ PUT _cluster/settings
}
}
-----------------------------------------------------------
// CONSOLE
--
* On the local cluster, ensure that users are assigned to (at least) one role
that exists on the remote clusters. On the remote clusters, use that role
@ -75,13 +77,14 @@ First, enable cluster `one` to perform cross cluster search on remote cluster
[source,js]
-----------------------------------------------------------
PUT _cluster_settings
PUT _cluster/settings
{
"persistent": {
"search.remote.two.seeds": [ "10.0.2.1:9300" ]
"search.remote.cluster_two.seeds": [ "10.0.2.1:9300" ]
}
}
-----------------------------------------------------------
// CONSOLE
Next, set up a role called `cluster_two_logs` on both cluster `one` and
cluster `two`.
@ -94,6 +97,7 @@ POST /_xpack/security/role/cluster_two_logs
{
}
-----------------------------------------------------------
// CONSOLE
On cluster `two`, this role allows the user to query local indices called
`logs-` from a remote cluster:
@ -118,6 +122,7 @@ POST /_xpack/security/role/cluster_two_logs
]
}
-----------------------------------------------------------
// CONSOLE
Finally, create a user on cluster `one` and apply the `cluster_two_logs` role:
@ -132,6 +137,7 @@ POST /_xpack/security/user/alice
"enabled": true
}
-----------------------------------------------------------
// CONSOLE
With all of the above setup, the user `alice` is able to search indices in
cluster `two` as follows:
@ -145,6 +151,8 @@ GET two:logs-2017.04/_search <1>
}
}
-----------------------------------------------------------
// CONSOLE
// TEST[skip:todo]
//TBD: Is there a missing description of the <1> callout above?
include::{xkb-repo-dir}/security/cross-cluster-kibana.asciidoc[]