MySQL Enterprise moduleedit

This functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features.

This is a module for different types of MySQL logs. Currently focusing on data from the MySQL Enterprise Audit Plugin in JSON format.

To configure the the Enterprise Audit Plugin to output in JSON format please follow the directions in the MySQL Documentation.

Read the quick start to learn how to configure and run modules.


This module has been tested against MySQL Enterprise 5.7.x and 8.0.x

Configure the moduleedit

You can further refine the behavior of the mysqlenterprise module by specifying variable settings in the modules.d/mysqlenterprise.yml file, or overriding settings at the command line.

Variable settingsedit

Each fileset has separate variable settings for configuring the behavior of the module. If you don’t specify variable settings, the mysqlenterprise module uses the defaults.

For advanced use cases, you can also override input settings. See Override input settings.

When you specify a setting at the command line, remember to prefix the setting with the module name, for example, mysqlenterprise.audit.var.paths instead of audit.var.paths.

audit fileset settingsedit

Example config:

- module: mysqlenterprise
    var.input: file
    var.paths: /home/user/mysqlauditlogs/audit.*.log
An array of glob-based paths that specify where to look for the log files. All patterns supported by Go Glob are also supported here. For example, you can use wildcards to fetch all files from a predefined level of subdirectories: /path/to/log/*/*.log. This fetches all .log files from the subfolders of /path/to/log. It does not fetch log files from the /path/to/log folder itself. If this setting is left empty, Filebeat will choose log paths based on your operating system.
A list of tags to include in events. Including forwarded indicates that the events did not originate on this host and causes to not be added to events. Defaults to [mysqlenterprise-audit].

MySQL Enterprise ECS Fieldsedit

MySQL Enterprise Audit fields are mapped to ECS in the following way:

MySQL Enterprise Fields ECS Fields














For a description of each field in the module, see the exported fields section.