Illegal latitude value


(Sharon Sasporta) #1

Hi,

Three of my events are missing in Elastic search. I found the following warning in the Logstash log:

[WARN ][logstash.outputs.elasticsearch] Could not index event to Elasticsearch.

In the first event the IP is: 73.112.77.205 The error reason"=>"illegal latitude value [-97.822] The real latitude is: 40.6221

In the second event the IP is: 98.200.8.132 The error reason"=>"illegal latitude value [-95.4692] The real latitude is: 29.7419

In the third event the IP is: 73.91.231.150 The error reason"=>"illegal latitude value [-93.902] The real latitude is: 32.2669

Any idea or direction what to check?

Regards,
Sharon.


(Sharon Sasporta) #2

I understand that the latitude and longitude Actually were swap. Looking on the Logstash output , I see the events are in the right order:

"ip" => "98.200.8.132",
"latitude" => 30.2264,
"continent_code" => "NA",
"city_name" => "Conroe",
"country_code2" => "US",
"country_name" => "United States",
"dma_code" => 618,
"country_code3" => "US",
"region_name" => "Texas",
"location" => [
[0] -95.4692,
[1] 30.2264
],
"postal_code" => "77384",
"longitude" => -95.4692,
"region_code" => "TX"

What is wrong?

Thanks
Sharon


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.