# Kibana can with other geoip with create maps?

**URL:** <https://discuss.elastic.co/t/kibana-can-with-other-geoip-with-create-maps/126494>\
**Category:** Kibana\
**Created:** [April 3, 2018, 3:33am UTC](https://discuss.elastic.co/t/kibana-can-with-other-geoip-with-create-maps/126494 "2018-04-03T03:33:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [April 3, 2018, 3:33am UTC](https://discuss.elastic.co/t/kibana-can-with-other-geoip-with-create-maps/126494/1 "2018-04-03T03:33:43Z")

</div>

kibana can with other geoip with create maps(Select buckets type)?

the is only Geo coordinates  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/2/b2a381ddf3c224e62babc1c598fd9cc2cf45ff2b.png)

i add the ip2location filter with logstash the data is also in es 5.6.8 how can use it? there is only can choose geo can't use ip2location.

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

---

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [April 3, 2018, 3:47am UTC](https://discuss.elastic.co/t/kibana-can-with-other-geoip-with-create-maps/126494/2 "2018-04-03T03:47:40Z")

</div>

slove it with add the mapping with ip2location  
"ip2location": {  
"dynamic": true,  
"properties": {  
"location": {  
**"type": "geo\_point"**  
},  
"ip": {  
"type": "ip"  
},  
"continent\_code": {  
"type": "text"  
},  
"country\_name": {  
"type": "text"  
}  
},  
"type": "object"  
},  
it know can choose the ip2location.location  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/d/2deeba6bb52f9f92c0806cf87a052f67eaf5889a.png)

---

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [April 3, 2018, 3:55am UTC](https://discuss.elastic.co/t/kibana-can-with-other-geoip-with-create-maps/126494/3 "2018-04-03T03:55:45Z")

</div>

when create the map. can't show data about it. **how can do it?**  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/5/0553ddb2941610ba067eb227256a0649f4f91317.png)  
with geoip.location can show it.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/e/6e4b269fa362f6852ed5d2109df055761c65968a.png)

---

<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:** [April 3, 2018, 9:59am UTC](https://discuss.elastic.co/t/kibana-can-with-other-geoip-with-create-maps/126494/4 "2018-04-03T09:59:37Z")

</div>

Please show an example document and the full mapping, as that will make it easier to see what is going on.

---

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [April 4, 2018, 12:41am UTC](https://discuss.elastic.co/t/kibana-can-with-other-geoip-with-create-maps/126494/5 "2018-04-04T00:41:27Z")

</div>

@Christian_Dahlqvist the mapping is thanks.

```
  "mappings": {
    "docs": {
      "properties": {
        "113": {
          "type": "float"
        },
        "114": {
          "type": "float"
        },
        "115": {
          "type": "float"
        },
        "geoip": {
          "dynamic": true,
          "properties": {
            "location": {
              "type": "geo_point"
            },
            "ip": {
              "type": "ip"
            },
            "continent_code": {
              "type": "text"
            },
            "country_name": {
              "type": "text"
            }
          },
          "type": "object"
        },
        "ip2location": {
          "dynamic": true,
          "properties": {
            "location": {
              "type": "geo_point"
            },
            "ip_address": {
              "type": "ip"
            },
            "continent_code": {
              "type": "text"
            },
            "country_name": {
              "type": "text"
            }
          },
          "type": "object"
        },
        "@version": {
          "type": "integer"
        },
        "tcpflag": {
          "type": "integer"
        }
      }
    },
    "_default_": {
      "_all": {
        "enabled": true
      },
      "dynamic_templates": [
        {
          "date": {
            "match_pattern": "regex",
            "mapping": {
              "type": "date"
            },
            "match": ".*_time"
          }
        },
        {
          "ipv4": {
            "match_pattern": "regex",
            "mapping": {
              "type": "ip"
            },
            "match": ".*_ip"
          }
        },
        {
          "ipv6": {
            "match_pattern": "regex",
            "mapping": {
              "type": "ip"
            },
            "match": "dst_ipv6"
          }
        },
        {
          "ip_ver": {
            "match_pattern": "regex",
            "mapping": {
              "type": "byte"
            },
            "match": ".*_ip_ver"
          }
        },
        {
          "port": {
            "match_pattern": "regex",
            "mapping": {
              "type": "integer"
            },
            "match": ".*_port"
          }
        },
        {
          "other": {
            "mapping": {
              "omit_norms": true,
              "type": "text"
            },
            "match_mapping_type": "string",
            "match": "*"
          }
        }
      ]
    }
  },
```

---

<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:** [April 5, 2018, 7:59am UTC](https://discuss.elastic.co/t/kibana-can-with-other-geoip-with-create-maps/126494/6 "2018-04-05T07:59:41Z")

</div>

Can you also show a sample document?

---

<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:** [May 3, 2018, 7:59am UTC](https://discuss.elastic.co/t/kibana-can-with-other-geoip-with-create-maps/126494/7 "2018-05-03T07:59:46Z")

</div>

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