logback logstash connection reset by peer -


my logstash in docker container.so port 80 docker host port 8805 ,which configure it. logback.xml:

<appender name="stash" class="net.logstash.logback.appender.logstashtcpsocketappender"> <destination>172.16.10.5:8805</destination>       <keepaliveduration>5 minutes</keepaliveduration> <reconnectiondelay>1 second</reconnectiondelay>  <encoder charset="utf-8" class="net.logstash.logback.encoder.logstashencoder" /> </appender> 

logstash.conf:

  input {         tcp {             port => 4560             codec => json_lines         }     } 

i run bin/logstash -f logstash.conf --debug when run logback test demo send logs remost host logstashtcpsocketappender. logstash shows sth:

[2017-09-13t10:25:35,543][debug][logstash.inputs.tcp ] accepted connection {:client=>"10.18.12.222:55206", :server=>"0.0.0.0:80"} [2017-09-13t10:25:35,550][debug][logstash.codecs.line ] config logstash::codecs::line/@id = "line_4cbf1e76-e096-419b-b7c9-8a40daa19387" [2017-09-13t10:25:35,550][debug][logstash.codecs.line ] config logstash::codecs::line/@enable_metric = true [2017-09-13t10:25:35,550][debug][logstash.codecs.line ] config logstash::codecs::line/@charset = "utf-8" [2017-09-13t10:25:35,550][debug][logstash.codecs.line ] config logstash::codecs::line/@delimiter = "\n" [2017-09-13t10:25:35,560][debug][logstash.inputs.tcp ] connection reset peer {:client=>"10.18.12.222:55206"}  

the logstash can't receive anything. when use telnet 172.16.10.5:8805 test it.

the logstash can't receive input command window.

and try original socketappender :ch.qos.logback.classic.net.socketappender,it show error.

i think problem logback's sockerappender.it can't connection logstash tcp input plugin correctly.

does can me ?i need it


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -