Skip to content

Commit

Permalink
Use cloudfoundry.type.
Browse files Browse the repository at this point in the history
  • Loading branch information
blakerouse committed Mar 18, 2020
1 parent 578e9b8 commit 66cfd29
Show file tree
Hide file tree
Showing 4 changed files with 16 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.
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
4 changes: 4 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,10 @@
type: group
description: >
fields:
- name: type
type: keyword
description: >
The type of event from Cloud Foundry.
- 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 66cfd29

Please sign in to comment.