Skip to content

Commit

Permalink
Add missing host.* fields to fields.yml (elastic#11016)
Browse files Browse the repository at this point in the history
The `add_host_metadata` processor (default since 6.5) fills the fields `host.os.build` and `host.containerized`, but there is no entry for them in `fields.yml` so they are missing from the generated index patterns.

This adds them to `add_host_metadata/_meta/fields.yml`.

elastic#10992 already addressed this for 6.7.
(cherry picked from commit 091a673)
  • Loading branch information
Christoph Wurm committed Mar 5, 2019
1 parent e5c2aec commit 2a9ded6
Show file tree
Hide file tree
Showing 18 changed files with 219 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Fix encoding of timestamps when using disk spool. {issue}10099[10099]
- Fix stopping of modules started by kubernetes autodiscover. {pull}10476[10476]
- Fix a issue when remote and local configuration didn't match when fetching configuration from Central Management. {issue}10587[10587]
- Add missing host.* fields to fields.yml. {pull}11016[11016]

*Auditbeat*

Expand Down
24 changes: 24 additions & 0 deletions auditbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -6117,6 +6117,30 @@ XX64 hash of the file.
Info collected for the host machine.
*`host.containerized`*::
+
--
type: boolean
If the host is a container.
--
*`host.os.build`*::
+
--
type: keyword
example: 18D109
OS build information.
--
[[exported-fields-kubernetes-processor]]
== Kubernetes fields
Expand Down
2 changes: 1 addition & 1 deletion auditbeat/include/fields.go

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions filebeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -5357,6 +5357,30 @@ Total time in milliseconds elapsed between the accept and the last close
Info collected for the host machine.
*`host.containerized`*::
+
--
type: boolean
If the host is a container.
--
*`host.os.build`*::
+
--
type: keyword
example: 18D109
OS build information.
--
[[exported-fields-icinga]]
== Icinga fields
Expand Down
2 changes: 1 addition & 1 deletion filebeat/include/fields.go

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions heartbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -3383,6 +3383,30 @@ Hostname of the agent.
Info collected for the host machine.
*`host.containerized`*::
+
--
type: boolean
If the host is a container.
--
*`host.os.build`*::
+
--
type: keyword
example: 18D109
OS build information.
--
[[exported-fields-http]]
== HTTP monitor fields
Expand Down
2 changes: 1 addition & 1 deletion heartbeat/include/fields.go

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions journalbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -3960,6 +3960,30 @@ Hostname of the agent.
Info collected for the host machine.
*`host.containerized`*::
+
--
type: boolean
If the host is a container.
--
*`host.os.build`*::
+
--
type: keyword
example: 18D109
OS build information.
--
[[exported-fields-kubernetes-processor]]
== Kubernetes fields
Expand Down
2 changes: 1 addition & 1 deletion journalbeat/include/fields.go

Large diffs are not rendered by default.

19 changes: 18 additions & 1 deletion libbeat/processors/add_host_metadata/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,21 @@
description: >
Info collected for the host machine.
anchor: host-processor
fields: {}
fields:

# ECS fields are in fields.ecs.yml.
# These are the non-ECS fields.
- name: host
type: group
fields:

- name: containerized
type: boolean
description: >
If the host is a container.
- name: os.build
type: keyword
example: "18D109"
description: >
OS build information.
24 changes: 24 additions & 0 deletions metricbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -10566,6 +10566,30 @@ The average queue time in ms over the last 1024 requests.
Info collected for the host machine.
*`host.containerized`*::
+
--
type: boolean
If the host is a container.
--
*`host.os.build`*::
+
--
type: keyword
example: 18D109
OS build information.
--
[[exported-fields-http]]
== HTTP fields
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/include/fields/fields.go

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions packetbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -5383,6 +5383,30 @@ alias to: destination.packets
Info collected for the host machine.
*`host.containerized`*::
+
--
type: boolean
If the host is a container.
--
*`host.os.build`*::
+
--
type: keyword
example: 18D109
OS build information.
--
[[exported-fields-http]]
== HTTP fields
Expand Down
2 changes: 1 addition & 1 deletion packetbeat/include/fields.go

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions winlogbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -3450,6 +3450,30 @@ alias to: event.original
Info collected for the host machine.
*`host.containerized`*::
+
--
type: boolean
If the host is a container.
--
*`host.os.build`*::
+
--
type: keyword
example: 18D109
OS build information.
--
[[exported-fields-kubernetes-processor]]
== Kubernetes fields
Expand Down
2 changes: 1 addition & 1 deletion winlogbeat/include/fields.go

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions x-pack/functionbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -3267,6 +3267,30 @@ None
Info collected for the host machine.
*`host.containerized`*::
+
--
type: boolean
If the host is a container.
--
*`host.os.build`*::
+
--
type: keyword
example: 18D109
OS build information.
--
[[exported-fields-kubernetes-processor]]
== Kubernetes fields
Expand Down
2 changes: 1 addition & 1 deletion x-pack/functionbeat/include/fields.go

Large diffs are not rendered by default.

0 comments on commit 2a9ded6

Please sign in to comment.