无论才能、知识多么卓著,如果缺乏热情,则无异纸上画饼充饥,无补于事。

logstash能获取本机的ip吗?

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

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

doctor

赞同来自:

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

Dm

赞同来自:

可以添加host字段

要回复问题请先登录注册