Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kibana4 and geohash #3825

Closed
florentvaldelievre opened this issue May 13, 2015 · 2 comments
Closed

Kibana4 and geohash #3825

florentvaldelievre opened this issue May 13, 2015 · 2 comments

Comments

@florentvaldelievre
Copy link

Hello,

I am trying to understand what is wrong with my geohash configuration as the point displayed on the map is not at the correct location. It should be in Nice, France

Mapping:

"logstash-2015.05.13": {
    "mappings": {
        "fluentd": {
            "properties": {
                "@timestamp": {
                    "type": "date",
                    "format": "dateOptionalTime"
                },
                "geo.coordinates": {
                    "type": "geo_point",
                    "geohash": true
                }
            }
        }
    }
}

Index example

{
  "_index": "logstash-2015.05.13",
  "_type": "fluentd",
  "_id": "AU1LsDc932FcdThT2yaW",
  "_score": null,
  "_source": {
    "geo.coordinates": [
      43.713600158691406,
      7.259500026702881
    ]
  }
}

Map displayed
Map

Any idea ?

@markwalkom
Copy link
Contributor

ES requires lat then long, see the docs for more info. Are you sure your values are in the right order?

@florentvaldelievre
Copy link
Author

Oh! You pointed me to the right direction. geohash is the other way around when using an array:

Quoted from the doc "Everybody gets caught at least once: string geo-points are "latitude,longitude", while array geo-points are [longitude,latitude]—the opposite order!" :)

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants