-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick #22273 to 7.x: [Filebeat][New Module] Mysql Enterprise Au…
…dit log (#23021) * [Filebeat][New Module] Mysql Enterprise Audit log (#22273) * initial stash of mysql module * initial commit for filebeat mysql module * removing syslog from manifest currently * changing module and field names to mysqlenterprise * fixing some wrong types and adding related fields * adding changelog entry * adding some more process fields and event category/types * fixing merge changelog * adding changes based on PR feedback (cherry picked from commit 03383be) * regenerate docs Co-authored-by: Marius Iversen <pillus@chasenet.org>
- Loading branch information
Showing
18 changed files
with
2,028 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
//// | ||
This file is generated! See scripts/docs_collector.py | ||
//// | ||
|
||
[[filebeat-module-mysqlenterprise]] | ||
[role="xpack"] | ||
|
||
:modulename: mysqlenterprise | ||
:has-dashboards: false | ||
|
||
|
||
== MySQL Enterprise module | ||
beta[] | ||
|
||
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 https://dev.mysql.com/doc/refman/8.0/en/audit-log-file-formats.html[MySQL Documentation.] | ||
|
||
|
||
include::../include/gs-link.asciidoc[] | ||
|
||
|
||
[float] | ||
=== Compatibility | ||
|
||
This module has been tested against MySQL Enterprise 5.7.x and 8.0.x | ||
|
||
include::../include/configuring-intro.asciidoc[] | ||
|
||
:fileset_ex: audit | ||
|
||
include::../include/config-option-intro.asciidoc[] | ||
|
||
[float] | ||
==== `audit` fileset settings | ||
|
||
Example config: | ||
|
||
[source,yaml] | ||
---- | ||
- module: mysqlenterprise | ||
audit: | ||
var.input: file | ||
var.paths: /home/user/mysqlauditlogs/audit.*.log | ||
---- | ||
|
||
include::../include/var-paths.asciidoc[] | ||
|
||
*`var.tags`*:: | ||
|
||
A list of tags to include in events. Including `forwarded` indicates that the | ||
events did not originate on this host and causes `host.name` to not be added to | ||
events. Defaults to `[mysqlenterprise-audit]`. | ||
|
||
[float] | ||
==== MySQL Enterprise ECS Fields | ||
|
||
MySQL Enterprise Audit fields are mapped to ECS in the following way: | ||
|
||
[options="header"] | ||
|============================================================== | ||
| MySQL Enterprise Fields | ECS Fields | | ||
| account.user | server.user.name | | ||
| account.host | client.domain | | ||
| login.os | client.user.name | | ||
| login.ip | client.ip | | ||
| startup_data.os_version | host.os.full | | ||
| startup_data.args | process.args | | ||
| connection_attributes._pid | process.pid | | ||
| timestamp | @timestamp | | ||
|============================================================== | ||
|
||
:modulename!: | ||
|
||
|
||
[float] | ||
=== Fields | ||
|
||
For a description of each field in the module, see the | ||
<<exported-fields-mysqlenterprise,exported fields>> section. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.