Hi all,
In my configuration, I have Logstash getting Syslog authentication in an EC2 instance (Instance 1) , and sending the to Elasticsearch/Kibana in a second EC2 instance (Instance 2).
When Java 7 installed on (Instance 1)
# java -version
java version "1.7.0_79"
OpenJDK Runtime Environment (IcedTea 2.5.6) (7u79-2.5.6-0ubuntu1.14.04.1)
OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)
Things work just fine with the following message :
# /opt/logstash/bin/logstash -f /etc/logstash/syslog-test.conf
'[DEPRECATED] use `require 'concurrent'` instead of `require 'concurrent_ruby'`
[2015-08-12 10:52:43.232] WARN -- Concurrent: [DEPRECATED] Java 7 is deprecated, please use Java 8.
Java 7 support is only best effort, it may not work. It will be removed in next release (1.0).
Aug 12, 2015 10:52:44 AM org.elasticsearch.node.internal.InternalNode <init>
INFO: [logstash-0.0.0.0-13321-13466] version[1.7.0], pid[13321], build[929b973/2015-07-16T14:31:07Z]
Aug 12, 2015 10:52:44 AM org.elasticsearch.node.internal.InternalNode <init>
INFO: [logstash-0.0.0.0-13321-13466] initializing ...
...
...
Aug 12, 2015 10:52:50 AM org.elasticsearch.node.internal.InternalNode start
INFO: [logstash-0.0.0.0-13321-13466] started
Logstash startup completed
But, when runnin the same Logstash conf file on another instance (Instance 3) with Java 8 installed.
# java -version
java version "1.8.0_51"
Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)
It fails with the following message.
# /opt/logstash/bin/logstash -f /etc/logstash/syslog-test.conf
'[DEPRECATED] use `require 'concurrent'` instead of `require 'concurrent_ruby'`
NotImplementedError: block device detection unsupported or native support failed to load
blockdev? at org/jruby/RubyFileTest.java:67
device? at /opt/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.6.4/l ib/filewatch/helper.rb:67
_sincedb_write at /opt/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.6.4/l ib/filewatch/tail.rb:233
sincedb_write at /opt/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.6.4/l ib/filewatch/tail.rb:206
teardown at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-fi le-1.0.0/lib/logstash/inputs/file.rb:152
inputworker at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-1.5 .3-java/lib/logstash/pipeline.rb:203
synchronize at org/jruby/ext/thread/Mutex.java:149
inputworker at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-1.5 .3-java/lib/logstash/pipeline.rb:203
start_input at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-1.5 .3-java/lib/logstash/pipeline.rb:171
Could you please help me fix this?
Thanks.