Practice tailing a live NGINX access log and correlating requests with observed traffic.
Learn how to verify that requests are reaching a web service in real time.
Watch new log lines as they are written by NGINX.
Command
tail -f /var/log/nginx/access.logExpected Result
You should see new log entries appear when requests hit the service.
Open the NGINX site in your browser or send a local request.
Expected Result
A new access log line should appear in the terminal.
Read container or system logs to compare behavior from another source if NGINX is containerized.
Command
docker logs <container>Expected Result
You should see startup or access-related output if applicable.
Look for a specific path or keyword inside NGINX config or related files.
Command
grep -R 'server_name' /etc/nginxExpected Result
You should see matching configuration lines for the selected keyword.
End the log stream once you verified request flow.
Expected Result
The tail session should stop cleanly.
You can follow web traffic live through NGINX access logs.
You understand a simple workflow for verifying whether requests reach a web server.