elasticsearch - logstash 5.0 ubuntu 14.04 -
i trying install elk stack read apache access logs.
i have installed kibana , elasticsearch documentation, , running successfully. when got logstash installation, have installed it, when run upstart command run service doesn't seem working.
i getting when doing update && install logstash
command:
w: size of file /var/lib/apt/lists/artifacts.elastic.co_packages_5.x_apt_dists_stable_main_binary-i386_packages.gz not server reported 1438 1659
when run command sudo initctl start logstash
, in /var/log/logstash/logstash-plain.log
:
[2016-11-08t10:39:19,671][error][logstash.agent ] failed fetch pipeline configuration {:message=>"no config files found: /etc/logstash/conf.d/*\ncan make sure path logstash config file?"} [2016-11-08t11:05:08,863][info ][logstash.outputs.elasticsearch] elasticsearch pool urls updated {:changes=>{:removed=>[], :added=>["http://localhost:9200"]}} [2016-11-08t11:05:09,009][info ][logstash.outputs.elasticsearch] using mapping template {:path=>nil} [2016-11-08t11:05:09,676][info ][logstash.outputs.elasticsearch] attempting install template {:manage_template=>{"template"=>"logstash-*", "version"=>50001, "settings"=>{"index.refresh_interval"=>"5s"}, "mappings"=>{"_default_"=>{"_all"=>{"enabled"=>true, "norms"=>false}, "dynamic_templates"=>[{"message_field"=>{"path_match"=>"message", "mat$ [2016-11-08t11:05:09,816][info ][logstash.outputs.elasticsearch] installing elasticsearch template _template/logstash [2016-11-08t11:05:10,037][info ][logstash.outputs.elasticsearch] new elasticsearch output {:class=>"logstash::outputs::elasticsearch", :hosts=>["localhost:9200"]} [2016-11-08t11:05:10,432][info ][logstash.pipeline ] starting pipeline {"id"=>"main", "pipeline.workers"=>8, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>5, "pipeline.max_inflight"=>1000} [2016-11-08t11:05:10,449][info ][logstash.pipeline ] pipeline main started [2016-11-08t11:05:10,839][info ][logstash.agent ] started logstash api endpoint {:port=>9600} [2016-11-08t11:05:30,798][warn ][logstash.runner ] sigint received. shutting down agent. [2016-11-08t11:05:30,807][warn ][logstash.agent ] stopping pipeline {:id=>"main"}
it seems have ran once , cannot start or restart or anything, have missed?
the documentation says should happen, doesn't seem happening:
the auto-generated configuration file upstart systems /etc/init/logstash.conf.
i looked in /etc/logstash/startup.options
, in heading says if changes run /usr/share/logstash/bin/system-install
update init startup script. getting error if manually run ./system-install
:
sending logs /tmp/tmp.cstnswdf4d nomethoderror: undefined method `tr' nil:nilclass detect_upstart @ /usr/share/logstash/vendor/bundle/jruby/1.9/gems/pleaserun-0.0.24/lib/pleaserun/detector.rb:45 detect_platform @ /usr/share/logstash/vendor/bundle/jruby/1.9/gems/pleaserun-0.0.24/lib/pleaserun/detector.rb:24 detect @ /usr/share/logstash/vendor/bundle/jruby/1.9/gems/pleaserun-0.0.24/lib/pleaserun/detector.rb:18 setup_defaults @ /usr/share/logstash/vendor/bundle/jruby/1.9/gems/pleaserun-0.0.24/lib/pleaserun/cli.rb:141 execute @ /usr/share/logstash/vendor/bundle/jruby/1.9/gems/pleaserun-0.0.24/lib/pleaserun/cli.rb:107 run @ /usr/share/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:67 run @ /usr/share/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:132 (root) @ /usr/share/logstash/lib/systeminstall/pleasewrap.rb:12 unable install system startup script logstash.
Comments
Post a Comment