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

Remove deprecated field awscloudwatch #41089

Merged
merged 5 commits into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ https://github.com/elastic/beats/compare/v8.8.1\...main[Check the HEAD diff]
- Journald: `seek` and `since` behaviour have been simplified, if there is a cursor (state) `seek` and `since` are ignored and the cursor is used. {pull}40061[40061]
- Redis: Added replication role as a field to submitted slowlogs
- Added `container.image.name` to `journald` Filebeat input's Docker-specific translated fields. {pull}40450[40450]
- Remove deprecated awscloudwatch field from Filebeat. {pull}41089[41089]


*Heartbeat*
Expand Down
23 changes: 0 additions & 23 deletions x-pack/filebeat/input/awscloudwatch/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,6 @@
description: >
Fields from AWS CloudWatch logs.
fields:
- name: awscloudwatch
deprecated: 9.0.0
default_field: true
type: group
description: >
Fields from AWS CloudWatch logs.
Deprecated: Use aws.cloudwatch.* instead
fields:
- name: log_group
type: keyword
description: >
The name of the log group to which this event belongs.
Deprecated: Use aws.cloudwatch.log_group instead
- name: log_stream
type: keyword
description: >
The name of the log stream to which this event belongs.
Deprecated: Use aws.cloudwatch.log_stream instead
- name: ingestion_time
type: keyword
description: >
The time the event was ingested in AWS CloudWatch.
Deprecated: Use aws.cloudwatch.ingestion_time instead
- name: aws.cloudwatch
default_field: true
type: group
Expand Down
2 changes: 1 addition & 1 deletion x-pack/filebeat/input/awscloudwatch/fields.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions x-pack/filebeat/input/awscloudwatch/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@ func createEvent(logEvent types.FilteredLogEvent, logGroup string, regionName st
"id": *logEvent.EventId,
"ingested": time.Now(),
},
"awscloudwatch": mapstr.M{
"log_group": logGroup,
"log_stream": *logEvent.LogStreamName,
"ingestion_time": time.Unix(*logEvent.IngestionTime/1000, 0),
},
"aws.cloudwatch": mapstr.M{
"log_group": logGroup,
"log_stream": *logEvent.LogStreamName,
Expand Down
Loading