Mission 55

Access log review

Filter training HTTP access lines for status and method clues.

Text and logs
7 minutes Core Lesson 55 of 360
grepwctail
Lesson 55 of 360 0/360 lessons 0/17 missions Text and logs · 7 minutes
0%
Continue View profile
Ops lab terminal Training lab
New learnerrank 0XP 0%complete
learner@clairos:/home/learner $ Unix ops lab: type a command, press Enter
Instructions 7 minutes

Click any instruction for the command details, the why, and the common mistake to avoid.

Search 404

Run grep 404 /var/log/nginx-access.log.

grep 404 /var/log/nginx-access.log
Search POST

Run grep POST /var/log/nginx-access.log.

grep POST /var/log/nginx-access.log
Count access log

Run wc -l /var/log/nginx-access.log.

wc -l /var/log/nginx-access.log
Lesson support

What to notice while you play.

Objective

Find status codes and methods in web logs.

Hint

Search for 404 and POST.

Why it matters

Web operators use access logs to verify routing and probes.

Common mistakes
  • Only reading error logs.
  • Ignoring unexpected methods.
Reference

Commands in this lesson.

grep [-i] <text> <file>

Find literal text inside a file.

wc [-l] <file>

Count lines, words, and characters.