LOGS-1Lesson 1 of 38 min

What a log record holds

Accountability, from station SECU, means actions can be traced to whoever did them. Logs make that possible. This lesson shows what a good log record contains, and what it must never contain.

Who, what, when, where, result

Figure LOGS-1.1Five questions in one log record
  • 1When
  • 2Who
  • 3Where from
  • 4What
  • 5Result
1/7

A log is a list of records, one for each event: a sign-in, a file opened, a setting changed. A useful record answers five questions. Watch one record being filled in.

Step 1 of 7

Clocks must agree

An investigation usually joins logs from many systems: the portal, the email server, the network. If their clocks disagree by even a few minutes, events appear in the wrong order and cannot be matched up. So systems set their clocks from a shared, trusted time source. In India, CERT⁠-⁠In’s 2022 directions require organisations to set their clocks from the national time servers run by NIC or NPL, or from servers traceable to them.

What never goes in a log

Logs are read by many people and kept for a long time, so they must not hold secrets. Never log:

  • passwords, even wrong ones (a wrong password is often a real one with one typo);
  • one-time codes, PINs or security answers;
  • full card or bank account numbers, or full Aadhaar numbers.

LOGS-1 counts as completed once you step through the figure to its last step.