Capture MySQL and PgSQL trafficedit

The 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 optionsedit

Also see Common protocol options.

max_rowsedit

The maximum number of rows from the SQL message to publish to Elasticsearch. The default is 10 rows.

max_row_lengthedit

The maximum length in bytes of a row from the SQL message to publish to Elasticsearch. The default is 1024 bytes.