# Kibana geo distance syntax query

**URL:** https://discuss.elastic.co/t/kibana-geo-distance-syntax-query/19310
**Category:** Elasticsearch
**Created:** [August 16, 2014, 2:03pm UTC](https://discuss.elastic.co/t/kibana-geo-distance-syntax-query/19310 "2014-08-16T14:03:01Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Ishafizan\_Ishak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ishafizan_ishak/32/125655_2.png) [@Ishafizan\_Ishak](https://discuss.elastic.co/u/Ishafizan_Ishak)
#### Post date: [August 16, 2014, 2:03pm UTC](https://discuss.elastic.co/t/kibana-geo-distance-syntax-query/19310/1 "2014-08-16T14:03:01Z")

</div>

Hi,

I'm trying to use kibana to search and return records x distance from a  
specified log lat. I'm able to query and return results with the following,  
but wondering how to query it via kibana

{  
"sort": [  
{  
"\_geo\_distance": {  
"my\_checkins.my\_geo": [  
123,  
4  
],  
"order": "asc",  
"unit": "km"  
}  
}  
],  
"query": {  
"filtered": {  
"query": {  
"match\_all": {}  
},  
"filter": {  
"geo\_distance": {  
"distance": "1km",  
"my\_checkins.my\_geo": [  
123,  
4  
]  
}  
}  
}  
}  
}

... hv only got to

\*my\_checkins.my\_geo:123,4 \*into the search box and returns zero results.  
need some insight how to apply the filter/geo\_distance bits.

tx

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/c21e6f3a-2480-4c72-aadf-ccea07dc0c53%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c21e6f3a-2480-4c72-aadf-ccea07dc0c53%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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: [July 6, 2017, 1:08am UTC](https://discuss.elastic.co/t/kibana-geo-distance-syntax-query/19310/2 "2017-07-06T01:08:09Z")

</div>


