我试图通过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 }
}