diff --git a/metricbeat/docs/fields.asciidoc b/metricbeat/docs/fields.asciidoc index 95b723445ee3..f888d580077d 100644 --- a/metricbeat/docs/fields.asciidoc +++ b/metricbeat/docs/fields.asciidoc @@ -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 diff --git a/x-pack/libbeat/common/cloudfoundry/events.go b/x-pack/libbeat/common/cloudfoundry/events.go index ae038aadead3..c588491f6f7e 100644 --- a/x-pack/libbeat/common/cloudfoundry/events.go +++ b/x-pack/libbeat/common/cloudfoundry/events.go @@ -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), }, diff --git a/x-pack/metricbeat/module/cloudfoundry/_meta/fields.yml b/x-pack/metricbeat/module/cloudfoundry/_meta/fields.yml index 0190cac342e9..83cc074363e5 100644 --- a/x-pack/metricbeat/module/cloudfoundry/_meta/fields.yml +++ b/x-pack/metricbeat/module/cloudfoundry/_meta/fields.yml @@ -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: > diff --git a/x-pack/metricbeat/module/cloudfoundry/fields.go b/x-pack/metricbeat/module/cloudfoundry/fields.go index 1d3e678ea942..7372653df2b5 100644 --- a/x-pack/metricbeat/module/cloudfoundry/fields.go +++ b/x-pack/metricbeat/module/cloudfoundry/fields.go @@ -19,5 +19,5 @@ func init() { // AssetCloudfoundry returns asset data. // This is the base64 encoded gzipped contents of module/cloudfoundry. func AssetCloudfoundry() string { - return "eJzclbFy2zAQRHt+xY178wNYpIgzmXGXwqljCFhKGIEAAxwk8+8zoESbpCDFCWUVVqHiAL5d7uGIe9qiq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