mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
[Backport][Doc]Relocate logstash-to-cloud info for increased visibility (#12400)
Moves Cloud info to Configuration section to make it more obvious and easier to find Expands content for using cloud id and cloud auth outside of modules Moves module-specific info into modules section Backports #11884 to 7.x
This commit is contained in:
parent
c96543b010
commit
50428785cf
3 changed files with 73 additions and 35 deletions
|
@ -105,7 +105,10 @@ include::static/configuration.asciidoc[]
|
|||
:edit_url!:
|
||||
include::static/security/logstash.asciidoc[]
|
||||
|
||||
// Advanced Logstash Configurion
|
||||
:edit_url!:
|
||||
include::static/ls-to-cloud.asciidoc[]
|
||||
|
||||
// Advanced Logstash Configuration
|
||||
|
||||
:edit_url!:
|
||||
include::static/configuration-advanced.asciidoc[]
|
||||
|
|
54
docs/static/ls-to-cloud.asciidoc
vendored
Normal file
54
docs/static/ls-to-cloud.asciidoc
vendored
Normal file
|
@ -0,0 +1,54 @@
|
|||
[[connecting-to-cloud]]
|
||||
=== Sending data to Elasticsearch Service
|
||||
|
||||
Our hosted Elasticsearch Service is available on AWS, GCP, and Azure.
|
||||
{ess-trial}[You can try the Elasticsearch Service for free].
|
||||
|
||||
Logstash comes with two settings that simplify sending data to
|
||||
https://cloud.elastic.co/[Elastic Cloud]: Cloud ID and Cloud Auth.
|
||||
|
||||
[[cloud-id]]
|
||||
==== Cloud ID
|
||||
|
||||
{ls} uses the Cloud ID, found in the Elastic Cloud web console, to build the
|
||||
Elasticsearch and Kibana hosts settings. It is a base64 encoded text value of
|
||||
about 120 characters made up of upper and lower case letters and numbers.
|
||||
If you have several Cloud IDs, you can add a label, which is ignored
|
||||
internally, to help you tell them apart. To add a label you should prefix your
|
||||
Cloud ID with a label and a `:` separator in this format "<label>:<cloud-id>"
|
||||
|
||||
[[cloud-auth]]
|
||||
==== Cloud Auth
|
||||
Cloud Auth is optional. Construct this value by following this format "<username>:<password>".
|
||||
Use your Cloud username for the first part. Use your Cloud password for the second part,
|
||||
which is given once in the Cloud UI when you create a cluster.
|
||||
If you change your Cloud password in the Cloud UI, remember to change it here, too.
|
||||
|
||||
[[cloud-id-plugins]]
|
||||
==== Using Cloud ID and Cloud Auth with plugins
|
||||
|
||||
The Elasticsearch input, output, and filter plugins support cloud_id and
|
||||
cloud_auth in their configurations.
|
||||
|
||||
* <<plugins-inputs-elasticsearch-cloud_id,Elasticsearch input plugin>>
|
||||
* <<plugins-filters-elasticsearch-cloud_id,Elasticsearch filter plugin>>
|
||||
* <<plugins-outputs-elasticsearch-cloud_id,Elasticsearch output plugin>>
|
||||
|
||||
|
||||
[[cloud-id-mgmt]]
|
||||
==== Sending {ls} management data to {es} Services
|
||||
|
||||
These settings in the `logstash.yml` config file can help you get set up to send
|
||||
management data to Elastic Cloud:
|
||||
|
||||
* `xpack.management.elasticsearch.cloud_id`
|
||||
* `xpack.management.elasticsearch.cloud_auth`
|
||||
|
||||
You can use the `xpack.management.elasticsearch.cloud_id` setting as an alternative to
|
||||
`xpack.management.elasticsearch.hosts`.
|
||||
|
||||
You can use the `xpack.management.elasticsearch.cloud_auth` setting as an
|
||||
alternative to both `xpack.management.elasticsearch.username` and
|
||||
`xpack.management.elasticsearch.password`.
|
||||
The credentials you specify here should be for a user with the logstash_admin
|
||||
role, which provides access to .logstash-* indices for managing configurations.
|
49
docs/static/modules.asciidoc
vendored
49
docs/static/modules.asciidoc
vendored
|
@ -6,7 +6,6 @@ visualizing it with purpose-built dashboards.
|
|||
|
||||
These modules are available:
|
||||
|
||||
* <<connecting-to-cloud,Elastic Cloud>>
|
||||
* <<arcsight-module>>
|
||||
* <<netflow-module,Netflow Module (deprecated)>>
|
||||
* <<azure-module, Microsoft Azure Module (deprecated)>>
|
||||
|
@ -28,7 +27,7 @@ the data.
|
|||
|
||||
image::static/images/logstash-module-overview.png[Logstash modules overview]
|
||||
|
||||
[float]
|
||||
[discrete]
|
||||
[[running-logstash-modules]]
|
||||
=== Running modules
|
||||
|
||||
|
@ -72,7 +71,7 @@ bin/logstash --modules netflow -M "netflow.var.elasticsearch.host=es.mycloud.com
|
|||
----
|
||||
|
||||
|
||||
[float]
|
||||
[discrete]
|
||||
[[configuring-logstash-modules]]
|
||||
=== Configuring modules
|
||||
|
||||
|
@ -81,7 +80,7 @@ To configure a module, you can either
|
|||
`logstash.yml` <<logstash-settings-file,settings file>>, or use command-line overrides to
|
||||
<<overriding-logstash-module-settings,specify settings at the command line>>.
|
||||
|
||||
[float]
|
||||
[discrete]
|
||||
[[setting-logstash-module-config]]
|
||||
==== Specify module settings in `logstash.yml`
|
||||
|
||||
|
@ -106,7 +105,7 @@ modules:
|
|||
|
||||
For a list of available module settings, see the documentation for the module.
|
||||
|
||||
[float]
|
||||
[discrete]
|
||||
[[overriding-logstash-module-settings]]
|
||||
==== Specify module settings at the command line
|
||||
|
||||
|
@ -164,36 +163,20 @@ Settings that you specify at the command line are merged with any settings
|
|||
specified in the `logstash.yml` file. If an option is set in both
|
||||
places, the value specified at the command line takes precedence.
|
||||
|
||||
[[connecting-to-cloud]]
|
||||
=== Using Elastic Cloud
|
||||
[discrete]
|
||||
[[module-to-cloud]]
|
||||
==== Sending data to Elasticsearch Service from modules
|
||||
|
||||
Logstash comes with two settings that simplify using modules with https://cloud.elastic.co/[Elastic Cloud].
|
||||
The Elasticsearch and Kibana hostnames in Elastic Cloud may be hard to set
|
||||
in the Logstash config or on the commandline, so a Cloud ID can be used instead.
|
||||
Cloud ID and Cloud Auth can be specified in the `logstash.yml` <<logstash-settings-file,settings file>>.
|
||||
They should be added separately from any module configuration settings you may have added before.
|
||||
|
||||
==== Cloud ID
|
||||
|
||||
The Cloud ID, which can be found in the Elastic Cloud web console, is used by
|
||||
Logstash to build the Elasticsearch and Kibana hosts settings.
|
||||
It is a base64 encoded text value of about 120 characters made up of upper and
|
||||
lower case letters and numbers.
|
||||
If you have several Cloud IDs, you can add a label, which is ignored
|
||||
internally, to help you tell them apart. To add a label you should prefix your
|
||||
Cloud ID with a label and a `:` separator in this format "<label>:<cloud-id>"
|
||||
|
||||
`cloud.id` will overwrite these settings:
|
||||
Cloud ID overwrites these settings:
|
||||
----
|
||||
var.elasticsearch.hosts
|
||||
var.kibana.host
|
||||
----
|
||||
|
||||
==== Cloud Auth
|
||||
This is optional. Construct this value by following this format "<username>:<password>".
|
||||
Use your Cloud username for the first part. Use your Cloud password for the second part,
|
||||
which is given once in the Cloud UI when you create a cluster.
|
||||
As your Cloud password is changeable, if you change it in the Cloud UI remember to change it here too.
|
||||
|
||||
`cloud.auth` when specified will overwrite these settings:
|
||||
Cloud Auth overwrites these settings:
|
||||
----
|
||||
var.elasticsearch.username
|
||||
var.elasticsearch.password
|
||||
|
@ -201,11 +184,6 @@ var.kibana.username
|
|||
var.kibana.password
|
||||
----
|
||||
|
||||
Example:
|
||||
|
||||
These settings can be specified in the `logstash.yml` <<logstash-settings-file,settings file>>.
|
||||
They should be added separately from any module configuration settings you may have added before.
|
||||
|
||||
["source","yaml",subs="attributes"]
|
||||
----
|
||||
# example with a label
|
||||
|
@ -224,7 +202,10 @@ These settings can be also specified at the command line, like this:
|
|||
|
||||
["source","sh",subs="attributes,callouts"]
|
||||
----
|
||||
bin/logstash --modules netflow -M "netflow.var.input.udp.port=3555" --cloud.id <cloud-id> --cloud.auth <cloud.auth>
|
||||
bin/logstash --modules netflow -M "netflow.var.input.udp.port=3555" --cloud.id <your-cloud-id> --cloud.auth <your-cloud-auth>
|
||||
----
|
||||
|
||||
NOTE: When working with modules, use the dot notation to specify cloud.id and
|
||||
cloud.auth, as indicated in the examples.
|
||||
|
||||
For more info on Cloud ID and Cloud Auth, see <<connecting-to-cloud>>.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue