Skip to content

Commit c9f3c19

Browse files
authored
[winlog] Add ECS fields for error checking/codes (#5273)
Account for any ingest pipelines that might throw some error messages or event codes.
1 parent 25d0626 commit c9f3c19

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

packages/winlog/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: "1.12.0"
3+
changes:
4+
- description: Add ecs error fields
5+
type: enhancement
6+
link: https://github.com/elastic/integrations/pull/5273
27
- version: "1.11.0"
38
changes:
49
- description: Add agent fields

packages/winlog/data_stream/winlog/fields/ecs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
- name: ecs.version
22
external: ecs
3+
- name: error.code
4+
external: ecs
5+
- name: error.message
6+
external: ecs
37
- name: event.created
48
external: ecs
59
- name: log.level

packages/winlog/docs/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ To achieve this, `renderXml` needs to be set to `1` in your [inputs.conf](https:
4343
| data_stream.namespace | Data stream namespace. | constant_keyword |
4444
| data_stream.type | Data stream type. | constant_keyword |
4545
| 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 |
46+
| error.code | Error code describing the error. | keyword |
47+
| error.message | Error message. | match_only_text |
4648
| event.created | event.created contains the date/time when the event was first read by an agent, or by your pipeline. This field is distinct from @timestamp in that @timestamp typically contain the time extracted from the original event. In most situations, these two timestamps will be slightly different. The difference can be used to calculate the delay between your source generating an event, and the time when your agent first processed it. This can be used to monitor your agent's or pipeline's ability to keep up with your event source. In case the two timestamps are identical, @timestamp should be used. | date |
4749
| event.dataset | Event dataset | constant_keyword |
4850
| event.module | Event module | constant_keyword |

packages/winlog/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: winlog
33
title: Custom Windows Event Logs
44
description: Collect and parse logs from any Windows event log channel with Elastic Agent.
55
type: integration
6-
version: "1.11.0"
6+
version: "1.12.0"
77
release: ga
88
conditions:
99
kibana.version: '^7.16.0 || ^8.0.0'

0 commit comments

Comments
 (0)