I am using UDP input & output plugin and codec => json_lines . Since few days I am observing that my logstash process is getting restarted every few minutes and below error is noted in the logstash logs. Any one else faced this issue earlier and resolved it. Please help.
[2017-10-12T18:25:57,890][FATAL][logstash.runner ] An unexpected error occurred! {:error=>#<SocketError: send: name or service not known>, :backtrace=>["org/jruby/ext/socket/RubyUDPSocket.java:322:in send'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-udp-3.0.3/lib/logstash/outputs/udp.rb:24:in
register'", "org/jruby/RubyProc.java:281:in call'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-codec-json_lines-3.0.3/lib/logstash/codecs/json_lines.rb:48:in
encode'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-udp-3.0.3/lib/logstash/outputs/udp.rb:31:in receive'", "/usr/share/logstash/logstash-core/lib/logstash/outputs/base.rb:92:in
multi_receive'", "org/jruby/RubyArray.java:1613:in each'", "/usr/share/logstash/logstash-core/lib/logstash/outputs/base.rb:92:in
multi_receive'", "/usr/share/logstash/logstash-core/lib/logstash/output_delegator_strategies/legacy.rb:22:in multi_receive'", "/usr/share/logstash/logstash-core/lib/logstash/output_delegator.rb:47:in
multi_receive'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:420:in output_batch'", "org/jruby/RubyHash.java:1342:in
each'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:419:in output_batch'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:365:in
worker_loop'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:330:in `start_workers'"]}