mysql-audit-extend

Crates.iomysql-audit-extend
lib.rsmysql-audit-extend
version0.2.7
sourcesrc
created_at2022-08-10 12:21:44.449084
updated_at2022-08-14 14:03:49.776152
descriptionAn extension tool of mysql-audit, which provides functions such as log rotation and log cleaning.
homepage
repositoryhttps://gitee.com/seeker_rs/mysql-audit-extend
max_upload_size
id642600
size28,071
(womeng2009)

documentation

https://docs.rs/crate/mysql-audit-extend/0.2.7

README

mysql-audit-extend

1.Introduce

Notice: This is a binary application.

The extension of mysql-audit, the mysql audit plugin for mcafee, enhances the plugin function.

2.Install

cargo install mysql-audit-extend

or

wget https://gitee.com/seeker_rs/mysql-audit-extend/releases/download/release-0.2.7/mysql-audit-extend
chmod 775 mysql-audit-extend

3.Run

# View help
mysql-audit-extend -h

OUTPUT:
USAGE:
    mysql-audit-extend [OPTIONS]

OPTIONS:
    -f, --max-file <MAX_FILE>    Maximum number of files to keep [default: 10]
    -h, --help                   Print help information
    -m, --max-size <MAX_SIZE>    Maximum file size, Unit: MB [default: 10]
    -p, --path <PATH>            Absolute path to log file [default:
                                 /var/lib/mysql/mysql-audit.json]
    -V, --version                Print version information


# Run with default configuration
mysql-audit-extend

# Run with custom configuration
mysql-audit-extend -p /var/lib/mysql/mysql-audit.json -m 100 -f 30

4.View run log

# execution log
tail -f /tmp/seeker/mysql-audit-extend/log.log
# error log
tail -f /tmp/seeker/mysql-audit-extend/log.error

5.Support platform

Currently only supports Linux operating system.

  • Linux
Commit count: 0

cargo fmt