Open ZenBug13 opened 7 years ago
https://github.com/knockaway/logstash-output-cloudwatchlogs works. I use it with logstash v5
Couple of issues with @knockaway's version, logging follow up issues here as his repo doesn't have issues enabled (which is fair enough he isn't the maintainer).
First of all:
$ ruby -S gem build logstash-output-cloudwatchlogs.gemspec
WARNING: See http://guides.rubygems.org/specification-reference/ for help
ERROR: While executing gem ... (Gem::InvalidSpecificationException)
[""] are not files
Checking the previous commit (eec0cc9d4327b173a4d11ab132baff245bfbf71b
) fixes that but then with the latest (v5.5.0) logstash I am getting:
Plugin version conflict, aborting
ERROR: Installation Aborted, message: Bundler could not find compatible versions for gem "logstash-codec-plain":
In snapshot (Gemfile.lock):
logstash-codec-plain (= 3.0.3)
In Gemfile:
logstash-output-cloudwatchlogs (= 2.0.0.pre1) java depends on
logstash-codec-plain (<= 3.0.2, >= 2.0.0) java
logstash-codec-plain (>= 0) java
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
Works with v5.4.0 however.
I haven't tried it with Logstash v5.5.x yet (it's released last week.)
I've made a small change ( https://github.com/knockaway/logstash-output-cloudwatchlogs/commit/6ca50424fc7016f08b0f3b7c404e6fe25e44436c ) Can you try it again with v5.5.x
This line will case the gem build command to fail:
well, I build it in a container and that line doesn't work for my case. (That's why I didn't make a PR to this repo.) This is how I install it;
/usr/share/logstash/vendor/local_gems/logstash-output-cloudwatchlogs/
echo 'gem "logstash-output-cloudwatchlogs", :path => "/usr/share/logstash/vendor/local_gems/logstash-output-cloudwatchlogs/"' >> /usr/share/logstash/Gemfile
logstash-plugin install --no-verify
I can probably try it next week and post here whether it works with Logstash v5.5.x or not.
P.S.: You can fork it and redo https://github.com/knockaway/logstash-output-cloudwatchlogs/blob/master/logstash-output-cloudwatchlogs.gemspec#L14 if my case doesn't work for you.
Obviously my preference would be for this repo to be updated. I'd be happy to get a PR going if I knew if a maintainer still existed? Perhaps @hyandell or @wanghq could let us know?
@hartror , I am no longer with AWS and it's inappropriate for me to accept PR. But if you can submit a PR, @DVassallo might be able to merge it.
Thanks @wanghq. @DVassallo are you in a position to merge a PR if I roll one?
I am also waiting for fix for this. I found the fork at https://github.com/LiveSafe/logstash-output-cloudwatchlogs to be working with Logstash 5.x. It would be nice if those changes can be merged to master.
Nope :(