After creating basic lostash.conf file and running the command to verify it ..I get the error as follows -
logstash.conf
input {
beats {
port => "5044"
}
}
The filter part of this file is commented out to indicate that it is
optional.
filter {
}
output {
stdout { codec => rubydebug }
}
command -
C:\elastic\logstash-5.2.0\bin>logstash -f logstash.conf --config.test_and_exit
Could not find log4j2 configuration at path /elastic/logstash-5.2.0/config/log4j
2.properties. Using default config which logs to console
17:36:53.317 [LogStash::Runner] INFO logstash.runner - No config files found in
path {:path=>"C:/elastic/logstash-5.2.0/bin/logstash.conf"}
17:36:53.373 [LogStash::Runner] FATAL logstash.runner - An unexpected error occu
rred! {:error=>#<RuntimeError: No config files found: logstash.conf. Can you mak
e sure this path is a logstash config file?>, :backtrace=>["C:/elastic/logstash-
5.2.0/logstash-core/lib/logstash/config/loader.rb:18:in format_config'", "C:/el astic/logstash-5.2.0/logstash-core/lib/logstash/runner.rb:250:in
execute'", "C:
/elastic/logstash-5.2.0/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/comma
nd.rb:67:in run'", "C:/elastic/logstash-5.2.0/logstash-core/lib/logstash/runner .rb:183:in
run'", "C:/elastic/logstash-5.2.0/vendor/bundle/jruby/1.9/gems/clamp
-0.6.5/lib/clamp/command.rb:132:in run'", "C:\\elastic\\logstash-5.2.0\\lib\\bo otstrap\\environment.rb:71:in
(root)'"]}