导入csv logstash 2.3.4窗口时出现问题

时间:2016-08-25 08:33:59

标签: csv logstash

  1. Logstash.conf

    C:\Users\user1>cd C:\xampp\htdocs\logstash

    错误停留在:

    Microsoft Windows [Version 10.0.10586](c)2015 Microsoft 公司。保留所有权利。

    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

    {{1}}

1 个答案:

答案 0 :(得分:1)

可能是不支持的Windows样式路径;因此,请尝试更改此

path => "C:\xampp\htdocs\logstash\sample.csv"

path => "C:/xampp/htdocs/logstash/sample.csv"

适用于我的Logstash。