Audit MySQL Databases in Netwrix Access Analyzer
Question
How to configure the MySQL databases audit in Netwrix Access Analyzer?
Answer
Requirements
- Requirements for Windows (Netwrix Access Analyzer host):
- Windows Management Framework 3+ installed on the Netwrix Access Analyzer Console server (applicable to Windows 2012 and older).
- Requirements for Windows (MySQL host):
- WinRM enabled.
- Requirements for MySQL:
- Read access to all databases contained within each MySQL instance.
- Domain Admin or Local Admin privilege (Windows only).
Create the SQL logins
Create a login on each instance of MySQL to be audited.
Configure the connection profile
While this guide describes the configuration steps to audit MySQL standard edition with MySQL logins, Netwrix Access Analyzer supports Active Directory. If available, Active Directory authentication to MySQL is recommended and supported by Netwrix Access Analyzer.
- Open the Netwrix Access Analyzer console. Click Settings -> Connection.
- Click Add Connection Profile.
- Replace the default name with MySQL.
- Click Add User Credential.
- Set Select Account Type to SQL Authentication.
- Enter the username and password of the MySQL login.
- If different logins were created on different instances, add them all to the connection profile.
Create the host list
- Under Host Management, click Add hosts and enter the domain name or IP address into the Host name input box. Repeat this for each instance.
NOTE: For AWS RDS instances, enter the endpoint. This value may change after saving the list if the instance is part of a cluster.
- Click Next and name the host list MySQL Instances.
- Select the MySQL connection profile as the credentials to use when querying hosts in this list.
- Click Finish.
Configure and run the MySQL Collection job set
- Go to Jobs -> Databases -> MySQL -> Settings -> Connection. Select the MySQL connection profile. Click to set all child objects to inherit the setting. Click Save and OK.
- Go to Jobs -> Databases -> MySQL -> Settings -> Host List Assignment. Untick Use Default Setting, select the MySQL Instances host list and click Save.
- For AWS RDS and Aurora instances, right-click each job in the MySQL -> 0.Collection folder and open the properties window. Ensure the checkbox Skip Hosts that do not respond to PING is unchecked in the Performance tab.