elasticsearch和kibana都在运行,但是当我使用以下命令将csv文件提取到elasticsearch中时,它会自动停止并花一些时间来响应。
bin\logstash -f logstash.config
这是我的logstash.confg
input {
file {
path => "C:\Users\Sireesha Chapa\Desktop\logstashData.csv"
start_position => "beginning"
}
}
filter {
csv {
separator => ","
columns => ["id","group","sex","disease","age"]
}
mutate { convert => ["id" ,"integer"] }
mutate { convert => ["age","integer"] }
}
output {
elasticsearch {
hosts => "localhost:9200"
index => "health"
document_type => "patient_record"
}
stdout{}
}
答案 0 :(得分:0)
将您的logstash配置名称更改为logstash.conf。