Hi,
I am getting the following exception in Elasticsearch:
Caused by: java.lang.IllegalArgumentException:illegal latitude value [269.9999642930925]
for clientrealip
at
clientrealip is my ip filed.
In the logstash output:
"clientrealip" => "73.35.67.125"
I tried to convert to fload, but it doesn't help.
geoip {
source => "clientrealip"
target => "geoip.location"
#database => "/etc/logstash/GeoLiteCity.dat"
add_field => [ "[geoip.location][coordinates]", "%{[geoip.location][longitude]}" ]
add_field => [ "[geoip.location][coordinates]", "%{[geoip.location][latitude]}" ]
}
mutate
{
convert => { "[geoip.location][latitude]" => "float" }
}
The output in logstash also show :
"geoip.location" => {
"timezone" => "America/New_York",
"ip" => "73.35.67.125",
"latitude" => 29.7596,
"continent_code" => "NA",
"city_name" => "St. Augustine",
"country_code2" => "US",
"country_name" => "United States",
"dma_code" => 561,
"country_code3" => "US",
"region_name" => "Florida",
"location" => [
[0] -81.3029,
[1] 29.7596
],
"postal_code" => "32086",
"longitude" => -81.3029,
"region_code" => "FL"
},
What am I missing here? How can I solve it?
Regards,
Sharon.