这是我的IPV4_DST_ADDR字段映射:
"IPV4_DST_ADDR":{"type":"text","norms":false,"fields":{"keyword":{"type":"keyword","ignore_above":256}}}
我要将文字类型从IP更改为IP,该怎么办?
先感谢您!
最佳答案
您需要阅读有关index templates
的信息。由于索引遵循某种模式,因此可以在模板文件中像index_patterns
一样定义ntopng-*
。
现在,所有具有此模式的索引都将在索引上具有此ip映射。
有关更多信息,https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html
关于rest - 如何映射IP类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48125303/