"_source": {"destIP": "1.1.1.1", "srcIP": "2.2.2.2", "@timestamp": "2017-11-16T04:54:25.488Z",
"destPort": "4020",
"geoip": {"timezone": "Asia/Shanghai", "ip": "
2.2.2.2", "latitude": 30.5801,
"coordinates": ["114.2734", "30.5801"], "continent_code": "AS", "city_name": "Wuhan",
"country_name": "China", "country_code2": "CN", "country_code3": "CN",
"region_name": "Hubei", "location": {"lon": 114.2734, "lat": 30.5801},
"region_code": "42", "longitude": 114.2734}, "srcPort": "26477",
"packetTimestamp": "2017-11-16 12:54:23.682850"}
_source如上,我想准确的搜索“geoip”字段里面“ip”的内容,应该怎样搜索?还有用“geoip”字段里的“region_name”来聚合?谢谢大神们!!!
3 个回复
qvitt
赞同来自:
laoyang360 - 《一本书讲透Elasticsearch》作者,Elastic认证工程师 [死磕Elasitcsearch]知识星球地址:http://t.cn/RmwM3N9;微信公众号:铭毅天下; 博客:https://elastic.blog.csdn.net
赞同来自:
ifanjiaxing - 不忘初心,方能走远!
赞同来自: