Skip to content

Commit

Permalink
[Linux] set event.module and event.dataset (#1241)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtojek committed Jun 29, 2021
1 parent 52ae7e3 commit 97ac8aa
Show file tree
Hide file tree
Showing 14 changed files with 108 additions and 3 deletions.
5 changes: 5 additions & 0 deletions packages/linux/changelog.yml
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "0.4.0"
changes:
- description: Set "event.module" and "event.dataset
type: enhancement
link: https://github.com/elastic/integrations/pull/1241
- version: "0.3.10"
changes:
- description: Enable some Linux datastreams by default
Expand Down
8 changes: 8 additions & 0 deletions packages/linux/data_stream/conntrack/fields/base-fields.yml
Expand Up @@ -10,3 +10,11 @@
- name: '@timestamp'
type: date
description: Event timestamp.
- name: event.module
type: constant_keyword
description: Event module
value: linux
- name: event.dataset
type: constant_keyword
description: Event dataset
value: linux.conntrack
8 changes: 8 additions & 0 deletions packages/linux/data_stream/entropy/fields/base-fields.yml
Expand Up @@ -10,3 +10,11 @@
- name: '@timestamp'
type: date
description: Event timestamp.
- name: event.module
type: constant_keyword
description: Event module
value: linux
- name: event.dataset
type: constant_keyword
description: Event dataset
value: linux.entropy
8 changes: 8 additions & 0 deletions packages/linux/data_stream/iostat/fields/base-fields.yml
Expand Up @@ -10,3 +10,11 @@
- name: '@timestamp'
type: date
description: Event timestamp.
- name: event.module
type: constant_keyword
description: Event module
value: linux
- name: event.dataset
type: constant_keyword
description: Event dataset
value: linux.iostat
8 changes: 8 additions & 0 deletions packages/linux/data_stream/ksm/fields/base-fields.yml
Expand Up @@ -10,3 +10,11 @@
- name: '@timestamp'
type: date
description: Event timestamp.
- name: event.module
type: constant_keyword
description: Event module
value: linux
- name: event.dataset
type: constant_keyword
description: Event dataset
value: linux.ksm
8 changes: 8 additions & 0 deletions packages/linux/data_stream/memory/fields/base-fields.yml
Expand Up @@ -10,3 +10,11 @@
- name: '@timestamp'
type: date
description: Event timestamp.
- name: event.module
type: constant_keyword
description: Event module
value: linux
- name: event.dataset
type: constant_keyword
description: Event dataset
value: linux.memory
Expand Up @@ -10,3 +10,11 @@
- name: '@timestamp'
type: date
description: Event timestamp.
- name: event.module
type: constant_keyword
description: Event module
value: linux
- name: event.dataset
type: constant_keyword
description: Event dataset
value: linux.network_summary
8 changes: 8 additions & 0 deletions packages/linux/data_stream/pageinfo/fields/base-fields.yml
Expand Up @@ -10,3 +10,11 @@
- name: '@timestamp'
type: date
description: Event timestamp.
- name: event.module
type: constant_keyword
description: Event module
value: linux
- name: event.dataset
type: constant_keyword
description: Event dataset
value: linux.pageinfo
8 changes: 8 additions & 0 deletions packages/linux/data_stream/raid/fields/base-fields.yml
Expand Up @@ -10,3 +10,11 @@
- name: '@timestamp'
type: date
description: Event timestamp.
- name: event.module
type: constant_keyword
description: Event module
value: linux
- name: event.dataset
type: constant_keyword
description: Event dataset
value: linux.raid
8 changes: 8 additions & 0 deletions packages/linux/data_stream/service/fields/base-fields.yml
Expand Up @@ -10,3 +10,11 @@
- name: '@timestamp'
type: date
description: Event timestamp.
- name: event.module
type: constant_keyword
description: Event module
value: linux
- name: event.dataset
type: constant_keyword
description: Event dataset
value: linux.service
8 changes: 8 additions & 0 deletions packages/linux/data_stream/socket/fields/base-fields.yml
Expand Up @@ -10,3 +10,11 @@
- name: '@timestamp'
type: date
description: Event timestamp.
- name: event.module
type: constant_keyword
description: Event module
value: linux
- name: event.dataset
type: constant_keyword
description: Event dataset
value: linux.socket
8 changes: 8 additions & 0 deletions packages/linux/data_stream/users/fields/base-fields.yml
Expand Up @@ -10,3 +10,11 @@
- name: '@timestamp'
type: date
description: Event timestamp.
- name: event.module
type: constant_keyword
description: Event module
value: linux
- name: event.dataset
type: constant_keyword
description: Event dataset
value: linux.users
14 changes: 13 additions & 1 deletion packages/linux/docs/README.md
Expand Up @@ -72,6 +72,8 @@ entropy will be out of a total pool size of 4096.
| data_stream.dataset | Data stream dataset. | constant_keyword |
| data_stream.namespace | Data stream namespace. | constant_keyword |
| data_stream.type | Data stream type. | constant_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 @@ -118,6 +120,8 @@ operating system. These events are global and sorted by protocol.
| data_stream.dataset | Data stream dataset. | constant_keyword |
| data_stream.namespace | Data stream namespace. | constant_keyword |
| data_stream.type | Data stream type. | constant_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 @@ -170,6 +174,8 @@ This data stream is available on:
| data_stream.dataset | Data stream dataset. | constant_keyword |
| data_stream.namespace | Data stream namespace. | constant_keyword |
| data_stream.type | Data stream type. | constant_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 @@ -228,6 +234,8 @@ This data stream is available on:
| data_stream.dataset | Data stream dataset. | constant_keyword |
| data_stream.namespace | Data stream namespace. | constant_keyword |
| data_stream.type | Data stream type. | constant_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 All @@ -244,7 +252,7 @@ This data stream is available on:
| host.os.name | Operating system name, without the version. | keyword |
| host.os.platform | Operating system platform (such centos, ubuntu, windows). | keyword |
| host.os.version | Operating system version as a raw string. | keyword |
| host.type | Type of host. For Cloud providers this can be the machine type like `t2.medium`. If vm, this could be the container, for example, or other information meaningful in your environment. | keyword |
| host.type | Type of host. | keyword |
| process.exit_code | Identifier of the group of processes the process belongs to. | long |
| process.name | Process name. Sometimes called program name or similar. | keyword |
| process.pgid | Identifier of the group of processes the process belongs to. | long |
Expand Down Expand Up @@ -300,6 +308,8 @@ missing short-lived connections.
| data_stream.dataset | Data stream dataset. | constant_keyword |
| data_stream.namespace | Data stream namespace. | constant_keyword |
| data_stream.type | Data stream type. | constant_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 @@ -358,6 +368,8 @@ The linux/users data stream reports logged in users and associated sessions via
| data_stream.dataset | Data stream dataset. | constant_keyword |
| data_stream.namespace | Data stream namespace. | constant_keyword |
| data_stream.type | Data stream type. | constant_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/linux/manifest.yml
@@ -1,15 +1,15 @@
format_version: 1.0.0
name: linux
title: Linux
version: 0.3.10
version: 0.4.0
license: basic
description: Linux Integration
type: integration
categories:
- os_system
release: beta
conditions:
kibana.version: '^7.9.0'
kibana.version: '^7.14.0'
screenshots:
- src: /img/metricbeat-services-host.png
title: metricbeat services host
Expand Down

0 comments on commit 97ac8aa

Please sign in to comment.