A sign-in check confirms that someone passed the check for an account. A session is the period of activity that follows a sign-in and ends when the user signs out or disconnects. Session records tell you when that period started and when it ended, if both events were logged.
Security Logs · Lesson 4
Session Records
Learn how to pair opened and closed session records and check which sessions a log excerpt can describe.
Reading an Opening Record
A session system can assign a session ID to identify a session on a machine. These simulated lines show two openings for the same account on web-01. All times in this lesson are in the same time zone.
t=09:14:05Z source=session host=web-01 account=alex session=42 state=opened
t=09:17:00Z source=session host=web-01 account=alex session=43 state=opened
The first line reports that session 42 began. The second reports a separate session, 43, on the same host.
Which statement do the two openings support?
Pairing an Opening and a Closing
Read the host and session ID together before pairing two records. Compare the closing line below with the opening records.
t=09:20:05Z source=session host=web-01 account=alex session=42 state=closed
On web-01, the opening and closing records for session 42 are six minutes apart. The pair gives a recorded start and end. It provides no list of actions taken between them.

The simulated opening and closing records appear together in this terminal view.
Suppose the closing line showed session=43 instead, with the host and time unchanged. When would that session have started?
Checking a Missing Closing Record
Return to the original closing record for session 42. The excerpt ends at 09:21 and still has no matching close for session 43. The session could still have been active when the excerpt ended. A closing record may also be outside the available time window or missing from this source. A log's retention period is how long the record is kept and available for review.
What can you say about session 43 from the excerpt alone?
Choosing a Source for the Question
For a historical closing time, look for a matching close in a later excerpt from the same host. If the question is whether the session is active now, check a current session list from that host. A saved log and a current list answer questions about different times.
You need to know whether session 43 is active now. Which source is most useful?
Lesson complete
You finished Session Records
You can now use session records to describe a recorded start and end.
Identify an opening and its host and session ID.
Match a closing record to the correct opening.
State what a missing closing record leaves unknown.
Choose between historical records and a current session list.
Keep your learning progress
Create a free account to save this lesson and continue learning on any device.
Create a free account