APACHE2 FOR LINUX
Instructions for forwarding Apache2 for Linux logs to your Log Management device
PREREQUISITES
Apache2 on Linux OS- Access to the apache2 log file
- Access and permission to modify the rsyslog config file
- The IP Address for the Clone Systems Log Management device
1. Open a command prompt and SSH into the Linux Server using a tool like PuTTY.
2. Locate the necessary files.
By default, the rsyslog.conf can be found at /etc/.
By default, the apache2 logs (possibly named access.log or error.log) are located in /var/log/apache2/.
3. Open the rsyslog configuration file.
4. Go to the end of the file and add the following lines to configure log messages to be sent to the Clone Systems Log Management device.
Note: It may be necessary to change the location/name of the log file.
Note: There are 2 variables, target and protocol, in the code that must be declared.
5. Save the rsyslog configuration file.
6. Restart the rsyslog service.
7. Restart the Linux server.