搜索结果正在快递途中

logstash如何获取本机IP

Logstash | 作者 yourBigFather | 发布于2021年01月28日 | 阅读数:2724

{
          "time" => "21-01-27 22:59:04.663",
          "host" => "mengding",
    "@timestamp" => 2021-01-28T06:59:10.444Z,
          "tags" => [
        [0] "ctrl_debug"
    ],
       "message" => "DEBUG 21-01-27 22:59:04.663 com.nsb.enms.controller.refactor.ne.NeFactory.handleAVCs(NeFactory.java:360) [pool-24-thread-1]\nne trap loss. neId : 5f3b39ee8f7d2445f1935dc6, notifIds : 0,0.",
          "path" => "/nokia/enms/log/controller/CONTROLLER_8000/ctl_log"
}
我input内容是File。默认打印的host是这个样子:"host" => "mengding"。我想获取真实的IP
已邀请:

要回复问题请先登录注册