Skip to content

Commit 954072f

Browse files
authored
[Redis] set event.module and event.dataset (#1224)
* [Redis] set event.module * Update changelog and kibana constraints * Set event.dataset
1 parent 6891bb8 commit 954072f

File tree

8 files changed

+58
-3
lines changed

8 files changed

+58
-3
lines changed

packages/redis/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# newer versions go on top
2+
- version: "0.5.0"
3+
changes:
4+
- description: Set "event.module" and "event.dataset"
5+
type: enhancement
6+
link: https://github.com/elastic/integrations/pull/1224
27
- version: "0.4.0"
38
changes:
49
- description: Update ECS to 1.10.0, converting pipeline to yml and adding event.original options

packages/redis/data_stream/info/fields/base-fields.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,11 @@
1010
- name: '@timestamp'
1111
type: date
1212
description: Event timestamp.
13+
- name: event.module
14+
type: constant_keyword
15+
description: Event module
16+
value: redis
17+
- name: event.dataset
18+
type: constant_keyword
19+
description: Event dataset
20+
value: redis.info

packages/redis/data_stream/key/fields/base-fields.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,11 @@
1010
- name: '@timestamp'
1111
type: date
1212
description: Event timestamp.
13+
- name: event.module
14+
type: constant_keyword
15+
description: Event module
16+
value: redis
17+
- name: event.dataset
18+
type: constant_keyword
19+
description: Event dataset
20+
value: redis.key

packages/redis/data_stream/keyspace/fields/base-fields.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,11 @@
1010
- name: '@timestamp'
1111
type: date
1212
description: Event timestamp.
13+
- name: event.module
14+
type: constant_keyword
15+
description: Event module
16+
value: redis
17+
- name: event.dataset
18+
type: constant_keyword
19+
description: Event dataset
20+
value: redis.keyspace

packages/redis/data_stream/log/fields/base-fields.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,11 @@
1010
- name: '@timestamp'
1111
type: date
1212
description: Event timestamp.
13+
- name: event.module
14+
type: constant_keyword
15+
description: Event module
16+
value: redis
17+
- name: event.dataset
18+
type: constant_keyword
19+
description: Event dataset
20+
value: redis.log

packages/redis/data_stream/slowlog/fields/base-fields.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,11 @@
1010
- name: '@timestamp'
1111
type: date
1212
description: Event timestamp.
13+
- name: event.module
14+
type: constant_keyword
15+
description: Event module
16+
value: redis
17+
- name: event.dataset
18+
type: constant_keyword
19+
description: Event dataset
20+
value: redis.slowlog

packages/redis/docs/README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ The `log` dataset collects the Redis standard logs.
4040
| ecs.version | ECS version | keyword |
4141
| error.message | Error message. | text |
4242
| event.created | Date/time when the event was first read by an agent, or by your pipeline. | date |
43+
| event.dataset | Event dataset | constant_keyword |
44+
| event.module | Event module | constant_keyword |
4345
| host.architecture | Operating system architecture. | keyword |
4446
| host.containerized | If the host is a container. | boolean |
4547
| 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 |
@@ -91,6 +93,8 @@ The `slowlog` dataset collects the Redis slow logs.
9193
| ecs.version | ECS version | keyword |
9294
| error.message | Error message. | text |
9395
| event.created | Date/time when the event was first read by an agent, or by your pipeline. | date |
96+
| event.dataset | Event dataset | constant_keyword |
97+
| event.module | Event module | constant_keyword |
9498
| host.architecture | Operating system architecture. | keyword |
9599
| host.containerized | If the host is a container. | boolean |
96100
| 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 |
@@ -331,6 +335,8 @@ An example event for `info` looks as following:
331335
| data_stream.namespace | Data stream namespace. | constant_keyword |
332336
| data_stream.type | Data stream type. | constant_keyword |
333337
| ecs.version | ECS version | keyword |
338+
| event.dataset | Event dataset | constant_keyword |
339+
| event.module | Event module | constant_keyword |
334340
| host.architecture | Operating system architecture. | keyword |
335341
| host.containerized | If the host is a container. | boolean |
336342
| 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 |
@@ -455,7 +461,7 @@ An example event for `info` looks as following:
455461
| redis.info.stats.sync.full | The number of full resyncs with slaves | long |
456462
| redis.info.stats.sync.partial.err | The number of denied partial resync requests | long |
457463
| redis.info.stats.sync.partial.ok | The number of accepted partial resync requests | long |
458-
| service.address | Service address | keyword |
464+
| service.address | Client address | keyword |
459465
| service.type | Service type | keyword |
460466
| service.version | Service version | keyword |
461467

@@ -530,6 +536,8 @@ An example event for `key` looks as following:
530536
| data_stream.namespace | Data stream namespace. | constant_keyword |
531537
| data_stream.type | Data stream type. | constant_keyword |
532538
| ecs.version | ECS version | keyword |
539+
| event.dataset | Event dataset | constant_keyword |
540+
| event.module | Event module | constant_keyword |
533541
| host.architecture | Operating system architecture. | keyword |
534542
| host.containerized | If the host is a container. | boolean |
535543
| 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 |
@@ -614,6 +622,8 @@ An example event for `keyspace` looks as following:
614622
| data_stream.namespace | Data stream namespace. | constant_keyword |
615623
| data_stream.type | Data stream type. | constant_keyword |
616624
| ecs.version | ECS version | keyword |
625+
| event.dataset | Event dataset | constant_keyword |
626+
| event.module | Event module | constant_keyword |
617627
| host.architecture | Operating system architecture. | keyword |
618628
| host.containerized | If the host is a container. | boolean |
619629
| 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 |

packages/redis/manifest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
format_version: 1.0.0
22
name: redis
33
title: Redis
4-
version: 0.4.0
4+
version: 0.5.0
55
license: basic
66
description: Redis Integration
77
type: integration
@@ -10,7 +10,7 @@ categories:
1010
- message_queue
1111
release: experimental
1212
conditions:
13-
kibana.version: '^7.9.0'
13+
kibana.version: '^7.14.0'
1414
screenshots:
1515
- src: /img/kibana-redis.png
1616
title: kibana redis

0 commit comments

Comments
 (0)