# Parsing lon/lat with logstash

**URL:** <https://discuss.elastic.co/t/parsing-lon-lat-with-logstash/113638>\
**Category:** Logstash\
**Created:** [December 30, 2017, 4:37pm UTC](https://discuss.elastic.co/t/parsing-lon-lat-with-logstash/113638 "2017-12-30T16:37:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![BR\_GONGALE](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/br_gongale/32/33506_2.png) [@BR\_GONGALE](https://discuss.elastic.co/u/BR_GONGALE)\
**Post date:** [December 30, 2017, 4:37pm UTC](https://discuss.elastic.co/t/parsing-lon-lat-with-logstash/113638/1 "2017-12-30T16:37:35Z")

</div>

I am facing problem while trying to parse location to 24.7N,118.5W.  
How can parse it to location without removing the N and W from this format 24.7N,118.5W

---

<div class="post-metadata">

**Author:** ![BR\_GONGALE](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/br_gongale/32/33506_2.png) [@BR\_GONGALE](https://discuss.elastic.co/u/BR_GONGALE)\
**Post date:** [December 31, 2017, 6:45am UTC](https://discuss.elastic.co/t/parsing-lon-lat-with-logstash/113638/2 "2017-12-31T06:45:09Z")

</div>

seems like everybody njoying the holidays 😀

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [December 31, 2017, 10:20am UTC](https://discuss.elastic.co/t/parsing-lon-lat-with-logstash/113638/3 "2017-12-31T10:20:45Z")

</div>

That is as far as I know not a valid location format, so I suspect you will need to parse the string and store the latitude and longitude as numbers in a separate field, which you the map as a geo\_point.

---

<div class="post-metadata">

**Author:** ![BR\_GONGALE](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/br_gongale/32/33506_2.png) [@BR\_GONGALE](https://discuss.elastic.co/u/BR_GONGALE)\
**Post date:** [December 31, 2017, 10:38am UTC](https://discuss.elastic.co/t/parsing-lon-lat-with-logstash/113638/4 "2017-12-31T10:38:09Z")

</div>

Thanks for the reply Christian , I was thinking the same but was trying to find if there is any alternate solution to it .  
I am trying to parse data set from NASA fireball events.

> Peak Brightness Date/Time (UT),Latitude (deg.),Longitude (deg.),Altitude (km),Velocity (km/s),vx,vy,vz,Total Radiated Energy (J),Calculated Total Impact Energy (kt)  
> 31-07-2017 22:01,24.7N,118.5W,,,,,,5.80E+10,0.19  
> 23-07-2017 6:12,6.6S,69.7W,38,17.2,-0.4,8.7,-14.8,3.50E+10,0.12

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 1, 2018, 2:37am UTC](https://discuss.elastic.co/t/parsing-lon-lat-with-logstash/113638/5 "2018-01-01T02:37:13Z")

</div>

> [@BR\_GONGALE](#):
>
> seems like everybody njoying the holidays 😀

If you'd like an SLA on your questions we can provide that. Otherwise, it is the end of the year and many people are on holidays.

Please have some patience 🙂

---

<div class="post-metadata">

**Author:** ![BR\_GONGALE](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/br_gongale/32/33506_2.png) [@BR\_GONGALE](https://discuss.elastic.co/u/BR_GONGALE)\
**Post date:** [January 1, 2018, 4:08am UTC](https://discuss.elastic.co/t/parsing-lon-lat-with-logstash/113638/6 "2018-01-01T04:08:47Z")

</div>

I was just kidding don't take it seriously 🙂

---

<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:** [January 29, 2018, 4:08am UTC](https://discuss.elastic.co/t/parsing-lon-lat-with-logstash/113638/7 "2018-01-29T04:08:52Z")

</div>

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