Skip to content

Commit

Permalink
In Logstash 8.0 the SHUTDOWN event is removed and was deprecated/not …
Browse files Browse the repository at this point in the history
…used since Logstash 5.0, remove it.
  • Loading branch information
andsel authored and elasticsearch-bot committed Feb 11, 2021
1 parent a1800a6 commit a2a88d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,6 @@
## 3.0.9
- Fix: dropped usage of SHUTDOWN event deprecated since Logstash 5.0 [#18](https://github.com/logstash-plugins/logstash-output-cloudwatch/pull/18)

## 3.0.8
- Docs: Set the default_codec doc attribute.

Expand Down
9 changes: 0 additions & 9 deletions lib/logstash/outputs/cloudwatch.rb
Expand Up @@ -172,15 +172,6 @@ def register

public
def receive(event)


if event == LogStash::SHUTDOWN
job.trigger()
job.unschedule()
@logger.info("CloudWatch aggregator thread shutdown.")
return
end

return unless (event.get(@field_metricname) || @metricname)

if (@event_queue.length >= @event_queue.max)
Expand Down
2 changes: 1 addition & 1 deletion logstash-output-cloudwatch.gemspec
@@ -1,7 +1,7 @@
Gem::Specification.new do |s|

s.name = 'logstash-output-cloudwatch'
s.version = '3.0.8'
s.version = '3.0.9'
s.licenses = ['Apache License (2.0)']
s.summary = "Aggregates and sends metric data to AWS CloudWatch"
s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
Expand Down

0 comments on commit a2a88d0

Please sign in to comment.