Home >System Tutorial >LINUX >Linux stand-alone log audit

Linux stand-alone log audit

王林
王林forward
2024-04-04 09:01:20489browse
1: First check whether sudo and rsyslog services are installed

Linux stand-alone log audit

2: If the service is not found, you can use yum to install related services

Linux stand-alone log audit

3: Add content to /etc/rsylog.conf file

Linux stand-alone log audit

4: View content

Linux stand-alone log audit

Complete the above four steps, the single-machine log audit is simply completed. If someone uses the sudo command to operate, we will check the log file to monitor the operation command

Linux stand-alone log audit

Explanation: This setting will only monitor when other users use the sudo command, but will not monitor other ordinary operations.

The above is the detailed content of Linux stand-alone log audit. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:linuxprobe.com. If there is any infringement, please contact admin@php.cn delete