Skip to content

Commit

Permalink
Use ecs definition of the 'event.dataset' field for container_logs
Browse files Browse the repository at this point in the history
Signed-off-by: Tetiana Kravchenko <[email protected]>
  • Loading branch information
tetianakravchenko committed Nov 8, 2024
1 parent 01fbb82 commit 7ee8ff7
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 7 deletions.
5 changes: 5 additions & 0 deletions packages/docker/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: 2.12.0
changes:
- description: Use ecs definition of the 'event.dataset' field for container_logs.
type: enhancement
link: https://github.com/elastic/integrations/pull/11196
- version: 2.11.0
changes:
- description: Bump package-spec version to 3.2.2 to run on Serverless and stack version 9.0.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ parsers:
{{#if processors}}
processors:
{{processors}}
{{/if}}
{{/if}}
data_stream:
dataset: {{data_stream.dataset}}
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
type: constant_keyword
description: Event module
value: docker
- name: event.dataset
type: constant_keyword
description: Event dataset
value: docker.container_logs
- name: log.offset
type: long
description: Offset of the entry in the log file.
Expand Down
2 changes: 2 additions & 0 deletions packages/docker/data_stream/container_logs/fields/ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@
name: host.os.version
- external: ecs
name: host.type
- external: ecs
name: event.dataset
8 changes: 8 additions & 0 deletions packages/docker/data_stream/container_logs/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ streams:
# pattern: '^\['
# negate: true
# match: after
- name: data_stream.dataset
type: text
title: 'Datasream Dataset name'
description: Name of Datastream dataset
multi: false
default: docker.container_logs
required: true
show_user: false
- name: processors
type: yaml
title: Processors
Expand Down
2 changes: 1 addition & 1 deletion packages/docker/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,7 @@ The Docker `container_logs` data stream collects container logs.
| data_stream.namespace | Data stream namespace. | constant_keyword |
| data_stream.type | Data stream type. | constant_keyword |
| ecs.version | ECS version this event conforms to. `ecs.version` is a required field and must exist in all events. When querying across multiple indices -- which may conform to slightly different ECS versions -- this field lets integrations adjust to the schema version of the events. | keyword |
| event.dataset | Event dataset | constant_keyword |
| event.dataset | Name of the dataset. If an event source publishes more than one type of log or events (e.g. access log, error log), the dataset is used to specify which one the event comes from. It's recommended but not required to start the dataset name with the module name, followed by a dot, then the dataset name. | keyword |
| event.module | Event module | constant_keyword |
| host | A host is defined as a general computing instance. ECS host.\* fields should be populated with details about the host on which the event happened, or from which the measurement was taken. Host types include hardware, virtual machines, Docker containers, and Kubernetes nodes. | group |
| host.architecture | Operating system architecture. | keyword |
Expand Down
2 changes: 1 addition & 1 deletion packages/docker/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: docker
title: Docker
version: 2.11.0
version: 2.12.0
description: Collect metrics and logs from Docker instances with Elastic Agent.
type: integration
icons:
Expand Down

0 comments on commit 7ee8ff7

Please sign in to comment.