Logstash failed to write in ES!

WARNING: Could not find logstash.yml which is typically located in $LS_HOME/config or /etc/logstash. You can specify the path using --path.settings. Continuing using the defaults
Could not find log4j2 configuration at path /usr/share/logstash/config/log4j2.properties. Using default config which logs errors to the console
[WARN ] 2018-12-05 18:50:13.987 [LogStash::Runner] multilocal - Ignoring the 'pipelines.yml' file because modules or command line options are specified
[INFO ] 2018-12-05 18:50:14.004 [LogStash::Runner] runner - Starting Logstash {"logstash.version"=>"6.5.1"}
[INFO ] 2018-12-05 18:50:17.054 [Converge PipelineAction::Create<main>] pipeline - Starting pipeline {:pipeline_id=>"main", "pipeline.workers"=>8, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>50}
[INFO ] 2018-12-05 18:50:17.324 [Converge PipelineAction::Create<main>] pipeline - Pipeline started successfully {:pipeline_id=>"main", :thread=>"#<Thread:0xd1a94a2 run>"}
[INFO ] 2018-12-05 18:50:17.391 [Ruby-0-Thread-1: /usr/share/logstash/lib/bootstrap/environment.rb:6] agent - Pipelines running {:count=>1, :running_pipelines=>[:main], :non_running_pipelines=>[]}
[INFO ] 2018-12-05 18:50:17.430 [[main]<file] observingtail - START, creating Discoverer, Watch with file and sincedb collections
[INFO ] 2018-12-05 18:50:17.761 [Api Webserver] agent - Successfully started Logstash API endpoint {:port=>9601}

Make sure you set the java path in environment variables.
check in command prompt,
java -version

how to check that on ubuntu 16.04 ?

As i said,
open command prompt, you also have it in ubuntu

not that ..u said to set java path in env variable, that is what i am asking how to do ?

set environment variables as follows

Edit the system Path file /etc/profile

sudo gedit /etc/profile

Add following lines in end

export JAVA_HOME
export JRE_HOME
export PATH


follow this path

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.