使用netstat -lntp来看看有侦听在网络某端口的进程。当然,也可以使用 lsof。

logstash收集交换机日志的问题

Logstash | 作者 sailershen | 发布于2018年11月23日 | 阅读数:5333

ELK服务器上配置文件/etc/logstash/conf.d/net-device-log.conf 
input {
syslog {
type => "net-device-log"
tags => "net-device-log"
port => 1515
id => "net-device-log"
codec => plain {
charset => "UTF-8"
}
}
}

交换机上日志输入的IP地址指向ELK服务器,端口写1515,在kibana上找不到相关日志,不知道哪里不对。
 
已邀请:

tcpdump

赞同来自: sailershen

先手动调试一下看交换机的日志有没有发送过来,logstash能不能正确接收,然后看Out到es中索引里面有没有存入doc,最后再看Kibana查询的问题

要回复问题请先登录注册