Skip to content

Commit

Permalink
Add event.created field for cloudtrail data stream (#1590)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiyan-sheng authored Sep 8, 2021
1 parent fec368e commit 1a817c4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions packages/aws/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "0.10.5"
changes:
- description: Add event.created field
type: bugfix
link: https://github.com/elastic/integrations/pull/1590
- version: "0.10.4"
changes:
- description: Improve RDS dashboard
Expand Down
2 changes: 2 additions & 0 deletions packages/aws/data_stream/cloudtrail/fields/ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
name: error.message
- external: ecs
name: event.action
- external: ecs
name: event.created
- external: ecs
name: event.ingested
- external: ecs
Expand Down
3 changes: 2 additions & 1 deletion packages/aws/docs/cloudtrail.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ events for the account. If user creates a trail, it delivers those events as log
| cloud.machine.type | Machine type of the host machine. | keyword |
| cloud.project.id | Name of the project in Google Cloud. | keyword |
| cloud.provider | Name of the cloud provider. Example values are aws, azure, gcp, or digitalocean. | keyword |
| cloud.region | Region in which this host is running. | keyword |
| cloud.region | Region in which this host, resource, or service is located. | keyword |
| container.id | Unique container id. | keyword |
| container.image.name | Name of the image the container was built on. | keyword |
| container.labels | Image labels. | object |
Expand All @@ -70,6 +70,7 @@ events for the account. If user creates a trail, it delivers those events as log
| 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.message | Error message. | text |
| 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.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 |
| event.dataset | Event dataset | constant_keyword |
| event.ingested | Timestamp when an event arrived in the central data store. This is different from `@timestamp`, which is when the event originally occurred. It's also different from `event.created`, which is meant to capture the first time an agent saw the event. In normal conditions, assuming no tampering, the timestamps should chronologically look like this: `@timestamp` \< `event.created` \< `event.ingested`. | date |
| event.kind | This is one of four ECS Categorization Fields, and indicates the highest level in the ECS category hierarchy. `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. | keyword |
Expand Down
2 changes: 1 addition & 1 deletion packages/aws/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: 1.0.0
name: aws
title: AWS
version: 0.10.4
version: 0.10.5
license: basic
description: This integration collects logs and metrics from Amazon Web Services (AWS)
type: integration
Expand Down

0 comments on commit 1a817c4

Please sign in to comment.