-
Notifications
You must be signed in to change notification settings - Fork 27
Error while Running the Logstash Plugin #11
Comments
Same issue:
|
Hi, You can check how I install the plugins in a docker container as a reference to install them in your own environment. Logstash 1.x: https://github.com/mantika/dockerfiles/blob/1.x/logstash/dynamo-streams/Dockerfile Logstash 2.x: https://github.com/mantika/dockerfiles/blob/master/logstash/dynamo-streams/Dockerfile Hope it helps. |
As far as I can tell, I just need to run:
I can see logstash-input-dynamodb in my /opt/logstash/bin/plugin list |
@teebu keep in mind the stuff I do with the .m2 repository. Take into account that logstash usually runs with the user |
So after cloning the GIT, compiling, installing and uninstall the GEM a few dozen times, then doing a plugin/install I finally managed to get it to work. At one point, it only ran with SUDO, (it could have been when I SUDO gem install, instead of regular gem install) but it seems if i run it from inside /opt/logstash folder, it is working. Now, it seems I can run it without needing to be in the folder. With no errors. I think the step where I had to compile might have installed those missing JAR files. |
@marcosnils This is Awesome ..thanks for updating the logstash gem with this dynamodb plugin. It woks fine. Installing this locally and works properly was a nightmare, it was needed to follow wired ways to make it work. Thanks again |
I am still having a problem. Even though I was able to run the plugin, i was not able to run it with the logstash service. Getting error: I tried to follow your docker example, but I dont understand what the .m2 sym link is doing. Here is my folder structure: I am on an EC2 machine. home: Doing I really need a step by step guide, because I just spend 6 hours trying to get this to work. Right now trying to run a config, I get the error |
Install jRuby cd /etcsudo mkdir jrubysudo wget https Install Git sudo yum install git Install Maven Sudo wget http:// Install Logstash sudo rpm --import https https://packages.elastic.co/GPG-KEY-elasticsearch name=Logstash repository for 2.2.x packages baseurl=http:// http://packages.elastic.co/logstash/2.2/centos gpgcheck=1 gpgkey=http:// http://packages.elastic.co/GPG-KEY-elasticsearch enabled=1 sudo yum install logstashexport PATH=/opt/logstash/bin:$PATH$ Install Logstash-input-dynamodb Clonesudo git clone https Install logstash-filter-dynamodb cd /etcgit clone https Fix Logstash to run as service Copy logstash-input-dynamodb to a new locationsudo cp -r /opt/logstash/Gemfile bottom of file gem "logstash-input-http_poller" gem "logstash-input-dynamodb", "1.0.1", :path => gem "activesupport-json_encoder", "1.1.0", :path => gem "activesupport", "4.1.14.1", :path => gem "logstash-filter-dynamodb", "0.0.4", :path => sent from mobile
|
thanks, this was very hard to read with the lack of formatting. ill give it a shot. also, im using LS 1.5 I tried to follow your steps, but it feels like there are either steps missing, or some mismatch is going on. I have maven,jruby installed, with LS 1.5. |
I managed to translate whatever you wrote to this:
did you miss a step here? to build the gem?
Around this point, there is no "Bundle" so I fix for that, to make it "bundle" plugin install doesn't work without sudo. I fix for that. Doing: Getting Error: Trying: Still getting same error when doing plugin install:
One thing I noticed was changing the owner of 'opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-dynamodb' to logstash seems to be doing something One thing to note: |
Probably. I didn't write this instructions, these were written by @bretd25. Maybe he can help to indicate how he solved the problem. Keep in mind that this instructions are for logstash 2.x.. You'll have to adapt them to your version. Marcos. |
I am getting this error
No clue on how to solve. |
Which logstash version are you using and how are you installing the gem? |
Its logstash 2.2.2, and installed the gem through gem install Version for logstash-input-dynamodb is 2.0.3, got it from Earlier tried the local build option, but ended up at exact same problem. |
Also I see all the required jars are right there in my ~/.m2/repository folder, either directly or in some folders. Why is logstash still not able to find them? |
because logstash usually uses the |
you probably did |
Symlinking does not seem to help. I created a symlink named .m2 in /opt/logstash where my logstash resides. Exact same problem :( |
@paragshar try creating this dir and linking .m2 there:
Hope it helps. |
Not too sure what you meant by above. Should the link part not be like
and /your/user substituted by /home/ubuntu |
I figured it out finally. There was no jar file for joda-time/joda-time/2.8.2/joda-time-2.8.2 in my And it works like a breeze after that. Many thanks. Your assistance really helped me figure out the issue. But I still need to see why was the jar file not there in the first place :) |
Can you help me get rid of this error, whenever I try to install any plugin. It installs the plugin I was trying to install successfully, but instead of finishing with a success, it does this with 1/10 retries. |
The best idea is to run
This will download and install the plugin from the gem repo. |
i tried installing it from the gem repo before, it installs 1.0.3. but then it doesn't run in the LS service. Using the rubygems.org version, '1.0.3' by doing just sudo bin/plugin install logstash-input-dynamodb, throws error:
when starting logstash service |
bin/logstash -f logstash-dynamodb.conf
The error reported is:
no such file to load -- com/amazonaws/aws-java-sdk-kms/1.10.27/aws-java-sdk-kms-1.10.27 (LoadError)
Helps would be appreciated
The text was updated successfully, but these errors were encountered: