Server logs · 01 How it works

Server logs: how they work

How logs work: where web server, login, mail, application, cloud and network logs are kept, what a web server log line contains, why rotation deletes them and how CDNs and proxies change the recorded address.

LogWhere it isWhat it can prove
Web serverApache or Nginx access.log file, hosting control panelWhich pages were requested, from which address and when
System loginsauth.log on Linux, Windows Security logWho logged in with which account, and the failed attempts
MailMail server logs and message tracingWhether a message was sent, received or forwarded
ApplicationsLogs of the business software, CMS, databaseWho changed, exported or deleted a piece of data
CloudAudit logs of Microsoft 365, Google Workspace, AWSLogins, shares, downloads and rules created in accounts
CDN and web application firewallThe service’s dashboard, exports or APIThe visitor’s real address when the site sits behind a proxy
VPN and firewallNetwork appliances and their consolesWho connected from outside, from where and for how long
Connectivity providerOperator records, only at the request of the authoritiesWhich subscriber was using an address at that moment

One line, seven pieces of information

A typical web server log line contains the requester’s address, date and time with the time zone, the method and page, the status code, the bytes sent, the referring page and the identifier of the program used. Codes such as 401 (access denied) and 302 (redirect, often after a successful login) tell a sequence of attempts on their own.

Continue with
02 Step-by-step procedure

Server logs: step-by-step procedure

How logs are acquired and analysed: list the sources, ask for preservation at once, copy the originals including rotated files, compute the hash, record time zone and clock, convert to UTC, correlate, check completeness, write the report.

↑