ITPub博客

首页 > 数据库 > MySQL > mysql 系统审计日志格式说明:

mysql 系统审计日志格式说明:

原创 MySQL 作者:babyyellow 时间:2021-11-30 15:16:21 0 删除 编辑



写 audit_log  文件 日志格式: 


[timestamp],[serverhost],[username],[host],[connectionid],
[queryid],[operation],[database],[object],[retcode]


写 syslog   文件格式: 


[timestamp][syslog_host][syslog_ident]:[syslog_info][serverhost],[username],[host],
[connectionid],[queryid],[operation],[database],[object],[retcode]


Item logged Description
timestamp Time at which the event occurred. If syslog is used, the format is defined by  syslogd.
syslog_host Host from which the syslog entry was received.
syslog_ident For identifying a system log entry, including the MariaDB server.
syslog_info For providing information for identifying a system log entry.
serverhost The MariaDB server host name.
username Connected user.
host Host from which the user connected.
connectionid Connection ID number for the related operation.
queryid Query ID number, which can be used for finding the relational table events and related queries. For TABLE events, multiple lines will be added.
operation Recorded action type: CONNECT, QUERY, READ, WRITE, CREATE, ALTER, RENAME, DROP.
database Active database (as set by  ).
object Executed query for QUERY events, or the table name in the case of TABLE events.
retcode Return code of the logged operation.






参考链接: 

mariadb.com/kb/en/mariadb-audit-plugin-configuration/


mariadb.com/kb/en/mariadb-audit-plugin/


mariadb.com/kb/en/mariadb-audit-plugin-installation/


mariadb.com/kb/en/mariadb-audit-plugin-log-settings/


mariadb.com/kb/en/mariadb-audit-plugin-log-format/


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/133735/viewspace-2844888/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
oracle MySQL Postgresql 专职数据库dba。 系统架构师。 mysql 官方认知dba 。 15年专职dba 经验。 潜意识沟通实证者 心理咨询师。 禅修布道者, 禅修指导员。 禅定实证者。

注册时间:2010-12-02

  • 博文量
    367
  • 访问量
    1908637