Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[windows] Add ECS error.code mapping #6869

Merged
merged 1 commit into from
Jul 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/windows/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.24.1"
changes:
- description: Add ECS error.code mapping.
type: bugfix
link: https://github.com/elastic/integrations/issues/6766
- version: "1.24.0"
changes:
- description: Ensure event.kind is correctly set for pipeline errors.
Expand Down
2 changes: 2 additions & 0 deletions packages/windows/data_stream/forwarded/fields/ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
name: dns.type
- external: ecs
name: ecs.version
- external: ecs
name: error.code
- external: ecs
name: event.action
- external: ecs
Expand Down
2 changes: 2 additions & 0 deletions packages/windows/data_stream/powershell/fields/ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
name: destination.user.name
- external: ecs
name: ecs.version
- external: ecs
name: error.code
- external: ecs
name: event.action
- external: ecs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
name: destination.user.name
- external: ecs
name: ecs.version
- external: ecs
name: error.code
- external: ecs
name: event.action
- external: ecs
Expand Down
2 changes: 2 additions & 0 deletions packages/windows/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ An example event for `powershell` looks as following:
| destination.user.name | Short name or login of the user. | keyword |
| destination.user.name.text | Multi-field of `destination.user.name`. | match_only_text |
| 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 |
| error.code | Error code describing the error. | keyword |
| event.action | The action captured by the event. This describes the information in the event. It is more specific than `event.category`. Examples are `group-add`, `process-started`, `file-created`. The value is normally defined by the implementer. | keyword |
| event.category | This is one of four ECS Categorization Fields, and indicates the second level in the ECS category hierarchy. `event.category` represents the "big buckets" of ECS categories. For example, filtering on `event.category:process` yields all events relating to process activity. This field is closely related to `event.type`, which is used as a subcategory. This field is an array. This will allow proper categorization of some events that fall in multiple categories. | keyword |
| event.code | Identification code for this event, if one exists. Some event sources use event codes to identify messages unambiguously, regardless of message language or wording adjustments over time. An example of this is the Windows Event ID. | keyword |
Expand Down Expand Up @@ -547,6 +548,7 @@ An example event for `powershell_operational` looks as following:
| destination.user.name | Short name or login of the user. | keyword |
| destination.user.name.text | Multi-field of `destination.user.name`. | match_only_text |
| 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 |
| error.code | Error code describing the error. | keyword |
| event.action | The action captured by the event. This describes the information in the event. It is more specific than `event.category`. Examples are `group-add`, `process-started`, `file-created`. The value is normally defined by the implementer. | keyword |
| event.category | This is one of four ECS Categorization Fields, and indicates the second level in the ECS category hierarchy. `event.category` represents the "big buckets" of ECS categories. For example, filtering on `event.category:process` yields all events relating to process activity. This field is closely related to `event.type`, which is used as a subcategory. This field is an array. This will allow proper categorization of some events that fall in multiple categories. | keyword |
| event.code | Identification code for this event, if one exists. Some event sources use event codes to identify messages unambiguously, regardless of message language or wording adjustments over time. An example of this is the Windows Event ID. | keyword |
Expand Down
2 changes: 1 addition & 1 deletion packages/windows/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: windows
title: Windows
version: 1.24.0
version: 1.24.1
description: Collect logs and metrics from Windows OS and services with Elastic Agent.
type: integration
categories:
Expand Down