Menu

Log Lines

Part of the Security Fundamentals section of Coddy's Cybersecurity journey. Lesson 3 of 43.

A log is a record of things that happened, such as someone signing in or changing an account. Each line is one event. To find the events from one IP address, run:

seclab logs --ip 198.51.100.23

You should see:

2026-10-19 17:02:41 shop-web LOGIN_OK user=lee ip=198.51.100.23

Read the line from left to right: the date and time, the machine (shop-web), then the event. LOGIN_OK means the sign-in succeeded, and a failed one says LOGIN_FAILED. After the event come the details. Each detail is a name, an equals sign and a value, with a space before the next detail: user=lee is the account, and ip=198.51.100.23 is the address it came from.

When a ticket asks you to record what you found, use the answer command once for each finding: first the name the ticket gives the finding, then its value. To record which account signed in from 198.51.100.23:

seclab answer account lee

You should see:

Recorded your answer to account.

Each finding goes in its own command, and its name is the one the ticket uses. Lee is only the example: your ticket asks for the account the attacker's address got into.

challenge icon

Challenge

Easy

Ticket from Sam, IT lead

Your block ended a session from the attacker's address: they were already inside someone's mail. Find the sign-in that let them in. Record the account as account.

Try it yourself

Terminal

All lessons in Security Fundamentals