as descriped here i ran this template :
put _template/nyc
{
"order":0,
"index_patterns":"nyc",
"mapping":{
"_default":{
"properties":{
"location ":{
"type":"geo_point"
}
}
}
}
}
then i ran my configuration file :
input{
file{
path=>"C:\Users\Ahmed\Desktop\311_Service_Requests_from_2015.csv"
start_position=>"beginning"
sincedb_path=>NUL
}
}
filter{
csv{
separator=>","
columns=>["Unique Key","Created Date","Closed Date","Agency","Agency Name","Complaint Type","Descriptor","Location Type","Incident Zip","Incident Address","Street Name","Cross Street 1","Cross Street 2","Intersection Street 1","Intersection Street 2","Address Type","City","Landmark","Facility Type","Status","Due Date"," Resolution Description","Resolution Action Updated Date","Community Board","Borough","X Coordinate (State Plane)","Y Coordinate (State Plane)","Park Facility Name","Park Borough","School Name","School Number","School Region","School Code","School Phone Number", "School Address","School City","School State","School Zip","School Not Found","School or Citywide Complaint","Vehicle Type","Taxi Company Borough","Taxi Pick Up Location","Bridge Highway Name","Bridge Highway Direction","Road Ramp","Bridge Highway Segment","Garage Lot Name","Ferry Direction","Ferry Terminal Name","Latitude","Longitude","Location"]
}
mutate{
convert=>["Latitude","float"]
convert=>["Longitude","float"]
}
mutate{
rename=>["Latitude","location[lat]"]
rename=>["Longitude","location[lon]"]
}
date{
match=>["Created Date","MM/dd/yyyy HH:mm:ss aa"]
target=>"Date"
}
}
output{
elasticsearch {
hosts=> "localhost"
index=> "nyc"
document_type=>"calls"
}
stdout{codec=>rubydebug}
}
but i only get in the end location.lon and location.lan as float fields and not a geo_point location field as expecting.
so what im doing wrong ?