Logstash不会插入到elasticsearch中(从文件管道传输到stdin)

时间:2015-08-19 22:00:01

标签: elasticsearch logstash

我试图通过Logstash将NYC taxi data插入到elasticsearch中。 使用命令bin/logstash -f myconf.conf < /trip_data1.csv
但我明白了......
Logstash startup completed Logstash shutdown completed
显然什么都没发生。在Elasticsearch中也没有创建/修改索引。
我做错了什么?
这是我的conf文件:

input {
  stdin{}
}

filter {
csv {
    columns => ["medallion","hack_license","vendor_id","rate_code","store_and_fwd_flag","pickup_datetime","dropoff_datetime","passenger_count","trip_time_in_secs","trip_distance","pickup_longitude","pickup_latitude","dropoff_longitude","dropoff_latitude"]
    separator => ","
  }
}

output {
  elasticsearch {
    index => "samples1"
    document_type => "sample"
  }
  stdout { codec => rubydebug }
}

0 个答案:

没有答案