NGINX is an open-source high performance load balancer. This module collects error and access logs from Nginx servers.
Setup & Configuration
The NGINX 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: trueCopy the NGINX example configuration file.
copycd /etc/atatus-infra-agent/conf.d/nginx.d/ sudo cp nginx.yml.template nginx.ymlUpdate the file
/etc/atatus-infra-agent/conf.d/nginx.d/nginx.ymlwith below configurations.copy# Log section logs: # - type : (mandatory) type of log input source (error / access) - type: error - type: accesscopy# If you have custom nginx 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/nginx/error.log* source: nginx service: nginx - type: access paths: - /var/log/nginx/access.log* source: nginx service: nginxRestart the atatus infrastructure agent.
copysudo service atatus-infra-agent restart
+1-415-800-4104