首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在Packetbeat中跟踪Mysql

无法在Packetbeat中跟踪Mysql
EN

Stack Overflow用户
提问于 2015-05-27 05:17:28
回答 1查看 737关注 0票数 1
  1. 我正在使用packetbeat进行监视,并使用ubuntu作为操作系统。
  2. 我配置了所有的东西,MySQL的端口是3306。我在基班纳获得了仪表板,但是如果我开始使用MySQL,我就不会在Packetbeat中得到任何信息。它无法追踪。

[interfaces] #Select on which network interfaces to sniff. You can use the "any" # keyword to sniff on all connected interfaces. device = "any"

[protocols] #Configure which protocols to monitor and on which ports are they #running. You can disable a given protocol by commenting out its #configuration.

[protocols.http] ports = [80, 8080, 8000, 5000, 8002]

[protocols.mysql] ports = [3306]

[protocols.pgsql] ports = [5432]

#[protocols.redis] #ports = [6379]

EN

回答 1

Stack Overflow用户

发布于 2015-11-24 12:07:32

如果使用"localhost“,MySQL将尝试通过UNIX进行连接(参见https://dev.mysql.com/doc/refman/5.5/en/connecting.html)。但是,如果您指定IP (可能是127.0.0.1),它将通过TCP进行连接,从而允许Packet节拍嗅探该连接。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30473723

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档