No configuration files found in Logstash 1.4

I follow the process http://logstash.net/docs/1.4.0/tutorials/getting-started-with-logstash

but even if I try to execute "logstash agent -f" D: \ logstash.conf with

input { stdin { } }
output {
  elasticsearch { host => localhost }
  stdout { codec => rubydebug }
}

he returns me an error:

Error: configuration files not found: D: \ logstash.conf Can you verify that this path is the logstash configuration file? and blah blah blah

I'm really confused.

+4
source share
2 answers

On Windows, you need to use the slash "/" instead of the usual backslash "\" in the path to the configuration file.

+8
source

: - Windows

logstash-1.4.2:

logstash agent -f   "C:/logstash-1.4.2/logstash-1.4.2/simple.conf"

:

logstash.bat agent -f   "C:/logstash-1.4.2/logstash-1.4.2/simple.conf"

logstash mongodb (http://vaibhavtupe.blogspot.com/2014/11/using-logstash-for-large-scale-log.html)

+1

Source: https://habr.com/ru/post/1537137/


All Articles