# Kibana Geohash Zoom Errors Past Precision Level 12

**URL:** <https://discuss.elastic.co/t/kibana-geohash-zoom-errors-past-precision-level-12/95016>\
**Category:** Kibana\
**Created:** [July 28, 2017, 9:17pm UTC](https://discuss.elastic.co/t/kibana-geohash-zoom-errors-past-precision-level-12/95016 "2017-07-28T21:17:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![seth.yes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seth.yes/32/11788_2.png) [@seth.yes](https://discuss.elastic.co/u/seth.yes)\
**Post date:** [July 28, 2017, 9:17pm UTC](https://discuss.elastic.co/t/kibana-geohash-zoom-errors-past-precision-level-12/95016/1 "2017-07-28T21:17:08Z")

</div>

Kibana 5.4.1  
ES: 5.4.1  
x-pack installed

This issue has persisted through about four different 5.x versions;

Without even using a tilemap -- a data table with the aggregation on the geohash: `nginxgeo1` field fails when the precision is greater than 12, as seen in the data table below. This occurs regardless of the geocentroid option and regardless of the type of visualization (tilemap, data table..).

![image](https://us1.discourse-cdn.com/elastic/original/3X/8/c/8cb9e42bcf62ae35444bba662a152ed64ca18487.png)

the full error message:

```auto
Error: [parsing_exception] [geohash_grid] failed to parse field [precision], with { line=1 & col=286 }
    at respond (http://elastic-monitor/bundles/kibana.bundle.js?v=15122:12:2730)
    at checkRespForFailure (http://elastic-monitor/bundles/kibana.bundle.js?v=15122:12:1959)
    at http://elastic-monitor/bundles/kibana.bundle.js?v=15122:1:9824
    at processQueue (http://elastic-monitor/bundles/commons.bundle.js?v=15122:38:23621)
    at http://elastic-monitor/bundles/commons.bundle.js?v=15122:38:23888
    at Scope.$eval (http://elastic-monitor/bundles/commons.bundle.js?v=15122:39:4619)
    at Scope.$digest (http://elastic-monitor/bundles/commons.bundle.js?v=15122:39:2359)
    at Scope.$apply (http://elastic-monitor/bundles/commons.bundle.js?v=15122:39:5037)
    at done (http://elastic-monitor/bundles/commons.bundle.js?v=15122:37:25027)
    at completeRequest (http://elastic-monitor/bundles/commons.bundle.js?v=15122:37:28702)
    at XMLHttpRequest.xhr.onload (http://elastic-monitor/bundles/commons.bundle.js?v=15122:37:29634)

```

Elasticsearch request body:

```auto
{
  "query": {
    "bool": {
      "must": [
        {
          "query_string": {
            "query": "*",
            "analyze_wildcard": true
          }
        },
        {
          "range": {
            "@timestamp": {
              "gte": 1501189138294,
              "lte": 1501275538294,
              "format": "epoch_millis"
            }
          }
        }
      ],
      "must_not": []
    }
  },
  "size": 0,
  "_source": {
    "excludes": []
  },
  "aggs": {
    "2": {
      "geohash_grid": {
        "field": "nginxgeo1",
        "precision": 14
      }
    }
  }
}

```

However, a request of `precision: 12` always yields valid results:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/b/3b1f78277efb72a96f5160fb0a9459d3aef459a2.png)

There is nothing in the mapping template that should be causing this:  
`GET _template/nginx/`

```auto
{
  "nginx": {
    "order": 0,
    "template": "nginx-*",
    "settings": {
      "index": {
        "number_of_shards": "3",
        "number_of_replicas": "1",
        "routing": {
          "allocation": {
            "require": {
              "box_type": "hot"
            }
          }
        }
      }
    },
    "mappings": {
      "nginx-access": {
        "properties": {
          "nginxgeolocation": {
            "type": "geo_point"
          },
          "nginxgeo1": {
            "type": "geo_point"
          }
        }
      }
    },
    "aliases": {}
  }
}

```

The x-pack license is also valid:

```auto
curl -XGET 'http://localhost:9200/_xpack/license'
{
  "license" : {
    "status" : "active",
    "uid" : "my-lic-uid",
    "type" : "basic",
    "issue_date" : "2017-05-04T00:00:00.000Z",
    "issue_date_in_millis" : 1493856000000,
    "expiry_date" : "2018-05-04T23:59:59.999Z",
    "expiry_date_in_millis" : 1525478399999,
    "max_nodes" : 100,
    "issued_to" : "Seth",
    "issuer" : "Web Form",
    "start_date_in_millis" : 1493856000000
  }
}

```

The only possible issue I'd found when trying to diagnose this is a Kibana config I put into place a while ago:  
`tilemap.options.maxZoom: 14`, however that is not actually being implemented it would appear.

---

<div class="post-metadata">

**Author:** ![seth.yes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seth.yes/32/11788_2.png) [@seth.yes](https://discuss.elastic.co/u/seth.yes)\
**Post date:** [July 28, 2017, 9:57pm UTC](https://discuss.elastic.co/t/kibana-geohash-zoom-errors-past-precision-level-12/95016/2 "2017-07-28T21:57:52Z")

</div>

UPDATE: I did a curl request and received the following response:

```auto
{
  "error" : {
    "root_cause" : [
      {
        "type" : "parsing_exception",
        "reason" : "[geohash_grid] failed to parse field [precision]",
        "line" : 33,
        "col" : 22
      }
    ],
    "type" : "parsing_exception",
    "reason" : "[geohash_grid] failed to parse field [precision]",
    "line" : 33,
    "col" : 22,
    "caused_by" : {
      "type" : "illegal_argument_exception",
      "reason" : "Invalid geohash aggregation precision of 14. Must be between 1 and 12."
    }
  },
  "status" : 400
}

```

Searching for the reason led me to this page explaining that this is a reasonable cutoff point:  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geohashgrid-aggregation.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geohashgrid-aggregation.html)

Which leads me to my next question:

### why the heck does Kibana have options for precision: 13-18 if neither ES, nor Kibana actually supports it?

### Is there any way to override this default behavior?

I understand it'll be costly in terms of RAM, but it's a valid business justification and we likely have the hardware necessary to perform this.

---

<div class="post-metadata">

**Author:** ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)\
**Post date:** [July 31, 2017, 10:28am UTC](https://discuss.elastic.co/t/kibana-geohash-zoom-errors-past-precision-level-12/95016/3 "2017-07-31T10:28:16Z")

</div>

Hi @seth.yes,

could you please check whether the advanced setting `visualization:tileMap:maxPrecision` has been manually increased to `18`?

---

<div class="post-metadata">

**Author:** ![seth.yes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seth.yes/32/11788_2.png) [@seth.yes](https://discuss.elastic.co/u/seth.yes)\
**Post date:** [August 1, 2017, 1:41pm UTC](https://discuss.elastic.co/t/kibana-geohash-zoom-errors-past-precision-level-12/95016/4 "2017-08-01T13:41:43Z")

</div>

@weltenwort you're correct, it was manually set in the advanced settings.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/a/da39f66f3a0bb0a952112499c2bd7ce76d78d312.png)

---

<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:** [August 29, 2017, 1:42pm UTC](https://discuss.elastic.co/t/kibana-geohash-zoom-errors-past-precision-level-12/95016/5 "2017-08-29T13:42:45Z")

</div>

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