I tried running Logstash 2.2.0 on ARM architecture (aarch64) system (w/ Fedora 22) but I am getting the following error:
[root@arm-01 logstash-2.2.0]# bin/logstash agent -f logstash_json.conf
io/console not supported; tty will not be manipulated
LoadError: Unsupported platform: unknown-linux
require at org/jruby/RubyKernel.java:1040
(root) at /home/nbhoyar/logstash-2.2.0/vendor/jruby/lib/ruby/shared/ffi/ffi.rb:69
require at org/jruby/RubyKernel.java:1040
(root) at /home/nbhoyar/logstash-2.2.0/vendor/jruby/lib/ruby/shared/ffi.rb:1
require at org/jruby/RubyKernel.java:1040
(root) at /home/nbhoyar/logstash-2.2.0/vendor/jruby/lib/ruby/shared/ffi.rb:1
(root) at /home/nbhoyar/logstash-2.2.0/vendor/bundle/jruby/1.9/gems/logstash-core-2.2.0-java/lib/logstash/util/prctl.rb:1
require at org/jruby/RubyKernel.java:1040
LibC at /home/nbhoyar/logstash-2.2.0/vendor/bundle/jruby/1.9/gems/logstash-core-2.2.0-java/lib/logstash/util/prctl.rb:3
(root) at /home/nbhoyar/logstash-2.2.0/vendor/bundle/jruby/1.9/gems/logstash-core-2.2.0-java/lib/logstash/util/prctl.rb:2
(root) at /home/nbhoyar/logstash-2.2.0/lib/bootstrap/environment.rb:67
I did some research on web and then tried building Logstash from source (commit id: 4d153d2) as follows:
$ git clone https://github.com/elastic/logstash.git
$ cd logstash
$ git reflog
4d153d2 HEAD@{0}: clone: from https://github.com/elastic/logstash.git
$ rake bootstrap
mkdir -p vendor
mkdir vendor/_
Downloading http://jruby.org.s3.amazonaws.com/downloads/1.7.24/jruby-bin-1.7.24.tar.gz
Installing minitar >= 0 because the build process needs it.
mkdir -p build
mkdir -p build/bootstrap
[bootstrap] Fetching and installing gem: minitar (>= 0)
Fetching: minitar-0.5.4.gem (100%)
Successfully installed minitar-0.5.4
Installing minitar >= 0 because the build process needs it.
[bootstrap] Fetching and installing gem: minitar (>= 0)
Fetching: minitar-0.5.4.gem (100%)
Successfully installed minitar-0.5.4
Installing bundler ~> 1.9.4 because the build process needs it.
[bootstrap] Fetching and installing gem: bundler (~> 1.9.4)
Fetching: bundler-1.9.10.gem (100%)
Successfully installed bundler-1.9.10
Invoking bundler install...
/home/nbhoyar/logstash/vendor/bundle/jruby/1.9/gems/ruby-maven-libs-3.3.3/lib/maven.rb:9 warning: executable? does not in this environment and will return a dummy value
Error Bundler::InstallError, retrying 1/10
An error occurred while installing logstash-core-event-java (3.0.0.dev), and Bundler cannot continue.
Make sure that `gem install logstash-core-event-java -v '3.0.0.dev'` succeeds before bundling.
WARNING: SSLSocket#session= is not supported
/home/nbhoyar/logstash/vendor/bundle/jruby/1.9/gems/ruby-maven-libs-3.3.3/lib/maven.rb:9 warning: executable? does not in this environment and will return a dummy value
I then tried installing 'logstash-core-event-java' gem as suggested in the error message but it failed as it is not available in the ruby gem repository (https://rubygems.org/).
$ gem install logstash-core-event-java -v '3.0.0.dev'
ERROR: Could not find a valid gem 'logstash-core-event-java' (= 3.0.0.dev) in any repository
ERROR: Possible alternatives: logstash-codec-netflow, logstash-codec-nmap, logstash-event, logstash-codec-avro, logstash-codec-cef
Can anyone please let me know if this is the right way to go about installing on ARM and if so, then how to install logstash-core-event-java gem?
Thank you!
Nachiket