Mission 56

Error patterns

Search different logs for warning and denied patterns.

Text and logs
7 minutes Core Lesson 56 of 360
grepjournalctl
Lesson 56 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 warnings

Run grep warn /var/log/nginx-error.log.

grep warn /var/log/nginx-error.log
Search denied

Run grep denied /var/log/auth.log.

grep denied /var/log/auth.log
Read nginx journal

Run journalctl -u nginx.

journalctl -u nginx
Lesson support

What to notice while you play.

Objective

Find related warning and denied lines.

Hint

Search nginx-error.log and auth.log.

Why it matters

Triage depends on connecting clues, not reading one file in isolation.

Common mistakes
  • Only searching one log.
  • Ignoring service journal context.
Reference

Commands in this lesson.

grep [-i] <text> <file>

Find literal text inside a file.

journalctl -u <service>

Read simulated service journal entries.