knowledge

Overview

Logs are digital footprints left behind by any activity on a system or network — whether from normal operations or malicious intent. They provide a detailed record of system, application, and user activity, enabling security monitoring, incident investigation, troubleshooting, performance analysis, and compliance auditing.


Terminology

TermDefinition
LogA recorded entry of an event or activity on a system or network
Event IDUnique identifier assigned to each type of Windows log event
Log AnalysisTechnique for extracting actionable insights from log data
Access LogWeb server log recording all incoming HTTP requests
User-AgentString identifying the client’s browser and operating system in HTTP requests
Audit TrailChronological record of events used for compliance and forensic purposes

Core Concepts

Use Cases for Logs

Use CaseDescription
Security MonitoringDetect anomalous behavior through real-time log analysis
Incident InvestigationTrace activity during security incidents; support root cause analysis
TroubleshootingRecord errors and warnings to diagnose system or application issues
Performance MonitoringTrack performance metrics of applications and services
Auditing and ComplianceEstablish activity trails for regulatory and organizational requirements

Types of Logs

Types of Logs

Log types vary depending on the application or service generating them. Common categories include system logs, application logs, security logs, network logs, and web server access logs.

Windows Event Logs

Viewable via: Event Viewer → Windows Logs See Windows Fundamentals for Event Viewer navigation detail.

Log Categories

CategoryDescription
Application LogsErrors, warnings, and informational messages from applications
System LogsSystem operations, driver issues, hardware events, and startup processes
Security LogsUser authentication, account changes, policy modifications, and security events

Windows Event Log Fields

FieldDescription
DescriptionDetailed information about the activity
Log NameName of the log file
LoggedTimestamp of the activity
Event IDUnique identifier for the event type

Important Event IDs

Event IDDescription
4624Successful logon
4625Failed logon
4634User logoff
4720Account created
4722Account enabled
4724Attempt to reset password
4725Account disabled
4726Account deleted
4688Process execution
104Event log cleared

Web Server Access Log Analysis

Web servers log all requests in dedicated log files.

Apache Access Log

Location: /var/log/apache2/access.log See Linux Fundamentals for Linux log directory structure.

FieldDescription
IP AddressOrigin of the request
TimestampWhen the request occurred
RequestHTTP method and requested resource
Status CodeServer response code
User-AgentClient system and browser details

Log Analysis Commands

CommandPurpose
cat fileRead a log file
cat file1 file2 > combinedCombine multiple log files
grep "term" fileFilter log entries by keyword
less filePage through large log files efficiently


References / Images

  • Types of Logs
  • Microsoft Windows Event ID reference
  • Apache log format documentation