lukewaite / logstash-input-cloudwatch-logs

Input plugin for Logstash to stream events from CloudWatch Logs
Other
142 stars 74 forks source link

dependency conflict #101

Open belliel opened 2 years ago

belliel commented 2 years ago

logstash 8.4.0

ERROR: Installation Aborted, message: Bundler could not find compatible versions for gem "aws-sdk-core": In snapshot (Gemfile.lock): aws-sdk-core (= 3.131.5)

In Gemfile: logstash-input-cloudwatch_logs (= 1.0.3) was resolved to 1.0.3, which depends on logstash-mixin-aws (>= 4.3.0) was resolved to 5.1.0, which depends on aws-sdk (~> 2) was resolved to 2.0.1.pre, which depends on aws-sdk-resources (= 2.0.1.pre) was resolved to 2.0.1.pre, which depends on aws-sdk-core (= 2.0.1)

logstash-integration-aws was resolved to 7.0.0, which depends on
  aws-sdk-core (~> 3)
marcjay commented 2 years ago

Also ran into this issue. @belliel I don't suppose you've got the workaround/fix?

belliel commented 2 years ago

Downgrade logstash version

belliel commented 2 years ago

logstash 8.3.3 - working

marcjay commented 2 years ago

Many thanks @belliel, I'll try that

satxroadrunner commented 2 years ago

I also ran into this issue, but I am not wanting to downgrade anything. @lukewaite any chance of a patch or new version?

koniq commented 1 year ago

Hi guys, is it possible to make a fix for this? In AWS I need to upgrade Elastic Cloud to 8.x version, to do so it is needed to upgrade logstash to >= 8.4

nickbabkin commented 1 year ago

Hi guys, here's the fix: https://github.com/lukewaite/logstash-input-cloudwatch-logs/pull/102

Tested it on local, it works well. Make sure to run

gem build logstash-input-cloudwatch_logs.gemspec

And then install as a local plugin in Logstash

COPY logstash-input-cloudwatch_logs-1.0.3.gem /usr/share/logstash/
RUN LS_JAVA_OPTS="-Xms512m -Xmx3072m" /opt/logstash/bin/logstash-plugin install /usr/share/logstash/logstash-input-cloudwatch_logs-1.0.3.gem
shawnh-burst commented 1 year ago

@nickbabkin

Tried your fix, but the underlying gem seems unavailable

Could not find a valid gem 'logstash-mixin-aws-v3sdk'

Am I doing something wrong? Appreciate any insight or if you have this gem somewhere a link to download.

shawnh-burst commented 1 year ago

@belliel any chance you have the 'logstash-mixin-aws-v3sdk' gem somewhere? Seems to be no longer available on rubygems.