Skip to content

Commit

Permalink
Add .* to kubernetes labels and annotations in fields.yml mapping (#…
Browse files Browse the repository at this point in the history
…13226) (#13284)

* Update labels and annotations object field

(cherry picked from commit 2e4d292)
  • Loading branch information
kaiyan-sheng authored Aug 27, 2019
1 parent 327af63 commit ec44914
Show file tree
Hide file tree
Showing 18 changed files with 32 additions and 26 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ https://github.com/elastic/beats/compare/v7.2.0...7.2[Check the HEAD diff]

*Affecting all Beats*

- Fix mapping for kubernetes.labels and kubernetes.annotations in add_kubernetes_metadata. {issue}12638[12638] {pull}13226[13226]

*Auditbeat*

*Filebeat*
Expand Down
4 changes: 2 additions & 2 deletions auditbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -6417,7 +6417,7 @@ type: keyword
--
*`kubernetes.labels`*::
*`kubernetes.labels.*`*::
+
--
Kubernetes labels map
Expand All @@ -6427,7 +6427,7 @@ type: object
--
*`kubernetes.annotations`*::
*`kubernetes.annotations.*`*::
+
--
Kubernetes annotations map
Expand Down
2 changes: 1 addition & 1 deletion auditbeat/include/fields.go

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions filebeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -7109,7 +7109,7 @@ type: keyword
--
*`kubernetes.labels`*::
*`kubernetes.labels.*`*::
+
--
Kubernetes labels map
Expand All @@ -7119,7 +7119,7 @@ type: object
--
*`kubernetes.annotations`*::
*`kubernetes.annotations.*`*::
+
--
Kubernetes annotations map
Expand Down
2 changes: 1 addition & 1 deletion filebeat/include/fields.go

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions heartbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -3856,7 +3856,7 @@ type: keyword
--
*`kubernetes.labels`*::
*`kubernetes.labels.*`*::
+
--
Kubernetes labels map
Expand All @@ -3866,7 +3866,7 @@ type: object
--
*`kubernetes.annotations`*::
*`kubernetes.annotations.*`*::
+
--
Kubernetes annotations map
Expand Down
2 changes: 1 addition & 1 deletion heartbeat/include/fields.go

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions journalbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4260,7 +4260,7 @@ type: keyword
--
*`kubernetes.labels`*::
*`kubernetes.labels.*`*::
+
--
Kubernetes labels map
Expand All @@ -4270,7 +4270,7 @@ type: object
--
*`kubernetes.annotations`*::
*`kubernetes.annotations.*`*::
+
--
Kubernetes annotations map
Expand Down
2 changes: 1 addition & 1 deletion journalbeat/include/fields.go

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions libbeat/processors/add_kubernetes_metadata/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,17 @@
description: >
Kubernetes node name
- name: labels
- name: labels.*
type: object
object_type: keyword
object_type_mapping_type: "*"
description: >
Kubernetes labels map
- name: annotations
- name: annotations.*
type: object
object_type: keyword
object_type_mapping_type: "*"
description: >
Kubernetes annotations map
Expand Down
4 changes: 2 additions & 2 deletions metricbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -12656,7 +12656,7 @@ type: keyword
--
*`kubernetes.labels`*::
*`kubernetes.labels.*`*::
+
--
Kubernetes labels map
Expand All @@ -12666,7 +12666,7 @@ type: object
--
*`kubernetes.annotations`*::
*`kubernetes.annotations.*`*::
+
--
Kubernetes annotations map
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/include/fields/fields.go

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packetbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -5832,7 +5832,7 @@ type: keyword
--
*`kubernetes.labels`*::
*`kubernetes.labels.*`*::
+
--
Kubernetes labels map
Expand All @@ -5842,7 +5842,7 @@ type: object
--
*`kubernetes.annotations`*::
*`kubernetes.annotations.*`*::
+
--
Kubernetes annotations map
Expand Down
2 changes: 1 addition & 1 deletion packetbeat/include/fields.go

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions winlogbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -3750,7 +3750,7 @@ type: keyword
--
*`kubernetes.labels`*::
*`kubernetes.labels.*`*::
+
--
Kubernetes labels map
Expand All @@ -3760,7 +3760,7 @@ type: object
--
*`kubernetes.annotations`*::
*`kubernetes.annotations.*`*::
+
--
Kubernetes annotations map
Expand Down
2 changes: 1 addition & 1 deletion winlogbeat/include/fields.go

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions x-pack/functionbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -3567,7 +3567,7 @@ type: keyword
--
*`kubernetes.labels`*::
*`kubernetes.labels.*`*::
+
--
Kubernetes labels map
Expand All @@ -3577,7 +3577,7 @@ type: object
--
*`kubernetes.annotations`*::
*`kubernetes.annotations.*`*::
+
--
Kubernetes annotations map
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 ec44914

Please sign in to comment.