Hi Team,
I am using ELK version: 6.8.23. Though Logstash uploaded csv file data are not present in elasticsearch.
my logstash conf file content as follows,
input {
file {
path => "/home/data/reports/*.csv"
start_position => "beginning"
type => metric2
}
}
filter {
csv {
separator => ","
skip_header => "true"
columns => [ "from_date","to_date","total_builds_triggered","builds_retriggered","mpm_build_success","mpm_build_error","mpm_success_rate","image_success","image_error","image_success_rate" ]
}
}
output {
if [type]=="metric2" {
elasticsearch {
hosts => "http://localhost:9200"
index => "test"
document_type => "test_logs"
}
}
stdout {
}
}
In logstash logs i dont find any reasons, Please let me know how do i solve this problem ?