WARNING: Version 6.1 of Packetbeat has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Capture MySQL and PgSQL traffic
editCapture MySQL and PgSQL traffic
editThe mysql
and pgsql
sections of the packetbeat.yml
config file specify configuration options for the MySQL
and PgSQL protocols.
packetbeat.protocols: - type: mysql ports: [3306] - type: pgsql ports: [5432]
Configuration options
editAlso see Common protocol options.
max_rows
editThe maximum number of rows from the SQL message to publish to Elasticsearch. The default is 10 rows.
max_row_length
editThe maximum length in bytes of a row from the SQL message to publish to Elasticsearch. The default is 1024 bytes.