How to use packetbeat to monitor mysql of docker container?

Mysql and packetbeat be installed on the same machine!

Mysql is started in docker container, and the packetbeat is installed on local machine. Local machine's 3306 is mapping mysql of container's 3306, i use packetbeat to monitor mysql protocol, config the 3306, but can't get any data.

configuration:

packetbeat.interfaces.device: any

packetbeat.flows:
  enabled: false
  timeout: 30s
  period: 10s

packetbeat.protocols:
- type: mysql
  ports: [3306]

output.console:
   enabled: true
   pretty: true

1 Like

Hello, thanks for reaching out about packetbeat. Could you please provide some more information about your setup?

  • What version of packetbeat are you running?
  • Do you receive any errors from packetbeat?

I use heartbeat-7.1.1-linux-x86_64, not errors received!

I just want to know if the packetbeat can monitor mysql protocol in docker container.

I have found the problem, it is the same situation about MySQL&SSL, according to MySQL&SSL

Hi....I have the same this question....plus i live this platform

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.