我正在尝试将大量日志文件(大约700个文件)从logstash发送到Elasticsearch。但是,当我启动logstash时,日志没有发送到elasticsearch。它会引发类似这样的错误,
{:timestamp =>“ 2018-06-23T10:01:08.602000 + 0000”,:message =>“ host ..”,:class =>“ Manticore :: ResolutionFailure”,:backtrace => [“ Logstash /Logstash-900.0-0/vendor/bundle/jruby/1.9/gems/manticore-0.4.4-java/lib/manticore/response.rb:35:in initialize'“,” org / jruby / RubyProc.java:271 :incall'“,” /local/apollo/package/local_1/Linux-2.6c2.5-x86_64/Logstash/Logstash-900.0-0/vendor/bundle/jruby/1.9/gems/manticore-0.4.4-java/ lib / manticore / response.rb:70:in call'“,” /local/apollo/package/local_1/Linux-2.6c2.5-x86_64/Logstash/Logstash-900.0-0/vendor/bundle/jruby/1.9/ gems / manticore-0.4.4-java / lib / manticore / response.rb:245:incall_once'“。
{:timestamp =>“ 2018-06-23T10:01:08.602000 + 0000”,:message =>“尝试向配置为'[” http://host:9200/“]'的Elasticsearch发送批量请求,但是错误发生并且失败!您确定可以使用提供的配置从这台机器上到达Elasticsearch吗?“,:client_config => {:hosts => [” http://host:9200/“],:ssl => nil,: transport_options => {:socket_timeout => 0,:request_timeout => 0,:proxy => nil,:ssl => {}},:transport_class => Elasticsearch :: Transport :: Transport :: HTTP :: Manticore,:logger => nil,:tracer => nil,:reload_connections => false,:retry_on_failure => false,:reload_on_failure => false,:randomize_hosts => false},:error_message =>“主机”,:error_class =>“ Manticore: :ResolutionFailure”,
input {
file {
path => "/logfiles/*"
start_position => "beginning"
sincedb_path => "/dev/null"
}
}
output {
elasticsearch {
hosts => [ "host.ip.address:9200" ]
index => "sample"
}
stdout {
codec => rubydebug
}
}
谢谢。