Skip to content

Commit 699c812

Browse files
author
Mathieu Martin
authored
Beef up the description of the log field set. (#540)
1 parent aadf8db commit 699c812

File tree

7 files changed

+39
-8
lines changed

7 files changed

+39
-8
lines changed

code/go/ecs/log.go

Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/field-details.asciidoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2103,7 +2103,11 @@ example: `1.1`
21032103
[[ecs-log]]
21042104
=== Log Fields
21052105

2106-
Fields which are specific to log events.
2106+
Details about the event's logging mechanism or logging transport.
2107+
2108+
The log.* fields are typically populated with details about the logging mechanism used to create and/or transport the event. For example, syslog details belong under `log.syslog.*`.
2109+
2110+
The details specific to your event source are typically not logged under `log.*`, but rather in `event.*` or in other ECS fields.
21072111

21082112
==== Log Field Details
21092113

docs/fields.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ all fields are defined.
5252

5353
| <<ecs-http,HTTP>> | Fields describing an HTTP request.
5454

55-
| <<ecs-log,Log>> | Fields which are specific to log events.
55+
| <<ecs-log,Log>> | Details about the event's logging mechanism.
5656

5757
| <<ecs-network,Network>> | Fields describing the communication path over which the event happened.
5858

generated/beats/fields.ecs.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1590,7 +1590,14 @@
15901590
- name: log
15911591
title: Log
15921592
group: 2
1593-
description: Fields which are specific to log events.
1593+
description: 'Details about the event''s logging mechanism or logging transport.
1594+
1595+
The log.* fields are typically populated with details about the logging mechanism
1596+
used to create and/or transport the event. For example, syslog details belong
1597+
under `log.syslog.*`.
1598+
1599+
The details specific to your event source are typically not logged under `log.*`,
1600+
but rather in `event.*` or in other ECS fields.'
15941601
type: group
15951602
fields:
15961603
- name: level

generated/ecs/ecs_nested.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2571,7 +2571,14 @@ http:
25712571
title: HTTP
25722572
type: group
25732573
log:
2574-
description: Fields which are specific to log events.
2574+
description: 'Details about the event''s logging mechanism or logging transport.
2575+
2576+
The log.* fields are typically populated with details about the logging mechanism
2577+
used to create and/or transport the event. For example, syslog details belong
2578+
under `log.syslog.*`.
2579+
2580+
The details specific to your event source are typically not logged under `log.*`,
2581+
but rather in `event.*` or in other ECS fields.'
25752582
fields:
25762583
level:
25772584
description: 'Original log level of the log event.
@@ -2730,7 +2737,7 @@ log:
27302737
group: 2
27312738
name: log
27322739
prefix: log.
2733-
short: Fields which are specific to log events.
2740+
short: Details about the event's logging mechanism.
27342741
title: Log
27352742
type: group
27362743
network:

schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1533,7 +1533,7 @@
15331533
"type": "group"
15341534
},
15351535
"log": {
1536-
"description": "Fields which are specific to log events.\n",
1536+
"description": "Details about the event's logging mechanism or logging transport.\nThe log.* fields are typically populated with details about the logging mechanism used to create and/or transport the event. For example, syslog details belong under `log.syslog.*`.\nThe details specific to your event source are typically not logged under `log.*`, but rather in `event.*` or in other ECS fields.\n",
15371537
"fields": {
15381538
"log.level": {
15391539
"description": "Original log level of the log event.\nIf the source of the event provides a log level or textual severity, this is the one that goes in `log.level`. If your source doesn't specify one, you may put your event transport's severity here (e.g. Syslog severity).\nSome examples are `warn`, `err`, `i`, `informational`.",

schemas/log.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,16 @@
22
- name: log
33
title: Log
44
group: 2
5+
short: Details about the event's logging mechanism.
56
description: >
6-
Fields which are specific to log events.
7+
Details about the event's logging mechanism or logging transport.
8+
9+
The log.* fields are typically populated with details about the logging
10+
mechanism used to create and/or transport the event.
11+
For example, syslog details belong under `log.syslog.*`.
12+
13+
The details specific to your event source are typically not logged under `log.*`,
14+
but rather in `event.*` or in other ECS fields.
715
type: group
816
fields:
917

0 commit comments

Comments
 (0)