Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

fix: restore compatibility with the new logstash 5.x events api #21

Merged
merged 1 commit into from Apr 21, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,10 @@
# Release Notes for `logstash-input-cloudwatch_logs`

## Unreleased

### Fixed
* Fixed bad merge on [#eb38dfd](https://github.com/lukewaite/logstash-input-cloudwatch-logs/commit/eb38dfdc072b4fd21e9c1d83ea306e2b6c5df37b) and restore compatibility with the Logstash 5.x events API

## v0.10.1 (2017-04-19)

### Fixed
Expand Down
6 changes: 3 additions & 3 deletions lib/logstash/inputs/cloudwatch_logs.rb
Expand Up @@ -124,9 +124,9 @@ def process_log(queue, log, stream)

@codec.decode(log.message.to_str) do |event|
event.set("@timestamp", parse_time(log.timestamp))
event["[cloudwatch][ingestion_time]"] = parse_time(log.ingestion_time)
event["[cloudwatch][log_group]"] = stream.arn.split(/:/)[6]
event["[cloudwatch][log_stream]"] = stream.log_stream_name
event.set("[cloudwatch][ingestion_time]", parse_time(log.ingestion_time))
event.set("[cloudwatch][log_group]", stream.arn.split(/:/)[6])
event.set("[cloudwatch][log_stream]", stream.log_stream_name)
decorate(event)

queue << event
Expand Down