linux - Logstash -Could not find any executable java binary -
i have elk installed on vm in laptop.elasticsearch , running.
./bin/logstash -f logstash-filter.conf gives me below error not find executable java binary. please install java in path or set java_home.
i tried setting java_home
, $ path
, still issue persistent. missing something?
java /usr/bin/java java -version java version "1.7.0_79" openjdk runtime environment (icedtea 2.5.5) (7u79-2.5.5-0ubuntu0.14.04.2) openjdk 64-bit server vm (build 24.79-b02, mixed mode) echo $java_home /usr/local/java/jdk1.8.0_45 echo $path /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/divija/bin:/usr/local/java/jdk1.8.0_45/bin
logstash-filter.conf
input { stdin { } } filter { grok { match => { "message" => "%{combinedapachelog}" } } date { match => [ "timestamp" , "dd/mmm/yyyy:hh:mm:ss z" ] } } output { elasticsearch { host => localhost index=>"myindex" } stdout { codec => rubydebug }`enter code here` }
i had
export javacmd=`which java`
to make work.
Comments
Post a Comment