kibana can with other geoip with create maps(Select buckets type)?
the is only Geo coordinates
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.
kibana can with other geoip with create maps(Select buckets type)?
the is only Geo coordinates
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.
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
Please show an example document and the full mapping, as that will make it easier to see what is going on.
@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": "*"
}
}
]
}
},
Can you also show a sample document?
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.