Logstashからnginxのアクセスログを別のサーバで動いているElasticsearchに送りたいのですがエラーが出て困っています
[2019-07-22T12:24:18,898][FATAL][logstash.runner ] An unexpected error occurred! {:error=>#<SocketError: initialize: name or service not known>, :backtrace=>["org/jruby/ext/socket/RubyTCPServer.java:124:in
initialize'", "org/jruby/RubyIO.java:876:in
new'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/puma-2.16.0-java/lib/puma/binder.rb:234:inadd_tcp_listener'", "(eval):2:in
add_tcp_listener'", "/usr/share/logstash/logstash-core/lib/logstash/webserver.rb:88:instart_webserver'", "/usr/share/logstash/logstash-core/lib/logstash/webserver.rb:44:in
block in run'", "org/jruby/RubyRange.java:511:ineach'", "org/jruby/RubyEnumerable.java:1194:in
each_with_index'", "/usr/share/logstash/logstash-core/lib/logstash/webserver.rb:39:inrun'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:376:in
block in start_webserver'"]}
[2019-07-22T12:24:18,922][ERROR][org.logstash.Logstash ] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit
[2019-07-22T12:24:40,752][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"7.2.0"}
[2019-07-22T12:24:42,314][ERROR][logstash.filters.mutate ] Unknown setting 'replate' for mutate
[2019-07-22T12:24:42,321][ERROR][logstash.agent ] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:nginx, :exception=>"LogStash::ConfigurationError", :message=>"Something is wrong with your configuration.", :backtrace=>["/usr/share/logstash/logstash-core/lib/logstash/config/mixin.rb:87:inconfig_init'", "/usr/share/logstash/logstash-core/lib/logstash/filters/base.rb:126:in
initialize'", "org/logstash/plugins/PluginFactoryExt.java:81:infilter_delegator'", "org/logstash/plugins/PluginFactoryExt.java:251:in
plugin'", "org/logstash/execution/JavaBasePipelineExt.java:50:ininitialize'", "/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:24:in
initialize'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline_action/create.rb:36:inexecute'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:325:in
block in converge_state'"]}
[2019-07-22T12:24:42,543][FATAL][logstash.runner ] An unexpected error occurred! {:error=>#<SocketError: initialize: name or service not known>, :backtrace=>["org/jruby/ext/socket/RubyTCPServer.java:124:ininitialize'", "org/jruby/RubyIO.java:876:in
new'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/puma-2.16.0-java/lib/puma/binder.rb:234:inadd_tcp_listener'", "(eval):2:in
add_tcp_listener'", "/usr/share/logstash/logstash-core/lib/logstash/webserver.rb:88:instart_webserver'", "/usr/share/logstash/logstash-core/lib/logstash/webserver.rb:44:in
block in run'", "org/jruby/RubyRange.java:511:ineach'", "org/jruby/RubyEnumerable.java:1194:in
each_with_index'", "/usr/share/logstash/logstash-core/lib/logstash/webserver.rb:39:inrun'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:376:in
block in start_webserver'"]}
[2019-07-22T12:24:42,577][ERROR][org.logstash.Logstash ] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit
[2019-07-22T12:24:54,857][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"7.2.0"}
[2019-07-22T12:24:56,399][ERROR][logstash.filters.mutate ] Unknown setting 'replate' for mutate
[2019-07-22T12:24:56,406][ERROR][logstash.agent ] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:nginx, :exception=>"LogStash::ConfigurationError", :message=>"Something is wrong with your configuration.", :backtrace=>["/usr/share/logstash/logstash-core/lib/logstash/config/mixin.rb:87:inconfig_init'", "/usr/share/logstash/logstash-core/lib/logstash/filters/base.rb:126:in
initialize'", "org/logstash/plugins/PluginFactoryExt.java:81:infilter_delegator'", "org/logstash/plugins/PluginFactoryExt.java:251:in
plugin'", "org/logstash/execution/JavaBasePipelineExt.java:50:ininitialize'", "/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:24:in
initialize'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline_action/create.rb:36:inexecute'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:325:in
block in converge_state'"]}
[2019-07-22T12:24:56,600][FATAL][logstash.runner ] An unexpected error occurred! {:error=>#<SocketError: initialize: name or service not known>, :backtrace=>["org/jruby/ext/socket/RubyTCPServer.java:124:ininitialize'", "org/jruby/RubyIO.java:876:in
new'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/puma-2.16.0-java/lib/puma/binder.rb:234:inadd_tcp_listener'", "(eval):2:in
add_tcp_listener'", "/usr/share/logstash/logstash-core/lib/logstash/webserver.rb:88:instart_webserver'", "/usr/share/logstash/logstash-core/lib/logstash/webserver.rb:44:in
block in run'", "org/jruby/RubyRange.java:511:ineach'", "org/jruby/RubyEnumerable.java:1194:in
each_with_index'", "/usr/share/logstash/logstash-core/lib/logstash/webserver.rb:39:inrun'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:376:in
block in start_webserver'"]}
[2019-07-22T12:24:56,625][ERROR][org.logstash.Logstash ] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit
/etc/logstash/pipelines.yml
.- pipeline.id: nginx
pipeline.batch.size: 125
path.config: "/etc/logstash/conf.d/nginx.conf"
pipeline.workers: 1
/etc/logstash/conf.d/nginx.conf
input {
file {
path => "/var/log/nginx/access.log"
start_position => beginning
}
}
filter {
grok {
match => { "message" => "%{COMBINEDAPACHELOG}" }
}
date {
match => [ "timestamp", "dd/MM/yyyy:HH:mm:ss Z"]
locale => "en"
}
mutate {
replate => { "type" => "nginx_log" }
}
}
output {
elasticsearch {
hosts => ["192.168.0.11:9200", "192.168.0.12:9200", "192.168.0.13:9200", "192.168.0.14:9200", "192.168.0.15:9200"]
index => "nginx_%{+YYYYMMdd}"
}
}
どなたかわかる方よろしくお願いします。