在 Mapping 里面,将 dynamic 参数设置成 strict 可以拒绝索引包含未知字段的文档。 此条 Tips 由 medcl 贡献。

logstash能获取本机的ip吗?

Logstash | 作者 chienx | 发布于2018年09月12日 | 阅读数:6188

项目需要知道Logstash是来自哪个ip地址的数据,有没有办法在传入的时候把本机ip解析出来,添加进字段里面
已邀请:

doctor

赞同来自:

使用dns插件或者直接用ruby filter试试
参考https://www.elastic.co/guide/e ... .html
https://www.elastic.co/guide/e ... .html

Dm

赞同来自:

可以添加host字段

要回复问题请先登录注册