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

Commit

Permalink
fix: restore compatibility with the new logstash 5.x events api
Browse files Browse the repository at this point in the history
Fixes #20
  • Loading branch information
lukewaite committed Apr 21, 2017
1 parent 7ebc26c commit 9311c4f
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 9311c4f

Please sign in to comment.