Skip to content

Commit

Permalink
Clean up Event fields (#2226) (#2228)
Browse files Browse the repository at this point in the history
(cherry picked from commit 2abd912)

Co-authored-by: Nic <nicpenning@gmail.com>
  • Loading branch information
ebeahan and nicpenning committed Jun 28, 2023
1 parent 386fd15 commit a528590
Show file tree
Hide file tree
Showing 11 changed files with 95 additions and 93 deletions.
14 changes: 7 additions & 7 deletions docs/fields/field-details.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -3421,13 +3421,13 @@ example: `4648`
[[field-event-created]]
<<field-event-created, event.created>>

a| event.created contains the date/time when the event was first read by an agent, or by your pipeline.
a| `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.
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.
In case the two timestamps are identical, `@timestamp` should be used.

type: date

Expand Down Expand Up @@ -3465,7 +3465,7 @@ example: `apache.access`

a| Duration of the event in nanoseconds.

If event.start and event.end are known this value should be the difference between the end and start time.
If `event.start` and `event.end` are known this value should be the difference between the end and start time.

type: long

Expand All @@ -3481,7 +3481,7 @@ type: long
[[field-event-end]]
<<field-event-end, event.end>>

a| event.end contains the date when the event ended or when the activity was last observed.
a| `event.end` contains the date when the event ended or when the activity was last observed.

type: date

Expand Down Expand Up @@ -3553,7 +3553,7 @@ a| This is one of four ECS Categorization Fields, and indicates the highest leve

`event.kind` gives high-level information about what type of information the event contains, without being specific to the contents of the event. For example, values of this field distinguish alert events from metric events.

The value of this field can be used to inform how these kinds of events should be handled. They may warrant different retention, different access control, it may also help understand whether the data coming in at a regular interval or not.
The value of this field can be used to inform how these kinds of events should be handled. They may warrant different retention, different access control, it may also help understand whether the data is coming in at a regular interval or not.

type: keyword

Expand Down Expand Up @@ -3769,7 +3769,7 @@ example: `7`
[[field-event-start]]
<<field-event-start, event.start>>

a| event.start contains the date when the event started or when the activity was first observed.
a| `event.start` contains the date when the event started or when the activity was first observed.

type: date

Expand Down
2 changes: 1 addition & 1 deletion docs/fields/field-values.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ This is one of four ECS Categorization Fields, and indicates the highest level i

`event.kind` gives high-level information about what type of information the event contains, without being specific to the contents of the event. For example, values of this field distinguish alert events from metric events.

The value of this field can be used to inform how these kinds of events should be handled. They may warrant different retention, different access control, it may also help understand whether the data coming in at a regular interval or not.
The value of this field can be used to inform how these kinds of events should be handled. They may warrant different retention, different access control, it may also help understand whether the data is coming in at a regular interval or not.

*Allowed Values*

Expand Down
18 changes: 9 additions & 9 deletions experimental/generated/beats/fields.ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2419,18 +2419,18 @@
- name: created
level: core
type: date
description: 'event.created contains the date/time when the event was first
description: '`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
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.'
In case the two timestamps are identical, `@timestamp` should be used.'
example: '2016-05-23T08:05:34.857Z'
- name: dataset
level: core
Expand All @@ -2454,13 +2454,13 @@
output_precision: 1
description: 'Duration of the event in nanoseconds.

If event.start and event.end are known this value should be the difference
If `event.start` and `event.end` are known this value should be the difference
between the end and start time.'
- name: end
level: extended
type: date
description: event.end contains the date when the event ended or when the activity
was last observed.
description: '`event.end` contains the date when the event ended or when the
activity was last observed.'
- name: hash
level: extended
type: keyword
Expand Down Expand Up @@ -2500,7 +2500,7 @@

The value of this field can be used to inform how these kinds of events should
be handled. They may warrant different retention, different access control,
it may also help understand whether the data coming in at a regular interval
it may also help understand whether the data is coming in at a regular interval
or not.'
example: alert
- name: module
Expand Down Expand Up @@ -2623,8 +2623,8 @@
- name: start
level: extended
type: date
description: event.start contains the date when the event started or when the
activity was first observed.
description: '`event.start` contains the date when the event started or when
the activity was first observed.'
- name: timezone
level: extended
type: keyword
Expand Down
4 changes: 2 additions & 2 deletions experimental/generated/csv/fields.csv
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ ECS_Version,Indexed,Field_Set,Field,Type,Level,Normalization,Example,Description
8.8.0+exp,true,event,event.created,date,core,,2016-05-23T08:05:34.857Z,Time when the event was first read by an agent or by your pipeline.
8.8.0+exp,true,event,event.dataset,keyword,core,,apache.access,Name of the dataset.
8.8.0+exp,true,event,event.duration,long,core,,,Duration of the event in nanoseconds.
8.8.0+exp,true,event,event.end,date,extended,,,event.end contains the date when the event ended or when the activity was last observed.
8.8.0+exp,true,event,event.end,date,extended,,,`event.end` contains the date when the event ended or when the activity was last observed.
8.8.0+exp,true,event,event.hash,keyword,extended,,123456789012345678901234567890ABCD,Hash (perhaps logstash fingerprint) of raw field to be able to demonstrate log integrity.
8.8.0+exp,true,event,event.id,keyword,core,,8a4f500d,Unique ID to describe the event.
8.8.0+exp,true,event,event.ingested,date,core,,2016-05-23T08:05:35.101Z,Timestamp when an event arrived in the central data store.
Expand All @@ -260,7 +260,7 @@ ECS_Version,Indexed,Field_Set,Field,Type,Level,Normalization,Example,Description
8.8.0+exp,true,event,event.risk_score_norm,float,extended,,,Normalized risk score or priority of the event (0-100).
8.8.0+exp,true,event,event.sequence,long,extended,,,Sequence number of the event.
8.8.0+exp,true,event,event.severity,long,core,,7,Numeric severity of the event.
8.8.0+exp,true,event,event.start,date,extended,,,event.start contains the date when the event started or when the activity was first observed.
8.8.0+exp,true,event,event.start,date,extended,,,`event.start` contains the date when the event started or when the activity was first observed.
8.8.0+exp,true,event,event.timezone,keyword,extended,,,Event time zone.
8.8.0+exp,true,event,event.type,keyword,core,array,,Event type. The third categorization field in the hierarchy.
8.8.0+exp,true,event,event.url,keyword,extended,,https://mysystem.example.com/alert/5271dedb-f5b0-4218-87f0-4ac4870a38fe,Event investigation URL
Expand Down
31 changes: 16 additions & 15 deletions experimental/generated/ecs/ecs_flat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3190,18 +3190,18 @@ event.code:
type: keyword
event.created:
dashed_name: event-created
description: 'event.created contains the date/time when the event was first read
description: '`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.
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.'
In case the two timestamps are identical, `@timestamp` should be used.'
example: '2016-05-23T08:05:34.857Z'
flat_name: event.created
level: core
Expand Down Expand Up @@ -3230,8 +3230,8 @@ event.duration:
dashed_name: event-duration
description: 'Duration of the event in nanoseconds.

If event.start and event.end are known this value should be the difference between
the end and start time.'
If `event.start` and `event.end` are known this value should be the difference
between the end and start time.'
flat_name: event.duration
format: duration
input_format: nanoseconds
Expand All @@ -3244,14 +3244,14 @@ event.duration:
type: long
event.end:
dashed_name: event-end
description: event.end contains the date when the event ended or when the activity
was last observed.
description: '`event.end` contains the date when the event ended or when the activity
was last observed.'
flat_name: event.end
level: extended
name: end
normalize: []
short: event.end contains the date when the event ended or when the activity was
last observed.
short: '`event.end` contains the date when the event ended or when the activity
was last observed.'
type: date
event.hash:
dashed_name: event-hash
Expand Down Expand Up @@ -3380,7 +3380,8 @@ event.kind:

The value of this field can be used to inform how these kinds of events should
be handled. They may warrant different retention, different access control, it
may also help understand whether the data coming in at a regular interval or not.'
may also help understand whether the data is coming in at a regular interval or
not.'
example: alert
flat_name: event.kind
ignore_above: 1024
Expand Down Expand Up @@ -3571,14 +3572,14 @@ event.severity:
type: long
event.start:
dashed_name: event-start
description: event.start contains the date when the event started or when the activity
was first observed.
description: '`event.start` contains the date when the event started or when the
activity was first observed.'
flat_name: event.start
level: extended
name: start
normalize: []
short: event.start contains the date when the event started or when the activity
was first observed.
short: '`event.start` contains the date when the event started or when the activity
was first observed.'
type: date
event.timezone:
dashed_name: event-timezone
Expand Down
26 changes: 13 additions & 13 deletions experimental/generated/ecs/ecs_nested.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4185,18 +4185,18 @@ event:
type: keyword
event.created:
dashed_name: event-created
description: 'event.created contains the date/time when the event was first
description: '`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
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.'
In case the two timestamps are identical, `@timestamp` should be used.'
example: '2016-05-23T08:05:34.857Z'
flat_name: event.created
level: core
Expand Down Expand Up @@ -4226,7 +4226,7 @@ event:
dashed_name: event-duration
description: 'Duration of the event in nanoseconds.

If event.start and event.end are known this value should be the difference
If `event.start` and `event.end` are known this value should be the difference
between the end and start time.'
flat_name: event.duration
format: duration
Expand All @@ -4240,14 +4240,14 @@ event:
type: long
event.end:
dashed_name: event-end
description: event.end contains the date when the event ended or when the activity
was last observed.
description: '`event.end` contains the date when the event ended or when the
activity was last observed.'
flat_name: event.end
level: extended
name: end
normalize: []
short: event.end contains the date when the event ended or when the activity
was last observed.
short: '`event.end` contains the date when the event ended or when the activity
was last observed.'
type: date
event.hash:
dashed_name: event-hash
Expand Down Expand Up @@ -4377,7 +4377,7 @@ event:

The value of this field can be used to inform how these kinds of events should
be handled. They may warrant different retention, different access control,
it may also help understand whether the data coming in at a regular interval
it may also help understand whether the data is coming in at a regular interval
or not.'
example: alert
flat_name: event.kind
Expand Down Expand Up @@ -4573,14 +4573,14 @@ event:
type: long
event.start:
dashed_name: event-start
description: event.start contains the date when the event started or when the
activity was first observed.
description: '`event.start` contains the date when the event started or when
the activity was first observed.'
flat_name: event.start
level: extended
name: start
normalize: []
short: event.start contains the date when the event started or when the activity
was first observed.
short: '`event.start` contains the date when the event started or when the activity
was first observed.'
type: date
event.timezone:
dashed_name: event-timezone
Expand Down
18 changes: 9 additions & 9 deletions generated/beats/fields.ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2369,18 +2369,18 @@
- name: created
level: core
type: date
description: 'event.created contains the date/time when the event was first
description: '`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
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.'
In case the two timestamps are identical, `@timestamp` should be used.'
example: '2016-05-23T08:05:34.857Z'
- name: dataset
level: core
Expand All @@ -2404,13 +2404,13 @@
output_precision: 1
description: 'Duration of the event in nanoseconds.

If event.start and event.end are known this value should be the difference
If `event.start` and `event.end` are known this value should be the difference
between the end and start time.'
- name: end
level: extended
type: date
description: event.end contains the date when the event ended or when the activity
was last observed.
description: '`event.end` contains the date when the event ended or when the
activity was last observed.'
- name: hash
level: extended
type: keyword
Expand Down Expand Up @@ -2450,7 +2450,7 @@

The value of this field can be used to inform how these kinds of events should
be handled. They may warrant different retention, different access control,
it may also help understand whether the data coming in at a regular interval
it may also help understand whether the data is coming in at a regular interval
or not.'
example: alert
- name: module
Expand Down Expand Up @@ -2573,8 +2573,8 @@
- name: start
level: extended
type: date
description: event.start contains the date when the event started or when the
activity was first observed.
description: '`event.start` contains the date when the event started or when
the activity was first observed.'
- name: timezone
level: extended
type: keyword
Expand Down
4 changes: 2 additions & 2 deletions generated/csv/fields.csv
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ ECS_Version,Indexed,Field_Set,Field,Type,Level,Normalization,Example,Description
8.8.0,true,event,event.created,date,core,,2016-05-23T08:05:34.857Z,Time when the event was first read by an agent or by your pipeline.
8.8.0,true,event,event.dataset,keyword,core,,apache.access,Name of the dataset.
8.8.0,true,event,event.duration,long,core,,,Duration of the event in nanoseconds.
8.8.0,true,event,event.end,date,extended,,,event.end contains the date when the event ended or when the activity was last observed.
8.8.0,true,event,event.end,date,extended,,,`event.end` contains the date when the event ended or when the activity was last observed.
8.8.0,true,event,event.hash,keyword,extended,,123456789012345678901234567890ABCD,Hash (perhaps logstash fingerprint) of raw field to be able to demonstrate log integrity.
8.8.0,true,event,event.id,keyword,core,,8a4f500d,Unique ID to describe the event.
8.8.0,true,event,event.ingested,date,core,,2016-05-23T08:05:35.101Z,Timestamp when an event arrived in the central data store.
Expand All @@ -253,7 +253,7 @@ ECS_Version,Indexed,Field_Set,Field,Type,Level,Normalization,Example,Description
8.8.0,true,event,event.risk_score_norm,float,extended,,,Normalized risk score or priority of the event (0-100).
8.8.0,true,event,event.sequence,long,extended,,,Sequence number of the event.
8.8.0,true,event,event.severity,long,core,,7,Numeric severity of the event.
8.8.0,true,event,event.start,date,extended,,,event.start contains the date when the event started or when the activity was first observed.
8.8.0,true,event,event.start,date,extended,,,`event.start` contains the date when the event started or when the activity was first observed.
8.8.0,true,event,event.timezone,keyword,extended,,,Event time zone.
8.8.0,true,event,event.type,keyword,core,array,,Event type. The third categorization field in the hierarchy.
8.8.0,true,event,event.url,keyword,extended,,https://mysystem.example.com/alert/5271dedb-f5b0-4218-87f0-4ac4870a38fe,Event investigation URL
Expand Down
Loading

0 comments on commit a528590

Please sign in to comment.