0
Logstash.conf問題導入CSV logstash 2.3.4窗口
input { file { path => "C:\xampp\htdocs\logstash\sample.csv" sincedb_path => "/dev/null" } } filter { csv { columns => ["Date","Open","High","Low","Close","Volume","Adj Close"] separator => "," } } output { stdout { codec => rubydebug } elasticsearch { hosts => "localhost:9200" index => "stocks" document_type => "stock" } }
錯誤停留在:
的Microsoft Windows [版本10.0.10586](三)2015年微軟 公司。版權所有。
C:\Users\user1>cd C:\xampp\htdocs\logstash
C:\xampp\htdocs\logstash>logstash -f logstash.conf -v io/console not supported; tty will not be manipulated starting agent
{:level=>:info} starting pipeline {:id=>"main", :level=>:info} Settings: Default pipeline workers: 4 Registering file input {:path=>["C:\\xampp\\htdocs\\logstash\\sample.csv"], :level=>:info} Using mapping template from {:path=>nil, :level=>:info} Attempting to install template {:manage_template=>{"template"=>"logstash-*", "settings"=>{"index.refresh_interval"=>"5s"}, "mappings"=>{"_default_"=>{"_all"=>{"enabled"=>true, "omit_norms"=>true}, "dynamic_templates"=>[{"message_field"=>{"match"=>"message", "match_mapping_type"=>"string", "mapping"=>{"type"=>"string", "index"=>"analyzed", "omit_norms"=>true, "fielddata"=>{"format"=>"disabled"}}}}, {"string_fields"=>{"match"=>"*", "match_mapping_type"=>"string", "mapping"=>{"type"=>"string", "index"=>"analyzed", "omit_norms"=>true, "fielddata"=>{"format"=>"disabled"}, "fields"=>{"raw"=>{"type"=>"string", "index"=>"not_analyzed", "ignore_above"=>256}}}}}], "properties"=>{"@timestamp"=>{"type"=>"date"}, "@version"=>{"type"=>"string", "index"=>"not_analyzed"}, "geoip"=>{"dynamic"=>true, "properties"=>{"ip"=>{"type"=>"ip"}, "location"=>{"type"=>"geo_point"}, "latitude"=>{"type"=>"float"}, "longitude"=>{"type"=>"float"}}}}}}}, :level=>:info} New Elasticsearch output {:class=>"LogStash::Outputs::ElasticSearch", :hosts=>["localhost:9200"], :level=>:info} Starting pipeline {:id=>"main", :pipeline_workers=>4, :batch_size=>125, :batch_delay=>5, :max_inflight=>500, :level=>:info} Pipeline main started
究竟是什麼問題?看來你的logstash管道正常啓動。 – Fairy
「管道主要啓動」後我沒有收到任何迴應,請告訴我錯誤在哪裏? –
看起來evertyhing仍然可以。你需要指定__exactly__不工作?你不能存儲事件嗎?你不能訪問elasticsearch集羣嗎?未創建集羣 – Fairy