I am not dealing with IPs here and my concern is about geopoint not geoip .
I am dealing with Longitudes and Latitudes. I am picking Long and Lat in my
sql data set. There are two columns, Latitude and Longitude so how should I
use them in my filter.
I hope you can't map Longitudes and Latitudes separately. If you pass the IP field in geoip filter it automatically fetch the latitude and longitude field from the ip address.
I hope you can't map Longitudes and Latitudes separately. If you pass the IP field in geoip filter it automatically fetch the latitude and longitude field from the ip address.
@rajkamalkool6, again, there is no IP address here so the geoip filter isn't useful. Enough about the geoip filter.
@mrizwan, there are two things at play here: the mapping of the field in Elasticsearch and what the document you send to Elasticsearch. The ES documentation about the geo_point type describes what fields must look like to be convertible to geo_point values. Make sure you comply with those rules. Also check the mapping if your index so that the target field is mapped as geo_point.
@magnusbaeck - Thanks for the explanation , I have completely understood your point.
What I am doing is, I have mapped that field like this in Elasticsearch " Location": {"type": "geo_point"} " and according to the ES compliance, geo_point requires two columns in data set like these
location.lat,
location.lon
Now, what I have to do to set these two columns values to geo_ip
I think I have to do something like this in our filter
grok{
geo_ip => [location.lat , location.long]
}
For the third time, please show the output of the stdout { codec => rubydebug } output already in your config file. I can't suggest what you should do if I don't know what your events look like.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.