# Illegal latitude value

**URL:** <https://discuss.elastic.co/t/illegal-latitude-value/96163>\
**Category:** Logstash\
**Created:** [August 7, 2017, 11:50pm UTC](https://discuss.elastic.co/t/illegal-latitude-value/96163 "2017-08-07T23:50:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssasporta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ssasporta/32/13695_2.png) [@ssasporta](https://discuss.elastic.co/u/ssasporta)\
**Post date:** [August 7, 2017, 11:50pm UTC](https://discuss.elastic.co/t/illegal-latitude-value/96163/1 "2017-08-07T23:50:07Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ssasporta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ssasporta/32/13695_2.png) [@ssasporta](https://discuss.elastic.co/u/ssasporta)\
**Post date:** [August 8, 2017, 12:17am UTC](https://discuss.elastic.co/t/illegal-latitude-value/96163/2 "2017-08-08T00:17:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 5, 2017, 12:18am UTC](https://discuss.elastic.co/t/illegal-latitude-value/96163/3 "2017-09-05T00:18:17Z")

</div>

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