- Filebeat Reference: other versions:
- Overview
- Contributing to Beats
- Getting Started With Filebeat
- Step 1: Install Filebeat
- Step 2: Configure Filebeat
- Step 3: Configure Filebeat to use Logstash
- Step 4: Load the index template in Elasticsearch
- Step 5: Set up the Kibana dashboards
- Step 6: Start Filebeat
- Step 7: View the sample Kibana dashboards
- Quick start for common log formats
- Repositories for APT and YUM
- Setting up and running Filebeat
- Upgrading Filebeat
- How Filebeat works
- Configuring Filebeat
- Specify which modules to run
- Set up prospectors
- Manage multiline messages
- Specify general settings
- Load external configuration files
- Configure the internal queue
- Configure the output
- Load balance the output hosts
- Specify SSL settings
- Filter and enhance the exported data
- Parse logs by using ingest node
- Set up project paths
- Set up the Kibana endpoint
- Load the Kibana dashboards
- Load the Elasticsearch index template
- Set up logging
- Use environment variables in the configuration
- Autodiscover
- YAML tips and gotchas
- Regular expression support
- filebeat.reference.yml
- Modules
- Exported fields
- Securing Filebeat
- Troubleshooting
- Migrating from Logstash Forwarder to Filebeat
WARNING: Version 6.1 of Filebeat 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
editModule for parsing the MySQL log files.
mysql fields
editFields from the MySQL log files.
error fields
editContains fields from the MySQL error logs.
mysql.error.timestamp
editThe timestamp from the log line.
mysql.error.thread_id
edittype: long
As of MySQL 5.7.2, this is the thread id. For MySQL versions prior to 5.7.2, this field contains the process id.
mysql.error.level
editexample: Warning
The log level.
mysql.error.message
edittype: text
The logged message.
slowlog fields
editContains fields from the MySQL slow logs.
mysql.slowlog.user
editThe MySQL user that created the query.
mysql.slowlog.host
editThe host from where the user that created the query logged in.
mysql.slowlog.ip
editThe IP address from where the user that created the query logged in.
mysql.slowlog.query_time.sec
edittype: float
The total time the query took, in seconds, as a floating point number.
mysql.slowlog.lock_time.sec
edittype: float
The amount of time the query waited for the lock to be available. The value is in seconds, as a floating point number.
mysql.slowlog.rows_sent
edittype: long
The number of rows returned by the query.
mysql.slowlog.rows_examined
edittype: long
The number of rows scanned by the query.
mysql.slowlog.timestamp
edittype: long
The unix timestamp taken from the SET timestamp
query.
mysql.slowlog.query
editThe slow query.
mysql.slowlog.id
edittype: long
The connection ID for the query.
On this page
- mysql fields
- error fields
mysql.error.timestamp
mysql.error.thread_id
mysql.error.level
mysql.error.message
- slowlog fields
mysql.slowlog.user
mysql.slowlog.host
mysql.slowlog.ip
mysql.slowlog.query_time.sec
mysql.slowlog.lock_time.sec
mysql.slowlog.rows_sent
mysql.slowlog.rows_examined
mysql.slowlog.timestamp
mysql.slowlog.query
mysql.slowlog.id