Skip to content

Commit

Permalink
Add event.dataset to events from cloudfoundry filebeat input (#17029) (
Browse files Browse the repository at this point in the history
…#17096)

* Use cloudfoundry.type.

* Add possible values from cloudfoundry.type and fix String() call.

(cherry picked from commit a86bf32)
  • Loading branch information
blakerouse committed Mar 19, 2020
1 parent e818bf8 commit cf18846
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
10 changes: 10 additions & 0 deletions metricbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4633,6 +4633,16 @@ Cloud Foundry module
*`cloudfoundry.type`*::
+
--
The type of event from Cloud Foundry. Possible values include 'container', 'counter' and 'value'.
type: keyword
--
[float]
=== app
Expand Down
2 changes: 1 addition & 1 deletion x-pack/libbeat/common/cloudfoundry/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -492,9 +492,9 @@ func envelopMap(evt Event) common.MapStr {
func baseMap(evt Event) common.MapStr {
return common.MapStr{
"cloudfoundry": common.MapStr{
"type": evt.String(),
evt.String(): common.MapStr{
"timestamp": evt.Timestamp(),
"type": evt.String(),
},
"envelope": envelopMap(evt),
},
Expand Down
5 changes: 5 additions & 0 deletions x-pack/metricbeat/module/cloudfoundry/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
type: group
description: >
fields:
- name: type
type: keyword
description: >
The type of event from Cloud Foundry.
Possible values include 'container', 'counter' and 'value'.
- name: app
type: group
description: >
Expand Down
2 changes: 1 addition & 1 deletion x-pack/metricbeat/module/cloudfoundry/fields.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cf18846

Please sign in to comment.