Apache is an open-source and free web server software. This module collects apache access and error logs.
Setup & Configuration
The Apache module is included with the Atatus Infra agent by default, please follow the below steps to enable.
Add the following lines in the file
/etc/atatus-infra-agent/atatus.yml
.copylogs_enabled: true
Copy the Apache example configuration file.
copycd /etc/atatus-infra-agent/conf.d/apache.d/ sudo cp apache.yml.template apache.yml
Update the file
/etc/atatus-infra-agent/conf.d/apache.d/apache.yml
with below configurations.copy# Log section logs: # - type : (mandatory) type of log input source (error / access) - type: error - type: access
copy# If you have custom apache log path, you can use below syntax # - type: (mandatory) type of log input source (error / access) # paths: (mandatory) Set paths if type is file # service: (mandatory) name of the service owning the log # source: (mandatory) attribute that defines which integration is sending the log # Log section logs: - type: error paths: - /var/log/apache2/error.log* - /var/log/httpd/error_log* source: apache service: apache - type: access paths: - /var/log/apache2/access.log* - /var/log/apache2/other_vhosts_access.log* - /var/log/httpd/access_log* source: apache service: apache
Restart the atatus infrastructure agent.
copysudo service atatus-infra-agent restart