You can enable database audit only after the agent is installed. This topic describes how to install the agent on a node running a Linux OS.
You can install the agent on the database or application side, depending on your database type and deployment scenario. Common database scenarios are as follows:
Figure 1 One application connecting to multiple databases built on ECS/BMS

Figure 2 Multiple applications connecting to one database built on ECS/BMS

Figure 3 One application connecting to multiple RDS databases

Figure 4 Multiple applications connecting to one RDS database

Table 1 describes where to install the agent in the preceding scenarios.
If your applications and databases (databases built on ECS/BMS) are deployed on the same node, install the agent on the database side.
Scenario | Where to Install Agent | Audit Scope | Description |
|---|---|---|---|
Self-built database on ECS/BMS | Database | All access records of applications that have accessed the database |
|
RDS database | Application side (if applications are deployed on the cloud) | Access records of all the databases connected to the application |
|
RDS database | Proxy side (if applications are deployed off the cloud) | Only the access records between the proxy and database. Those between the applications and database cannot be audited. | Install the agent on the proxy side. |
When installing a new agent, you need to customize a password for it.
Install the agent on the node suitable for your service scenario.
cd Directory_containing_agent_installation_package

tar -xvf xxx.tar.gz

cd Decompressed_package_directory

ll
chmod +x install.sh
sh install.sh

If the following information is displayed, the agent has been installed. Otherwise, the installation fails.
12345start agentstarting audit agentaudit agent startedstart successinstall dbss audit agent done!
If the agent installation failed, ensure the OS version of the target node is supported and try again.
service audit_agent status
If the following information is displayed, the agent is running properly:
