WARNING: Version 5.4 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.
MySQL Fields
editMySQL Fields
editMySQL-specific event fields.
mysql.iserror
edittype: boolean
If the MySQL query returns an error, this field is set to true.
mysql.affected_rows
edittype: long
If the MySQL command is successful, this field contains the affected number of rows of the last statement.
mysql.insert_id
editIf the INSERT query is successful, this field contains the id of the newly inserted row.
mysql.num_fields
editIf the SELECT query is successful, this field is set to the number of fields returned.
mysql.num_rows
editIf the SELECT query is successful, this field is set to the number of rows returned.
mysql.query
editThe row mysql query as read from the transaction’s request.
mysql.error_code
edittype: long
The error code returned by MySQL.
mysql.error_message
editThe error info message returned by MySQL.