Skip to content

Commit

Permalink
[zookeeper] set event.module and event.dataset (elastic#1248)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiyan-sheng authored and james-elastic committed Jun 30, 2021
1 parent d78001f commit 50aa702
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 38 deletions.
5 changes: 5 additions & 0 deletions packages/zookeeper/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "0.3.0"
changes:
- description: Set "event.module" and "event.dataset"
type: enhancement
link: https://github.com/elastic/integrations/pull/1248
- version: "0.2.7"
changes:
- description: Updating package owner
Expand Down
17 changes: 8 additions & 9 deletions packages/zookeeper/data_stream/connection/fields/base-fields.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
- name: data_stream.type
type: constant_keyword
description: Data stream type.
- name: data_stream.dataset
type: constant_keyword
description: Data stream dataset.
- name: data_stream.namespace
type: constant_keyword
description: Data stream namespace.
- name: '@timestamp'
type: date
description: Event timestamp.
- name: event.module
type: constant_keyword
description: Event module
value: zookeeper
- name: event.dataset
type: constant_keyword
description: Event dataset
value: zookeeper.connection
17 changes: 8 additions & 9 deletions packages/zookeeper/data_stream/mntr/fields/base-fields.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
- name: data_stream.type
type: constant_keyword
description: Data stream type.
- name: data_stream.dataset
type: constant_keyword
description: Data stream dataset.
- name: data_stream.namespace
type: constant_keyword
description: Data stream namespace.
- name: '@timestamp'
type: date
description: Event timestamp.
- name: event.module
type: constant_keyword
description: Event module
value: zookeeper
- name: event.dataset
type: constant_keyword
description: Event dataset
value: zookeeper.mntr
17 changes: 8 additions & 9 deletions packages/zookeeper/data_stream/server/fields/base-fields.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
- name: data_stream.type
type: constant_keyword
description: Data stream type.
- name: data_stream.dataset
type: constant_keyword
description: Data stream dataset.
- name: data_stream.namespace
type: constant_keyword
description: Data stream namespace.
- name: '@timestamp'
type: date
description: Event timestamp.
- name: event.module
type: constant_keyword
description: Event module
value: zookeeper
- name: event.dataset
type: constant_keyword
description: Event dataset
value: zookeeper.server
15 changes: 6 additions & 9 deletions packages/zookeeper/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,9 @@ An example event for `connection` looks as following:
| container.image.name | Name of the image the container was built on. | keyword |
| container.labels | Image labels. | object |
| container.name | Container name. | keyword |
| data_stream.dataset | Data stream dataset. | constant_keyword |
| data_stream.namespace | Data stream namespace. | constant_keyword |
| data_stream.type | Data stream type. | constant_keyword |
| ecs.version | ECS version | keyword |
| event.dataset | Event dataset | constant_keyword |
| event.module | Event module | constant_keyword |
| host.architecture | Operating system architecture. | keyword |
| host.containerized | If the host is a container. | boolean |
| host.domain | Name of the domain of which the host is a member. For example, on Windows this could be the host's Active Directory domain or NetBIOS domain name. For Linux this could be the domain of the host's LDAP provider. | keyword |
Expand Down Expand Up @@ -185,10 +184,9 @@ An example event for `mntr` looks as following:
| container.image.name | Name of the image the container was built on. | keyword |
| container.labels | Image labels. | object |
| container.name | Container name. | keyword |
| data_stream.dataset | Data stream dataset. | constant_keyword |
| data_stream.namespace | Data stream namespace. | constant_keyword |
| data_stream.type | Data stream type. | constant_keyword |
| ecs.version | ECS version | keyword |
| event.dataset | Event dataset | constant_keyword |
| event.module | Event module | constant_keyword |
| host.architecture | Operating system architecture. | keyword |
| host.containerized | If the host is a container. | boolean |
| host.domain | Name of the domain of which the host is a member. For example, on Windows this could be the host's Active Directory domain or NetBIOS domain name. For Linux this could be the domain of the host's LDAP provider. | keyword |
Expand Down Expand Up @@ -304,10 +302,9 @@ An example event for `server` looks as following:
| container.image.name | Name of the image the container was built on. | keyword |
| container.labels | Image labels. | object |
| container.name | Container name. | keyword |
| data_stream.dataset | Data stream dataset. | constant_keyword |
| data_stream.namespace | Data stream namespace. | constant_keyword |
| data_stream.type | Data stream type. | constant_keyword |
| ecs.version | ECS version | keyword |
| event.dataset | Event dataset | constant_keyword |
| event.module | Event module | constant_keyword |
| host.architecture | Operating system architecture. | keyword |
| host.containerized | If the host is a container. | boolean |
| host.domain | Name of the domain of which the host is a member. For example, on Windows this could be the host's Active Directory domain or NetBIOS domain name. For Linux this could be the domain of the host's LDAP provider. | keyword |
Expand Down
4 changes: 2 additions & 2 deletions packages/zookeeper/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: zookeeper
title: ZooKeeper
version: 0.2.7
version: 0.3.0
description: ZooKeeper Integration
type: integration
icons:
Expand All @@ -15,7 +15,7 @@ categories:
- config_management
release: experimental
conditions:
kibana.version: '^7.9.0'
kibana.version: '^7.14.0'
screenshots:
- src: /img/metricbeat-zookeeper.png
title: Metricbeat ZooKeeper
Expand Down

0 comments on commit 50aa702

Please sign in to comment.