Failed to send event to MongoDB,When MongoDB Restart


(bo) #1

when MongoDB Restart,Failed to continue send to MongoDB

{:timestamp=>"2016-12-30T11:03:11.564000+0800", :message=>"Failed to send event to MongoDB",
:event=>#<LogStash::Event:0x44605ebb @metadata={"path"=>"C:/tomcat_ceaec2.0.0/bin/apilog/visitorlog.log"},........................................................................
@cancelled=false>, :exception=>#<Mongo::Error::NoServerAvailable: No server is available matching preference: #<Mongo::ServerSelector::Primary:0x36afac1d @tag_sets=[], @server_selection_timeout=30, @options={:database=>"ecreport", :user=>"boot_admin", :password=>"123456"}>>, :backtrace=>["C:/logstash-2.0.0/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/server_selector/selectable.rb:99:in select_server'", "C:/logstash-2.0.0/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/cluster.rb:122:innext_primary'", "C:/logstash-2.0.0/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/collection.rb:190:in insert_many'", "C:/logstash-2.0.0/vendor/bundle/jruby/1.9/gems/mongo-2.0.6/lib/mongo/collection.rb:175:ininsert_one'", "C:/logstash-2.0.0/vendor/bundle/jruby/1.9/gems/logstash-output-mongodb-2.0.5/lib/logstash/outputs/mongodb.rb:56:in receive'", "C:/logstash-2.0.0/vendor/bundle/jruby/1.9/gems/logstash-core-2.0.0-java/lib/logstash/outputs/base.rb:80:inhandle'", "(eval):60:in output_func'", "C:/logstash-2.0.0/vendor/bundle/jruby/1.9/gems/logstash-core-2.0.0-java/lib/logstash/pipeline.rb:252:inoutputworker'", "C:/logstash-2.0.0/vendor/bundle/jruby/1.9/gems/logstash-core-2.0.0-java/lib/logstash/pipeline.rb:169:in `start_outputs'"], :level=>:warn}


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.