Logstash version : 5.5.2
Elasticsearch version:5.5.2
When I use the command line(bin/logstash -f /etc/logstash/hello_es.conf), it throws a such error:
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
Sending Logstash's logs to /home/wangyufeng/logstash-5.5.2/logs which is now configured via log4j2.properties
[2017-08-29T18:39:44,022][ERROR][logstash.agent ] Cannot create pipeline {:reason=>"Expected one of #, input, filter, output at line 1, column 1 (byte 1) after "}
Thanks. the content of the hello_es.conf is:
input {
stdin {
type => "human"
}
}
output {
stdout {
codec => rubydebug
}
elasticsearch {
host => "10.62.179.32"
port => 9200
}
}
And it is located in/home/wangyfueng/logstash-5.5.2/cconfig/, when I run the command: bin/logstash -f /home/wangyfueng/logstash-5.5.2/cconfig/hello_es.conf, it throws this error:
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
Sending Logstash's logs to /home/wangyufeng/logstash-5.5.2/logs which is now configured via log4j2.properties
[2017-08-30T14:10:35,377][ERROR][logstash.outputs.elasticsearch] Unknown setting 'host' for elasticsearch
[2017-08-30T14:10:35,380][ERROR][logstash.outputs.elasticsearch] Unknown setting 'port' for elasticsearch
[2017-08-30T14:10:35,386][ERROR][logstash.agent ] Cannot create pipeline {:reason=>"Something is wrong with your configuration."}
elasticsearch {
host => ["10.62.179.32: 9200"]
}
}
but it still has the error:
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
Sending Logstash's logs to /home/wangyufeng/logstash-5.5.2/logs which is now configured via log4j2.properties
[2017-08-30T15:30:32,430][ERROR][logstash.outputs.elasticsearch] Unknown setting 'host' for elasticsearch
[2017-08-30T15:30:32,440][ERROR][logstash.agent ] Cannot create pipeline {:reason=>"Something is wrong with your configuration."}
Do I need to modify the path of logs in log4j2.properties? But I don't konw which line is the logs' path.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.