Hello all,
I am brand new to Elastic and working with a CSV. After my initial upload, everything converted to strings so I used mutate to convert. However, my file no longer uploads. I've gone through all the manuals I can and still can't find what's wrong.
I'm open to any suggestions and directions to other places to research how to fix this.
Thank you so much.
input {
file {
path => "/Users/mike/fia/test/*.csv"
start_position => "beginning"
sincedb_path => "dev/null"}
}
filter
{
csv
{
separator => ","
columns => [
"General Offense Number",
"Event Clearance Group",
"Event Clearance Date",
"District/Sector"
"Longitude",
"Latitude",
"Initial Type Group",
"At Scene Time"]
remove_field => ["message"]
}
mutate {
convert => {
"General Offense Number" => "integer",
"Event Clearance Group" => "string",
"District/Sector" => "string",
"Longitude" => "geopoint.lon",
"Latitude" => "geopoint.lat",
"Initial Type Group" => "string"
"At Scene Time"]
}
}
date {
match => ["Event Clearance Data", "MM/dd/yyyy hh:mm"
match => "At Scene Time" = "MM/dd/yyyy HH:mm"]
}
}
output
{
elasticsearch
{
hosts => "http://localhost:9200"
index => "index4"
}
stdout {}
}