Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update configs for old beat.* fields #10370

Merged
merged 1 commit into from
Jan 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libbeat/docs/generalconfig.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ tags: ["service-X", "web-tier"]
==== `name`

The name of the Beat. If this option is empty, the `hostname` of the server is
used. The name is included as the `beat.name` field in each published transaction. You can
used. The name is included as the `agent.name` field in each published transaction. You can
use the name to group all transactions sent by a single Beat.

Example:
Expand Down
4 changes: 2 additions & 2 deletions libbeat/docs/shared-config-ingest.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ named `pipeline.json`:
"processors": [
{
"lowercase": {
"field": "beat.name"
"field": "agent.name"
}
}
]
Expand All @@ -65,7 +65,7 @@ output.elasticsearch:
pipeline: "test-pipeline"
------------------------------------------------------------------------------

When you run {beatname_uc}, the value of `beat.name` is converted to lowercase before indexing.
When you run {beatname_uc}, the value of `agent.name` is converted to lowercase before indexing.

For more information about defining a pre-processing pipeline, see the
{elasticsearch}/ingest.html[Ingest Node] documentation.
4 changes: 2 additions & 2 deletions libbeat/docs/shared-ilm.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ template to use the correct settings for index lifecycle management.
NOTE: If you've previously loaded the index template for this version into {es},
you must overwrite the template by setting `setup.template.overwrite: true`.

The rollover alias is set to +{beatname_lc}-\{beat.version\}+ by default. You
The rollover alias is set to +{beatname_lc}-\{agent.version\}+ by default. You
can change the prefix used in the alias by setting `ilm.rollover_alias`, but you
can't remove `{beat.version}` from the rollover alias name. The default pattern
can't remove `{agent.version}` from the rollover alias name. The default pattern
used for the rollover index is `%{now/d}-000001`. You can change the
pattern by setting `ilm.pattern`. For example:

Expand Down
2 changes: 1 addition & 1 deletion libbeat/docs/shared-template-load.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ date information. You also need to configure the `setup.template.name` and
+
["source","sh",subs="attributes,callouts"]
-----
output.elasticsearch.index: "customname-%{[beat.version]}-%{+yyyy.MM.dd}"
output.elasticsearch.index: "customname-%{[agent.version]}-%{+yyyy.MM.dd}"
setup.template.name: "customname"
setup.template.pattern: "customname-*"
-----
Expand Down
25 changes: 12 additions & 13 deletions metricbeat/docs/how-metricbeat-works.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -46,27 +46,26 @@ For more about the benefits of using Metricbeat, see <<key-features>>.
Every event sent by Metricbeat has the same basic structure. It contains the following fields:

*`@timestamp`*:: Time when the event was captured
*`beat.hostname`*:: Hostname of the server on which the Beat is running
*`beat.name`*:: Name given to the Beat
*`metricset.module`*:: Name of the module that the data is from
*`metricset.name`*:: Name of the metricset that the data is from
*`metricset.rtt`*:: Round trip time of the request in microseconds
*`type`*:: This is always "metricsets"
*`host.hostname`*:: Hostname of the server on which the Beat is running
*`agent.type`*:: Name given to the Beat
*`event.module`*:: Name of the module that the data is from
*`event.dataset`*:: Name of the module that the data is from

For example:

[source,json]
----
{
"@timestamp": "2016-06-22T22:05:53.291Z",
"beat": {
"hostname": "host.example.com",
"name": "host.example.com"
"agent": {
"type": "metricbeat"
},
"metricset": {
"module": "system",
"name": "process",
"rtt": 7419
"host": {
"hostname": "host.example.com",
},
"event": {
"dataset": "system.process",
"module": process
},
.
.
Expand Down
4 changes: 2 additions & 2 deletions metricbeat/docs/metricbeat-filtering.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
include::{libbeat-dir}/docs/processors.asciidoc[]

For example, the following configuration reduces the exported fields by
dropping the `beat.name` and `beat.hostname` fields under `beat` from all documents.
dropping the `agent.name` and `agent.version` fields under `beat` from all documents.

[source, yaml]
----
processors:
- drop_fields:
fields: ['beat']
fields: ['agent']
----

include::{libbeat-dir}/docs/processors-using.asciidoc[]