The agent automatically collects logs from NGINX web servers by tailing the default log files.

Log files location

The agent is configured to monitor files that match the pattern /var/log/nginx/*.log.

This includes both access.log and error.Log, which are typically located in the /var/log/nginx/ directory.