Skip to content
Singahi

Compliance · guide

ISO 27001 A.8.15: Logging

98 min read

Share
On this page

Quick Reference (60 Seconds)

Figure · At a glance

A.8.15 at a glance

Control ID
A.8.15
Control Name
Logging
ISO 27002:2022 Section
8.15
Primary Purpose
Generate, store, protect
Key Activities
Define logging policy, configure log sources
Typical Owners
Security Operations Manager, SOC Manager
The essentials before reading further. The full reference table follows.
AspectSummary
Control IDA.8.15
Control NameLogging
ISO 27002:2022 Section8.15
Primary PurposeGenerate, store, protect, and analyze logs to detect security incidents, support forensic investigations, and demonstrate compliance
Key ActivitiesDefine logging policy, configure log sources, centralize logs, protect logs, analyze logs, correlate events, retain logs, monitor logs, respond to alerts
Typical OwnersSecurity Operations Manager, SOC Manager, CISO, IT Operations Manager, Compliance Officer
Implementation EffortMedium (6–10 weeks)
Annual overhead Range– for growing companies

Bottom Line: If you cannot see what is happening in your systems, you cannot defend them. Logging is the foundation of security monitoring, incident response, and compliance. Without logs, you cannot detect attacks, investigate breaches, or prove compliance to regulators. A.8.15 requires organizations to generate, collect, protect, and analyze logs from all critical systems. From failed login attempts to data exfiltration, logs provide the evidence trail that separates a secure organization from a blind one. Logging is not optional, it is the eyes and memory of your security program.


What the Standard Actually Requires

Figure · Process

What A.8.15 asks you to do

The 7 requirements of ISO 27001 A.8.15, logging, in order: logging policy; log content; log generation; log storage; log protection; log analysis; log retention.
The 7 things the control expects. Each is expanded in the section below.

ISO 27001:2022 Annex A.8.15 states:

ISO 27001:2022 Annex A 8.15 asks organizations to generate, retain, protect, and review logs that capture activity, errors, faults, and other notable events.

ISO 27002:2022 expands this into practical guidance covering:

  1. Logging policy, Documented rules for what, when, how, and where to log
  2. Log content, Logs must capture user IDs, dates/times, system IDs, event types, success/failure, and originating IP addresses
  3. Log generation, Systems must generate logs for security-relevant events
  4. Log storage, Logs must be stored securely and retained for defined periods
  5. Log protection, Logs must be protected against unauthorized access, modification, and deletion
  6. Log analysis, Logs must be analyzed to detect security incidents, anomalies, and policy violations
  7. Log retention, Logs must be retained for a defined period based on business and regulatory needs
  8. Clock synchronization, System clocks must be synchronized to ensure accurate timestamps (linked to A.8.17)
  9. Log review, Logs must be reviewed regularly, not just stored
  10. Privileged access logging, Privileged access and administrator activities must be completely logged

Why Logging Matters

The Visibility Threat

You cannot defend what you cannot see. Without logging, organizations are blind to the activities occurring in their systems. Attackers operate in the shadows of unmonitored systems. Insider threats go undetected. Policy violations are unnoticed. Compliance gaps are invisible. Logging illuminates these shadows and provides the evidence trail for detection, investigation, and compliance.

Key Statistics

  • 80% of breaches involve compromised credentials; without authentication logs, credential compromise is undetectable
  • Average breach detection time is 287 days (IBM impact of Data Breach Report 2024); without log analysis, detection takes even longer
  • 60% of organizations have inadequate logging and monitoring (Gartner)
  • 90% of successful cyberattacks could have been detected earlier with proper log analysis (SANS Institute)
  • Log analysis is the #1 control for detecting insider threats (Verizon DBIR)
  • India ranks 3rd globally in data breaches; without logging, Indian organizations are especially vulnerable
  • Only 30% of organizations analyze their logs in real-time (Ponemon Institute)
  • 42% of organizations do not retain logs for the required regulatory period (Compliance Week)
  • 70% of ransomware attacks are preceded by reconnaissance activity visible in logs (CrowdStrike)
  • Insider threats account for 34% of data breaches; without user activity logs, insider threats are nearly impossible to detect
  • RBI, SEBI, CERT-In all mandate logging and log retention for regulated industries
  • Log tampering is a common attacker technique, without log protection, attackers erase their tracks

Real-World Consequences

  • A bank in Mumbai was breached by an attacker who gained access to the core banking system. The bank had no centralized logging. Each system had local logs, but they were not collected or analyzed. The attacker operated undetected for 6 months, transferring to foreign accounts. When the breach was discovered (by a customer complaint), the bank had no logs to trace the attacker's actions. The forensic investigation was impossible. The bank paid the full amount, faced RBI penalties, and lost customer trust. A simple SIEM with log correlation would have detected the attack within days.
  • A hospital in Delhi had a ransomware attack that encrypted all patient records. The hospital had logs but they were stored on the same server that was encrypted. The logs were lost. The hospital could not determine how the attacker entered, how long they were present, or what data was accessed. The forensic investigation was severely hampered. The hospital could not provide accurate breach notification to patients. The incident was reported to the National Human Rights Commission, and the hospital faced a lawsuit from affected patients.
  • An IT services company in Bangalore had an insider threat, a disgruntled employee downloaded 10,000 customer records before resigning. The company had no data access logs. The theft was discovered 3 months later when a customer reported their data on the dark web. The company had no evidence of who accessed the data, when, or how. The employee could not be prosecuted. The company faced a lawsuit from affected customers and lost 5 major clients. The company had to implement DLP and logging retrospectively, but the damage was done.
  • A government department in India was required to provide logs for a CAG audit. The department had no logging policy and had not retained logs for the required 7 years. The CAG issued an adverse finding, and the department head was held accountable. The department had to implement logging retrospectively and faced operational restrictions until compliance was achieved.
  • A SaaS company in Hyderabad was hit by a credential stuffing attack. The company had authentication logs but they were not analyzed. The attacker successfully guessed 50 user passwords and accessed sensitive data. The attack was visible in the logs (thousands of failed login attempts from a single IP), but no one was watching the logs. The company discovered the breach only after a customer complained about unauthorized access. The company faced SLA penalties and lost 3 enterprise customers. A simple log analysis rule would have detected the credential stuffing attack within hours.

Regulatory and Business Drivers

  • RBI Cyber Security Framework mandates complete logging for all banking systems, with centralized log management and real-time analysis
  • SEBI Cybersecurity Circular requires logging for trading systems, with retention and analysis for audit trails
  • IRDAI Guidelines require logging for insurance systems, with retention for compliance
  • CERT-In Guidelines mandate logging and log retention for critical infrastructure, with reporting requirements
  • IT Act 2000 requires reasonable security practices, including logging and monitoring for sensitive data
  • DPDP Act 2023 requires data fiduciaries to maintain records of processing activities, including logs
  • Company Act 2013 requires companies to maintain records and have audit trails
  • ISO 27001 requires A.8.15 as part of the ISMS
  • SOC 2 requires logging as part of system operations (CC6.1, CC7.2)
  • PCI DSS requires logging for all systems in the cardholder data environment (Req 10)
  • Cyber Insurance increasingly requires logging and SIEM as a condition of coverage
  • SLA commitments to customers often require security monitoring and incident response capabilities supported by logging

Scope and Applicability

What Must Be Logged

  • Authentication and access events: Successful and failed logins, logouts, password changes, MFA events, privilege escalation, session creation/termination
  • User activity: Files accessed, data downloaded, data modified, data deleted, data copied, data transferred, emails sent, applications used
  • System events: System startup/shutdown, service starts/stops, configuration changes, software installation/uninstallation, patch installation, system errors, hardware failures
  • Network events: Firewall traffic (allowed/denied), VPN connections, proxy logs, DNS queries, DHCP assignments, network access, port scans, DDoS activity
  • Security events: Antivirus alerts, IDS/IPS alerts, DLP alerts, EDR alerts, SIEM alerts, vulnerability scan results, penetration test findings
  • Database events: Queries executed, schema changes, data exports, privilege changes, connection attempts, backup/restore operations, audit trail events
  • Application events: API requests, business transactions, error events, input validation failures, rate limiting events, payment transactions, file uploads
  • Cloud events: Cloud API calls, IAM changes, resource provisioning, access key usage, bucket access, cloud security events, auto-scaling events
  • Administrative events: Privileged commands, administrator actions, policy changes, user provisioning, permission changes, role changes
  • Physical access: Badge swipes, door access, biometric access, visitor logs, security camera logs (if integrated)
  • Backup and recovery: Backup jobs, restore jobs, backup failures, data recovery events, DR activations
  • Change management: Change requests, approvals, implementations, rollbacks, emergency changes
  • Compliance events: Audit access, policy violations, data subject requests, legal hold activities, evidence collection

What Is Not Typically Required to Be Logged

  • Non-security events: Routine system metrics that do not indicate security relevance (CPU usage, memory usage, unless used for anomaly detection)
  • Debug logs: Application debug logs that do not contain security-relevant information (unless required for incident investigation)
  • Personal usage: Personal browsing, personal email, personal device usage (unless on corporate devices and monitored by policy)
  • Encrypted payload contents: The actual content of encrypted communications (unless decrypted for inspection)
  • Performance metrics: Pure performance metrics without security context (unless anomaly detection requires them)

Applicability by Organization Type

Organization TypeApplicabilityKey Logging Concerns
BFSICriticalCore banking logs, payment logs, ATM logs, trading logs, customer access logs, RBI compliance, transaction audit trails
HealthcareCriticalEMR access logs, patient data access, medical image access, prescription access, NABH compliance, audit trails
IT/Software ServicesHighCustomer access logs, source code access, deployment logs, CI/CD logs, cloud API logs, development environment logs
SaaS/CloudCriticalMulti-tenant logs, customer access logs, API logs, tenant isolation logs, data processing logs, SOC 2 compliance
Retail/E-commerceHighTransaction logs, payment logs, customer access logs, inventory logs, fraud detection logs, PCI DSS compliance
ManufacturingHighSCADA/ICS logs, production logs, ERP logs, IoT device logs, industrial control logs, safety system logs
Government/DefenseCriticalCitizen service logs, classified access logs, defense system logs, critical infrastructure logs, RTI access logs
EducationMediumStudent access logs, exam system logs, research data access, financial logs, LMS logs
TelecomHighCall logs, network logs, customer access logs, billing logs, TRAI compliance, fraud detection logs
Media/OTTMediumSubscriber logs, content access logs, streaming logs, payment logs, DRM logs

Key Definitions and Terminology

TermDefinition
LogA record of events that have occurred within a system or application
Log SourceA system, application, or device that generates logs (e.g., firewall, server, database)
Log EventA single entry in a log, describing one action or occurrence
Log FormatThe structure of a log entry (e.g., syslog, JSON, CEF, LEEF, Windows Event Log)
Centralized LoggingThe collection of logs from multiple sources into a single repository
Log AggregationThe process of collecting and combining logs from multiple sources
Log CorrelationThe analysis of logs from multiple sources to identify related events or patterns
SIEM (Security Information and Event Management)A system that collects, analyzes, and correlates security logs in real-time
Log ManagementThe process of collecting, storing, analyzing, and retaining logs
Log RetentionThe period of time logs are kept before deletion
Log RotationThe process of automatically archiving and deleting old logs to manage storage
SyslogA standard protocol for logging (RFC 5424), commonly used on Unix/Linux systems
Windows Event LogThe native logging system for Windows operating systems
CEF (Common Event Format)A standardized log format by ArcSight for interoperability
LEEF (Log Event Extended Format)A standardized log format by IBM for interoperability
JSON LoggingStructured logging using JSON format for easy parsing and analysis
Log ParsingThe process of extracting structured data from unstructured log entries
Log NormalizationThe process of converting different log formats into a common format
Log EnrichmentThe process of adding context to logs (e.g., geolocation, threat intelligence, user identity)
Log ForwardingThe process of sending logs from the source to a central collector or SIEM
Log AgentSoftware installed on a log source to collect and forward logs
Log CollectorA central server that receives and stores logs from multiple sources
Log IntegrityThe assurance that logs have not been tampered with or modified
Log ImmutabilityThe property of logs that prevents modification or deletion
Log EncryptionThe encryption of logs at rest and in transit to protect confidentiality
Log CompressionThe reduction of log size to save storage and bandwidth
Log SearchThe ability to query logs for specific events, patterns, or time periods
Log AlertingThe generation of notifications when logs match predefined criteria
Log DashboardA visual representation of log data for monitoring and analysis
Log AnalyticsThe use of statistical and machine learning techniques to analyze log data
Log ForensicsThe use of logs to reconstruct events during a security incident or investigation
Audit TrailA chronological record of system activities that provides documentary evidence
Chain of CustodyThe documentation of how evidence (logs) was handled from collection to presentation
Log TamperingThe unauthorized modification or deletion of logs to hide evidence
Log FloodingAn attack that generates excessive logs to overwhelm logging systems or hide malicious activity
Log InjectionAn attack that inserts malicious data into logs to mislead analysis
Real-Time Log AnalysisThe analysis of logs as they are generated, enabling immediate detection
Batch Log AnalysisThe analysis of logs in batches, typically for historical review or reporting
Log Storage TieringThe use of different storage types (hot, warm, cold) based on log age and access frequency
Log ArchiveLong-term storage of logs for compliance, legal, or historical purposes
Log QuarantineThe isolation of suspicious logs for further investigation
Log Retention PolicyThe documented rules for how long logs must be kept
Log ReviewThe manual or automated examination of logs for security or compliance purposes
Log MonitoringThe continuous observation of logs for security events or anomalies
False PositiveAn alert triggered by a benign event that appears suspicious
False NegativeA malicious event that is not detected by logging or analysis
BaselineThe normal pattern of log activity used for anomaly detection
Anomaly DetectionThe identification of deviations from normal log patterns
User Behavior Analytics (UBA)The analysis of user activity patterns to detect insider threats
Threat IntelligenceExternal data about known threats used to enrich and contextualize logs
AttributionThe process of linking log events to specific users, systems, or attackers
Timeline ReconstructionThe use of logs to create a chronological sequence of events during an incident
Log ShippersTools that transport logs from sources to collectors (e.g., Filebeat, Fluentd, Logstash, NXLog)
Log BrokersIntermediate systems that receive, process, and forward logs (e.g., Kafka, Redis, RabbitMQ)
Log Analytics PlatformA platform for analyzing logs (e.g., Splunk, Elasticsearch, LogRhythm, QRadar)
Cloud LoggingLogging services provided by cloud providers (e.g., AWS CloudTrail, Azure Monitor, GCP Cloud Logging)
API LoggingThe logging of API requests, responses, and errors
Container LoggingThe logging of containerized applications (e.g., Docker logs, Kubernetes logs)
Serverless LoggingThe logging of serverless functions (e.g., AWS Lambda logs, Azure Functions logs)
Audit LoggingLogging specifically designed for compliance and audit purposes
Security LoggingLogging specifically designed for security monitoring and incident detection
Operational LoggingLogging for system operations, troubleshooting, and performance monitoring
Application LoggingLogging generated by applications for debugging, monitoring, and security
Infrastructure LoggingLogging generated by infrastructure components (servers, network, storage)
Compliance LoggingLogging required to meet regulatory or compliance requirements

Relationship to Other Controls

ControlRelationship
A.5.1 Policies for information securityLogging policy aligns with overall security policy
A.5.7 Threat intelligenceLogs provide threat intelligence data; threat intelligence enriches logs
A.5.24 Planning and preparation for information security continuityLogs support continuity planning and incident response
A.5.30 ICT readiness for continuityLogs help assess ICT readiness and track incidents during disruptions
A.8.1 User endpoint devicesEndpoint activity must be logged
A.8.5 Secure authenticationAuthentication events must be logged (success, failure, MFA)
A.8.6 Capacity managementLog volume must be included in capacity planning
A.8.9 Configuration managementConfiguration changes must be logged
A.8.10 Information deletionData deletion must be logged for audit trail
A.8.13 Information backupLogs must be backed up and protected
A.8.16 Monitoring activitiesLogging is a core component of monitoring
A.8.17 Synchronization of clocksClock synchronization is essential for accurate log timestamps
A.8.18 Use of privileged utility programsPrivileged utility usage must be logged
A.8.20 Network securityNetwork security events must be logged
A.8.24 Use of cryptographyCryptographic operations must be logged
A.8.25 Secure development life cycleApplication logs must be designed into the SDLC
A.8.28 Secure codingSecure coding must include proper logging practices
A.8.29 Security testing in development and acceptanceLogging must be tested during security testing
A.8.32 Configuration of information systemsConfiguration changes must be logged
A.8.34 Protection of information systems during disruptionLogs help track and respond to disruptions
A.7.13 Equipment disposalLog storage devices must be securely disposed
A.5.25 Assessment and decision on information security eventsLogs provide the data for security event assessment
A.5.26 Response to information security incidentsLogs are the primary evidence for incident response
A.5.27 Learning from information security incidentsLogs provide the data for post-incident analysis
A.5.28 Collection of evidenceLogs are the primary source of digital evidence

Implementation Roadmap (Week-by-Week)

Phase 1: Assessment and Planning (Weeks 1–3)

Week 1: Log Source Inventory

  • Inventory all systems that can generate logs (servers, network devices, firewalls, databases, applications, cloud services, endpoints, IoT devices)
  • Identify which systems are currently generating logs (and which are not)
  • Identify current log formats (syslog, Windows Event Log, JSON, custom, etc.)
  • Identify current log storage locations (local files, network shares, cloud, SIEM)
  • Identify current log retention periods (if any)
  • Identify current log analysis practices (if any)
  • Map log sources to business criticality (which logs are most important for security and compliance?)
  • Identify compliance requirements that mandate logging (RBI, SEBI, PCI DSS, CERT-In, etc.)
  • Assess current log volume (GB/day, events/second)
  • Identify gaps (systems not logging, logs not collected, logs not analyzed, logs not retained)

Week 2: Logging Policy Development

  • Draft logging policy
  • Define what events must be logged (authentication, access, changes, security events, etc.)
  • Define log format standards (JSON, CEF, syslog, etc.)
  • Define log retention periods (based on compliance and business needs):
    • Security incident logs: 7 years (or legal requirement)
    • Authentication logs: 2 years
    • Access logs: 1 year
    • System logs: 1 year
    • Network logs: 1 year
    • Application logs: 6 months–1 year
    • Debug logs: 30 days
  • Define log storage requirements (centralized, encrypted, tamper-proof, accessible)
  • Define log analysis requirements (real-time, daily, weekly, monthly)
  • Define log protection requirements (encryption, integrity, access controls, immutability)
  • Define roles and responsibilities (who configures, collects, analyzes, reviews, and responds to logs?)
  • Approve policy by CISO and legal/compliance

Week 3: Log Architecture Design

  • Design log architecture:
    • Log sources (what generates logs)
    • Log shippers (how logs are transported)
    • Log brokers (intermediate processing)
    • Log collectors (centralized storage)
    • Log analytics (SIEM or log platform)
    • Log archival (long-term storage)
  • Select log management platform (SIEM, log analytics, or cloud-native)
  • Design log forwarding (agents, syslog, API, cloud-native)
  • Design log storage (hot, warm, cold tiers)
  • Design log retention and rotation (automated archival and deletion)
  • Design log encryption (at rest and in transit)
  • Design log integrity protection (hashing, WORM, immutability)
  • Design log access controls (who can read, modify, delete logs?)
  • Design log analysis and alerting (rules, thresholds, correlation, ML)
  • Design log dashboard and reporting (for SOC, management, compliance)
  • Estimate log volume and storage requirements (capacity planning)
  • Obtain budget approval

Phase 2: Infrastructure Implementation (Weeks 4–7)

Week 4: Centralized Log Collection Setup

  • Deploy log collector(s) or SIEM platform
  • Configure log collectors to receive logs (syslog, API, agent, cloud)
  • Deploy log agents on critical systems (servers, endpoints, databases)
  • Configure syslog forwarding on network devices (firewalls, routers, switches)
  • Configure cloud logging (AWS CloudTrail, Azure Monitor, GCP Cloud Logging)
  • Configure application logging (enable security-relevant logging in applications)
  • Configure database logging (enable audit trails, query logging, connection logging)
  • Configure OS logging (Windows Event Log, Linux auditd, macOS unified logging)
  • Verify log collection (check that logs are arriving at the collector)
  • Document log source inventory and configuration

Week 5: Log Parsing and Normalization

  • Configure log parsing for each log source (extract fields, timestamps, user IDs, IP addresses, event types)
  • Configure log normalization (convert different formats to common schema)
  • Configure log enrichment (add geolocation, threat intelligence, user identity, asset context)
  • Configure timestamp normalization (ensure all logs use consistent time format and timezone)
  • Configure log categorization (assign logs to categories: authentication, access, security, system, network, etc.)
  • Configure log severity mapping (map source-specific severity to common severity scale)
  • Test parsing and normalization with sample logs
  • Verify parsed data is accurate and complete
  • Document parsing rules and normalization schema

Week 6: Log Storage and Protection

  • Configure log storage tiers (hot: recent logs on fast storage; warm: older logs on slower storage; cold: archived logs on cheapest storage)
  • Configure log retention policies (automated deletion after retention period)
  • Configure log encryption at rest (AES-256, storage-level encryption)
  • Configure log encryption in transit (TLS for log forwarding, VPN for sensitive logs)
  • Configure log integrity protection (hashing, digital signatures, WORM storage)
  • Configure log immutability (write-once storage, append-only, tamper-proof)
  • Configure log access controls (RBAC, MFA, audit trail for log access)
  • Configure log backup (backup logs to separate storage, test restoration)
  • Configure log rotation and archival (automated compression, archival, deletion)
  • Test log storage and protection (attempt to modify/delete logs, verify protection works)
  • Document storage and protection configuration

Week 7: Log Analysis and Alerting

  • Configure baseline analysis (establish normal patterns for authentication, access, network traffic, etc.)
  • Configure correlation rules (link related events across multiple log sources)
  • Configure security alerts:
    • Authentication: multiple failed logins, impossible travel, off-hours login, new device login
    • Access: unauthorized access, privilege escalation, access to sensitive data, bulk data access
    • Network: port scans, DDoS, suspicious traffic, C2 communication, data exfiltration
    • System: configuration changes, software installation, service changes, shutdown/restart
    • Database: unauthorized queries, schema changes, privilege changes, large exports
    • Application: SQL injection, XSS, rate limiting, input validation failures, API abuse
    • Cloud: IAM changes, unauthorized API calls, resource provisioning, access key usage
    • Malware: antivirus alerts, EDR detections, suspicious process execution, file changes
  • Configure compliance alerts (policy violations, unauthorized access, data leakage)
  • Configure anomaly detection (ML-based detection of unusual patterns)
  • Configure threshold-based alerts (alert when events exceed defined thresholds)
  • Configure alert escalation (low → medium → high → critical)
  • Configure alert response procedures (automated response, ticket creation, notification)
  • Test alerts with simulated events (generate test events, verify alerts trigger correctly)
  • Tune alerts to reduce false positives (adjust thresholds, refine rules)
  • Document alert rules, thresholds, and response procedures

Phase 3: Testing and Validation (Weeks 8–9)

Week 8: Log Analysis Testing

  • Conduct daily log review (manual review of high-priority logs)
  • Conduct weekly log review (review of summary reports, trend analysis)
  • Conduct monthly log review (complete review of all log categories)
  • Test log search capabilities (search for specific events, users, IPs, time periods)
  • Test log correlation (verify that related events are correctly linked)
  • Test log forensics (reconstruct a simulated incident using logs)
  • Test log reporting (generate compliance reports, management reports, SOC reports)
  • Test log retention (verify logs are retained for the required period and deleted after)
  • Test log restoration (restore archived logs, verify integrity)
  • Test log tamper resistance (attempt to modify logs, verify immutability)
  • Document test results and any gaps

Week 9: Incident Response Integration

  • Integrate logs with incident response process (logs feed into incident detection and investigation)
  • Create log-based incident response playbooks (how to use logs during an incident)
  • Train SOC analysts on log analysis and incident investigation
  • Conduct simulated incident using logs (red team exercise, generate attack, detect via logs)
  • Measure mean time to detect (MTTD) using logs (target: detect within hours, not days)
  • Measure mean time to respond (MTTR) using logs (target: respond within hours)
  • Document incident response procedures that use logs
  • Create log-based forensic investigation procedures
  • Create log-based evidence collection procedures (chain of custody)
  • Document lessons learned and improve procedures

Phase 4: Documentation, Monitoring, and Audit (Weeks 10–12)

Week 10: Documentation and Runbooks

  • Document all logging procedures (configuration, collection, parsing, storage, analysis, alerting)
  • Create log analysis runbooks (daily, weekly, monthly review procedures)
  • Create incident response runbooks that use logs (step-by-step log-based investigation)
  • Create forensic investigation runbooks (log-based evidence collection, timeline reconstruction)
  • Create compliance reporting runbooks (how to generate compliance reports from logs)
  • Create quick reference cards for common log analysis tasks
  • Create escalation procedures for critical log alerts
  • Create communication templates for log-based incidents
  • Store documentation in accessible location (accessible during incidents)
  • Train all relevant staff on logging procedures and runbooks

Week 11: Monitoring and Dashboard Setup

  • Set up log monitoring dashboard (log volume, alert volume, alert types, log source health)
  • Configure log source health monitoring (alert if a log source stops sending logs)
  • Configure log volume monitoring (alert if log volume spikes or drops unexpectedly)
  • Configure log storage monitoring (alert if storage capacity is low)
  • Configure log parsing health monitoring (alert if parsing fails or produces errors)
  • Configure log retention monitoring (alert if retention policies are not enforced)
  • Configure log integrity monitoring (alert if log tampering is detected)
  • Configure compliance monitoring (track log coverage, retention, analysis, and reporting)
  • Create management dashboards (executive summary of logging health, compliance status, incident detection metrics)
  • Create SOC dashboards (real-time alert feed, investigation workspace, threat intelligence integration)

Week 12: Audit and Compliance Preparation

  • Conduct internal audit of logging implementation (checklist-based)
  • Verify all required log sources are generating logs
  • Verify all logs are being collected and centralized
  • Verify log retention policies are enforced
  • Verify log protection is effective (encryption, integrity, access controls)
  • Verify log analysis is being conducted (daily, weekly, monthly)
  • Verify alerts are configured and responding
  • Verify incident response integration is working
  • Verify compliance reporting is accurate and complete
  • Prepare documentation for external audit (ISO 27001, RBI, SEBI, PCI DSS)
  • Plan for continuous improvement (quarterly review, technology refresh, tuning)

Detailed Implementation Guidance

What Events Must Be Logged

Mandatory Log Events by Category:

CategoryEvents to LogCriticalityCompliance
AuthenticationSuccessful login, failed login, logout, password change, password reset, MFA attempt (success/failure), account lockout, account unlock, privilege escalation, session creation, session termination, credential change, Kerberos ticket events, certificate authenticationCriticalAll
Access ControlAccess granted, access denied, access revoked, permission change, role change, group membership change, policy change, ACL change, resource access (success/failure), file access (read/write/delete), directory accessCriticalAll
User ActivityUser action (create, read, update, delete), data download, data upload, data transfer, data deletion, email send/receive, application usage, file sharing, clipboard operations, print operations, screen capture, USB device connectionHighRBI, SEBI, PCI DSS, DPDP
System EventsSystem startup, system shutdown, service start, service stop, service restart, configuration change, registry change, software installation, software uninstallation, patch installation, driver installation, scheduled task creation, system error, hardware failure, disk full, memory exhaustionHighAll
Network EventsFirewall allow/deny, VPN connection (start/end), proxy access (allow/deny), DNS query, DHCP assignment, port scan detected, DDoS detected, suspicious traffic, C2 communication, data exfiltration attempt, network access (success/failure), routing change, NAT eventCriticalAll
Security EventsAntivirus detection, EDR alert, IDS/IPS alert, DLP alert, SIEM alert, vulnerability scan result, penetration test finding, malware detection, ransomware detection, brute force detected, credential stuffing detected, impossible travel detected, anomaly detectedCriticalAll
Database EventsQuery execution (sensitive tables), schema change, table creation, table deletion, index change, privilege grant, privilege revoke, user creation, user deletion, connection attempt (success/failure), backup start, backup end, restore start, restore end, large data export, data modification (bulk)CriticalRBI, SEBI, PCI DSS
Application EventsAPI request (success/failure), API key usage, rate limit exceeded, input validation failure, business transaction (create, update, delete), payment transaction, file upload, file download, error event, exception, timeout, retry, circuit breaker trigger, bulk operationHighPCI DSS, SOC 2
Cloud EventsAPI call (success/failure), IAM change, resource creation, resource deletion, resource modification, access key creation, access key usage, bucket access (allow/deny), policy change, role assumption, auto-scaling event, cloud security event, overhead anomalyCriticalAll cloud
Administrative EventsAdministrator command execution, privilege command execution, system command, shell access, remote access, configuration change, policy change, user provisioning, user deprovisioning, role assignment, emergency access, break-glass accessCriticalAll
Backup/RecoveryBackup job start, backup job end, backup success, backup failure, restore job start, restore job end, restore success, restore failure, DR activation, DR deactivation, data recovery event, backup deletionHighRBI, SEBI
Change ManagementChange request creation, change approval, change implementation, change rollback, emergency change, change review, CAB meeting, change outcome (success/failure)HighAll
Compliance EventsAudit access, policy violation, data subject request, legal hold creation, legal hold removal, evidence collection, compliance report generation, auditor login, auditor accessHighRBI, SEBI, DPDP
Physical AccessBadge swipe (success/failure), door access (grant/deny), visitor entry, visitor exit, biometric authentication, tailgating detection, after-hours access, unauthorized access attemptMediumPhysical security
IoT/OT EventsDevice connection, device disconnection, sensor reading, actuator command, SCADA event, industrial control event, safety system event, PLC event, HMI event, alarm event, maintenance eventHighManufacturing, utilities

Log Content Requirements (What Must Be in Each Log Entry):

FieldDescriptionExample
TimestampDate and time of the event (with timezone)2026-06-16T14:32:15+05:30
Log SourceSystem or device that generated the logWebServer01, Firewall-Primary, AD-DC01
Event TypeCategory of the eventAuthentication, Access, Security, System
Event IDUnique identifier for the event type4624 (Windows login), 4625 (Windows failed login)
SeverityCriticality of the event (Critical, High, Medium, Low, Info)High
User IDIdentity of the user or account involvedjohn.doe@company.com, admin_account, SYSTEM
Source IPIP address where the event originated192.168.1.100, 203.0.113.45
Destination IPIP address where the event was directed10.0.0.5, 198.51.100.20
Source PortPort number on the source54321
Destination PortPort number on the destination443, 22, 3389
ProtocolNetwork protocol usedTCP, UDP, HTTP, HTTPS, SSH, RDP
ActionWhat happened (success, failure, allow, deny, create, delete, modify)Success, Failure, Deny, Allow
ObjectResource or object affectedFile: /data/customer.csv, Table: Users, VM: WebServer01
OutcomeResult of the actionSuccess, Failure, Partial, Timeout
ReasonExplanation for failure or denialInvalid password, Access denied, Rate limit exceeded
Session IDIdentifier for the user sessionSessionID: abc123def456
Transaction IDIdentifier for the business transactionTxnID: TXN-2026-0616-001
Correlation IDIdentifier to link related events across systemsCorrID: corr-789ghi012
Additional DetailsContext-specific information (query string, file hash, certificate thumbprint, etc.)Query: SELECT * FROM Customers; Hash: SHA256:abc123...
Log Integrity HashCryptographic hash of the log entry for integrity verificationSHA256: def456...

Log Architecture Design

Log Architecture Components:

LayerComponentFunctionExamples
Log GenerationLog sourcesGenerate raw logsOS, applications, databases, network devices, firewalls, cloud services
Log CollectionLog agents/shippersCollect and forward logs from sourcesFilebeat, Fluentd, Logstash, NXLog, Splunk Universal Forwarder, AWS CloudWatch Agent, Azure Monitor Agent
Log TransportLog brokers/queuesBuffer and transport logs reliablyKafka, Redis, RabbitMQ, AWS Kinesis, Azure Event Hubs, Google Cloud Pub/Sub
Log ProcessingLog processorsParse, normalize, enrich, and filter logsLogstash, Fluentd, Cribl, AWS Kinesis Data Analytics, Azure Stream Analytics
Log StorageLog storageStore logs for search and analysisElasticsearch, Splunk, Sumo Logic, Datadog Log Management, AWS S3, Azure Blob, Google Cloud Storage
Log AnalyticsSIEM/Log AnalyticsAnalyze, correlate, and alert on logsSplunk, QRadar, LogRhythm, Sentinel, Elastic Security, Datadog, Chronicle, Azure Sentinel
Log ArchivalCold storageLong-term storage for complianceAWS S3 Glacier, Azure Archive, Google Cloud Archive, Tape, Object Storage
Log VisualizationDashboardsVisualize log data for monitoringGrafana, Kibana, Splunk Dashboards, Datadog Dashboards, Azure Workbooks
Log AlertingAlerting engineGenerate alerts from log analysisSIEM alerting, PagerDuty, Opsgenie, custom webhooks
Log ResponseSOAR/Incident ResponseAutomated and manual response to alertsSplunk SOAR, Palo Alto XSOAR, Demisto, custom playbooks

Architecture Patterns:

PatternDescriptionBest ForProsCons
Direct to SIEMLogs sent directly from source to SIEMSmall organizations (< 50 sources)Simple; minimal infrastructureSingle point of failure; no buffering; no preprocessing
Agent + Collector + SIEMAgents on sources, collectors intermediate, SIEM analyzesMid-market (50–500 sources)Reliable; scalable; preprocessing; bufferingMore complex; requires management
Agent + Kafka + Processor + Storage + SIEMEnterprise pipeline with message brokerLarge enterprises (500+ sources)Highly scalable; fault-tolerant; real-time processing; decoupledComplex; requires expertise; higher overhead
Cloud-NativeCloud logging services integratedCloud-first organizationsManaged; scalable; integrated with cloud services; low maintenanceVendor lock-in; egress overhead; limited customization
HybridOn-premise + cloud combinedHybrid organizationsBest of both worlds; flexibility; cloud DR for on-premise logsComplex; requires integration; dual management

Log Retention and Compliance

Log Retention Matrix by Regulation and Event Type:

Regulation/Event TypeRetention PeriodEncryptionIntegrityAccess ControlNotes
RBI, Banking transaction logs7 yearsRequiredRequiredStrictMust be tamper-proof; audit trail
RBI, Authentication logs2 yearsRequiredRequiredStrictMust be centrally stored
RBI, Security incident logs7 yearsRequiredRequiredStrictMust be retained for forensic investigation
SEBI, Trading logs7 yearsRequiredRequiredStrictMust be immutable; CSE/SE compliance
SEBI, Access logs2 yearsRequiredRequiredStrictMust be centrally stored
PCI DSS, CHD environment logs1 year (online) + 3 years (archive)RequiredRequiredStrictMust be reviewed daily; tamper-proof
DPDP Act, Data processing logsDuration of processing + 3 yearsRequiredRequiredStrictMust support data subject requests
IT Act, Sensitive data access3 yearsRecommendedRecommendedStrictMust support investigation
Company Act, Financial records8 yearsRecommendedRecommendedControlledMust support audit
CERT-In, Critical infrastructure1 year (minimum)RequiredRequiredStrictMust be reportable on demand
SOC 2, System logs1 yearRecommendedRecommendedControlledMust support audit
ISO 27001, Security logsDuration of ISMS + 3 yearsRecommendedRequiredStrictMust be retained for audit
General, Authentication logs2 yearsRecommendedRecommendedControlledBest practice
General, Access logs1 yearRecommendedRecommendedControlledBest practice
General, System logs1 yearRecommendedRecommendedControlledBest practice
General, Network logs1 yearRecommendedRecommendedControlledBest practice
General, Application logs6 monthsRecommendedRecommendedControlledBest practice
General, Debug logs30 daysOptionalOptionalControlledBest practice

Log Analysis and Detection Use Cases

Authentication and Access Monitoring:

Use CaseDetection MethodLog SourcesAlert Severity
Brute force attackMultiple failed logins from same IP/userAuthentication logs, AD logs, VPN logsHigh
Credential stuffingMultiple failed logins with different usernames from same IPAuthentication logs, application logsHigh
Impossible travelLogin from two geographically distant locations in impossible timeAuthentication logs, VPN logsCritical
Off-hours loginLogin outside normal business hours (baseline deviation)Authentication logs, AD logsMedium
New device/location loginLogin from never-before-seen device or locationAuthentication logs, MFA logsMedium
Privilege escalationUser gaining elevated privilegesAD logs, system logs, authorization logsCritical
Account sharingMultiple simultaneous logins from different locations for same accountAuthentication logsHigh
Terminated employee accessLogin by deactivated or terminated accountAD logs, HR system logsCritical
Service account abuseService account used for interactive loginAD logs, system logsHigh
Password sprayFew failed logins across many accounts (low and slow)Authentication logsHigh

Data Access and Exfiltration Monitoring:

Use CaseDetection MethodLog SourcesAlert Severity
Unauthorized data accessAccess to sensitive data by unauthorized userDatabase logs, DLP logs, file server logsCritical
Bulk data downloadLarge volume of data downloaded by a userDatabase logs, file server logs, DLP logsCritical
Data exfiltrationData transferred to external destination (email, cloud, USB)DLP logs, email logs, cloud logs, proxy logsCritical
After-hours data accessAccess to sensitive data outside business hoursDatabase logs, file server logsHigh
Database query anomalyUnusual query patterns (e.g., SELECT * on entire table)Database logs, query logsHigh
Schema changeUnauthorized database schema modificationDatabase logs, DDL logsCritical
Privilege abuseUser with elevated privileges accessing data beyond their roleDatabase logs, access logsHigh
Unusual file access patternAccess to files not normally accessed by the userFile server logs, DLP logsMedium
Cloud data transferLarge data transfer to external cloud accountCloud logs, DLP logs, proxy logsCritical
USB device data copyData copied to USB deviceDLP logs, endpoint logsHigh

Malware and Threat Detection:

Use CaseDetection MethodLog SourcesAlert Severity
Malware executionExecution of known malicious processEDR logs, antivirus logs, system logsCritical
Ransomware activityMass file encryption, file extension changesEDR logs, file server logs, system logsCritical
C2 communicationOutbound connection to known command-and-control serverFirewall logs, proxy logs, DNS logs, EDR logsCritical
Lateral movementAuthentication or connection to multiple internal systemsAuthentication logs, network logs, EDR logsCritical
Persistence mechanismNew scheduled task, service, or registry run keySystem logs, registry logs, EDR logsHigh
PowerShell abuseExecution of obfuscated or suspicious PowerShellEDR logs, PowerShell logs, system logsHigh
Living off the landUse of legitimate tools for malicious purposes (e.g., certutil, wmic)EDR logs, system logs, process logsHigh
Phishing clickUser accesses known phishing URLProxy logs, DNS logs, email logsHigh
Exploit attemptWeb application attack (SQL injection, XSS, LFI)WAF logs, application logs, web server logsHigh
DDoS attackMassive inbound traffic overwhelming systemsFirewall logs, CDN logs, network logsHigh

Insider Threat Detection:

Use CaseDetection MethodLog SourcesAlert Severity
Data theft by employeeBulk download of customer data before resignationDatabase logs, DLP logs, file server logs, HR logsCritical
Privilege abuseAdministrator accessing data outside their responsibilitiesAdmin logs, database logs, access logsHigh
SabotageMass deletion or modification of critical data by authorized userDatabase logs, system logs, file server logsCritical
Unauthorized access to competitor dataEmployee accessing data of competitor or partnerDatabase logs, access logsHigh
Financial fraudUnauthorized financial transaction by employeeERP logs, payment logs, application logsCritical
Intellectual property theftDownload of source code, designs, or trade secretsDLP logs, source code repository logs, file server logsCritical
Policy violationUser accessing prohibited websites or contentProxy logs, DLP logsMedium
Account sharingMultiple users sharing credentialsAuthentication logsMedium
Contractor abuseContractor accessing data beyond project scopeAccess logs, database logs, DLP logsHigh
Resignation riskHigh-risk behavior before resignation (data access spike, cloud uploads)DLP logs, database logs, cloud logs, HR logsHigh

Compliance and Policy Violation Detection:

Use CaseDetection MethodLog SourcesAlert Severity
Unauthorized software installationSoftware installed without approvalSystem logs, EDR logs, change management logsMedium
Unauthorized configuration changeSystem or network configuration changed without approvalSystem logs, network logs, change management logsHigh
Unauthorized access to audit logsSomeone accessing log files they should not accessLog access logs, system logsHigh
Policy violation (web access)Access to prohibited websites (gambling, adult, extremist)Proxy logs, DNS logsMedium
Data subject request violationFailure to respond to data subject request within DPDP timelineDPDP request logs, system logsHigh
Unencrypted data transferSensitive data transferred over unencrypted channelDLP logs, network logs, proxy logsHigh
Unapproved cloud service usageUser uploading company data to personal cloud (Shadow IT)DLP logs, proxy logs, cloud access logsMedium
Personal device accessAccess from unapproved personal device (BYOD violation)MDM logs, authentication logs, network logsMedium
Unauthorized VPN usageVPN connection from unauthorized location or deviceVPN logs, authentication logsHigh
Audit trail gapMissing logs for a period (log source stopped sending)Log health monitoringHigh

Tools, Technologies, and Solutions

SIEM Platforms

VendorProductKey Featureslicensing Range (INR)
SplunkSplunk Enterprise / Splunk CloudEnterprise SIEM, powerful search, ML, SOAR integration, extensive app ecosystem
IBMQRadarEnterprise SIEM, correlation, threat intelligence, UBA, network flow analysis
LogRhythmLogRhythm SIEMEnterprise SIEM, AI-driven analytics, UBA, SOAR, complete compliance
MicrosoftMicrosoft SentinelCloud-native SIEM, AI, SOAR, integrated with Azure, efficient for Microsoft environments
ElasticElastic Security (SIEM)Open-source SIEM, scalable, search-powered, integrated with Elastic Stack, efficientFree (open-source) or –15,00,000/year
ExabeamExabeam FusionUBA-focused, timeline analysis, advanced analytics, SME-friendly
Rapid7InsightIDRUBA, endpoint detection, deception technology, cloud-native, affordable
SecuronixSecuronix SIEMUBA, SOAR, threat intelligence, cloud-native, scalable
Sumo LogicSumo Logic SIEMCloud-native, scalable, DevOps-friendly, log analytics
DatadogDatadog Security MonitoringCloud-native, integrated with infrastructure monitoring, DevOps-friendly
ChronicleGoogle Chronicle (now part of Google Security Operations)Cloud-native, threat intelligence, YARA-L rules, Google-scale analytics
FortinetFortiSIEMIntegrated with Fortinet security fabric, UEBA, SOAR, affordable
ManageEngineLog360Affordable SIEM, compliance reports, log management, UEBA
WazuhWazuhOpen-source SIEM, XDR, EDR, compliance, affordableFree (open-source) or –5,00,000/year
GraylogGraylogOpen-source log management, SIEM features, efficientFree (open-source) or –8,00,000/year
OSSIMAlienVault OSSIMOpen-source SIEM, threat intelligence, vulnerability managementFree (open-source)

Log Management and Analytics

VendorProductKey Featureslicensing Range (INR)
ElasticElastic Stack (ELK)Elasticsearch, Logstash, Kibana, Beats, open-source log management, search, visualizationFree (open-source) or –15,00,000/year
SplunkSplunk EnterpriseEnterprise log management, search, analytics, visualization, alerting
DatadogDatadog Log ManagementCloud-native, integrated with APM and infrastructure monitoring, real-time
Sumo LogicSumo LogicCloud-native log analytics, DevOps-friendly, scalable
LogDNALogDNA (Mezmo)Cloud-native, Kubernetes-friendly, real-time, affordable
PapertrailPapertrail (SolarWinds)Simple, cloud-hosted, real-time, affordable for small teams
HumioHumio (now Falcon LogScale)CrowdStrike, log management, observability, scalable
New RelicNew Relic LogsIntegrated with APM, observability, cloud-native
AWSAmazon OpenSearchManaged Elasticsearch/OpenSearch, scalable, AWS-integrated
AzureAzure Monitor LogsManaged log analytics, Azure-integrated, efficient
GCPGoogle Cloud LoggingManaged logging, GCP-integrated, scalable
CriblCribl StreamLog routing, reduction, enrichment, observability pipeline
FluentdFluentdOpen-source log collector, unified logging layer, extensibleFree (open-source)
VectorVector (Timber)Open-source log collector and processor, high performance, Rust-basedFree (open-source)

Log Shippers and Agents

ToolTypeKey FeaturesBest For
FilebeatLog shipper (Elastic)Lightweight, reliable, backpressure handling, module supportElasticsearch/Splunk users
FluentdLog collectorUnified logging layer, 500+ plugins, extensible, cloud-nativeCloud-native, Kubernetes
Fluent BitLightweight log processorFast, lightweight, C-based, embedded-friendly, KubernetesEdge, IoT, containers
LogstashLog processorPowerful filtering, parsing, enrichment, output to many destinationsElastic Stack users
NXLogLog collectorMulti-platform, high performance, structured data, Windows/LinuxEnterprise log collection
Splunk Universal ForwarderLog agentSplunk-native, reliable, data filtering, compressionSplunk users
Wazuh AgentSecurity agentHIDS, log collection, file integrity monitoring, vulnerability detectionWazuh/SIEM users
TelegrafAgent (InfluxData)Plugin-driven, metrics and logs, 200+ pluginsInfluxDB/TICK stack
PromtailLog agent (Grafana)Grafana-native, Kubernetes service discovery, Loki integrationGrafana/Loki users
AWS CloudWatch AgentCloud agentAWS-native, metrics and logs, EC2 and on-premiseAWS environments
Azure Monitor AgentCloud agentAzure-native, metrics and logs, Azure and on-premiseAzure environments
Google Cloud Logging AgentCloud agentGCP-native, logs and metrics, GCP and on-premiseGCP environments
OSqueryEndpoint agentSQL-powered endpoint visibility, real-time query, securityEndpoint security
AuditbeatAudit agent (Elastic)Linux audit framework integration, file integrity, system call monitoringLinux security
WinlogbeatWindows log shipper (Elastic)Windows Event Log collection, security events, PowerShellWindows environments

Cloud Logging Services

ServiceCloudKey Featureslicensing Range (INR)
AWS CloudTrailAWSAPI activity logging, management events, data events, Insights, multi-region
AWS CloudWatch LogsAWSLog ingestion, storage, search, alerts, metric filters, Insights
Amazon OpenSearchAWSManaged Elasticsearch, log analytics, search, visualization
Azure MonitorAzureLog Analytics, Application Insights, Activity Logs, diagnostic logs
Azure SentinelAzureCloud-native SIEM, SOAR, threat intelligence, UEBA
GCP Cloud LoggingGCPLog ingestion, storage, search, alerts, log-based metrics, sinks
GCP Security Command CenterGCPSecurity insights, threat detection, vulnerability scanning, compliance
OCI LoggingOracle CloudLog ingestion, storage, search, alerts, integration with OCI services
IBM Cloud LoggingIBM CloudLog ingestion, search, alerts, integration with IBM Cloud services
Alibaba Cloud Log ServiceAlibaba CloudLog ingestion, storage, search, alerts, real-time analytics

Policy and Procedure Templates

Logging Policy Template

Template

Log Analysis Runbook Template

Template


Risk Assessment and Treatment

Risk Assessment Matrix for A.8.15

Risk IDThreatVulnerabilityLikelihoodImpactRisk LevelTreatment
R1Attacker operates undetected for months because logs are not collected or analyzedNo logging; no log collection; no log analysis; no SIEM; no monitoringHighCriticalCriticalImplement complete logging; deploy SIEM; configure real-time analysis; train SOC analysts
R2Attacker erases logs to cover their tracksLogs stored locally; no log protection; no immutability; administrators can delete logsHighCriticalCriticalCentralized logging; immutable storage; encryption; access controls; integrity hashing; tamper detection
R3Compliance audit fails because logs are missing or incompleteNo logging policy; incomplete logging; logs not retained; no audit trailMediumHighHighLogging policy; complete logging; retention enforcement; compliance review; audit preparation
R4Incident response is hampered because logs are not available or corruptedLogs not centralized; logs lost; logs corrupted; logs not backed up; no log restorationMediumHighHighCentralized collection; backup; integrity verification; restoration testing; redundant storage
R5Insider threat goes undetected because user activity is not loggedNo user activity logging; no DLP; no UBA; no access logging; no data access logsHighHighCriticalUser activity logging; DLP; UBA; database audit logging; file server logging; application logging
R6False positive alerts overwhelm SOC and cause alert fatiguePoorly tuned SIEM; too many rules; no baseline; no anomaly detection; no correlationHighMediumHighTune SIEM rules; establish baselines; implement anomaly detection; use correlation; reduce false positives
R7Log volume grows uncontrollably and causes storage exhaustion or overhead overrunsNo log retention policy; no log rotation; no tiering; no compression; no filteringMediumMediumMediumRetention policy; rotation; tiering; compression; filtering; capacity planning; overhead monitoring
R8Log analysis is delayed because logs are not parsed or normalized correctlyPoor parsing; inconsistent formats; no normalization; no enrichment; manual analysisMediumHighHighStandardized formats; automated parsing; normalization; enrichment; automated analysis; SIEM tuning
R9Legal or forensic investigation fails because logs lack required detail or contextInsufficient log fields; missing context; no correlation IDs; no session IDs; no user contextMediumHighHighLog content requirements; correlation IDs; session IDs; user context; transaction IDs; enrichment
R10Log forwarding fails silently and logs are lostNo monitoring of log forwarding; no health checks; no alerting for log source failure; no redundancyMediumHighHighLog source health monitoring; health checks; alerting for source failure; redundant log collection
R11Log tampering by privileged insiderAdmin access to logs; no separation of duties; no immutability; no integrity checks; no audit of log accessLowHighHighImmutability; integrity checks; separation of duties; audit of log access; WORM storage; blockchain
R12Cloud logs not collected because cloud logging is not configuredNo CloudTrail; no Azure Monitor; no Cloud Logging; no API logging; no IAM logging; no cloud SIEMHighHighCriticalCloud logging configuration; CloudTrail/Monitor/Logging; cloud SIEM; cloud log forwarding; cloud log analysis
R13Log-based detection is bypassed because attackers know what is loggedPredictable logging; no behavioral analytics; no UBA; no deception; no honeytokens; no MLMediumHighHighUBA; behavioral analytics; ML-based anomaly detection; deception technology; honeytokens; adaptive detection
R14Log retention does not meet legal requirements for litigation or investigationRetention too short; no legal hold capability; logs deleted before investigation; no archiveMediumHighHighLegal hold process; extended retention for legal matters; archive; legal counsel involvement; litigation readiness
R15Clock skew causes incorrect timestamps and corrupts timelineNo NTP synchronization; different time zones; no timestamp normalization; clock drift; no A.8.17MediumHighHighNTP synchronization (A.8.17); UTC timestamps; timezone normalization; clock drift monitoring; timestamp verification

Audit and Compliance Checklist

Internal Audit Checklist (30 Questions)

Policy and Governance (5 Questions)

  1. Is a logging policy documented and approved?
  2. Does the policy define what events must be logged?
  3. Does the policy define log retention periods?
  4. Does the policy define log protection requirements?
  5. Are roles and responsibilities for logging defined?

Log Generation (5 Questions)

  1. Are all critical systems generating logs?
  2. Are authentication events (success and failure) logged?
  3. Are access events (success and failure) logged?
  4. Are security events (alerts, detections, anomalies) logged?
  5. Are administrative events (privileged commands, changes) logged?

Log Collection (5 Questions)

  1. Are logs collected centrally from all critical systems?
  2. Is log collection encrypted in transit?
  3. Are log sources monitored for health (alert if source stops)?
  4. Is there a log collection gap analysis (are any sources missing)?
  5. Is log collection documented and maintained?

Log Storage and Protection (5 Questions)

  1. Are logs encrypted at rest?
  2. Are logs protected against modification (immutable)?
  3. Are logs protected against unauthorized deletion?
  4. Is log access restricted to authorized personnel?
  5. Are log integrity checks performed regularly?

Log Analysis (5 Questions)

  1. Are logs analyzed in real-time or near real-time?
  2. Are critical alerts reviewed daily?
  3. Are security trends reviewed weekly?
  4. Are compliance logs reviewed monthly?
  5. Are log analysis results documented and reported?

Retention and Compliance (5 Questions)

  1. Are log retention policies enforced automatically?
  2. Are logs retained for the required regulatory period?
  3. Are archived logs accessible for investigation?
  4. Are logs backed up and restorable?
  5. Is there a legal hold process for extending retention?

Audit Scoring

  • 30–27: Excellent (Green), Full compliance
  • 26–22: Good (Yellow), Minor gaps, address within 30 days
  • 21–15: Needs Improvement (Orange), Significant gaps, address within 60 days
  • 14–0: Critical (Red), Major non-compliance, immediate action required

Metrics and KPIs

Figure · Measures

The measures that show A.8.15 is working

  • Log Coverage100%Monthly
  • Log Collection Rate>= 99%Daily
  • Log Source Health100%Daily
  • Log Parsing Success Rate>= 98%Daily
  • Log Retention Compliance100%Monthly
Targets and reporting cadence as defined in the table below, where the formula for each is given.

Key Performance Indicators

KPIFormulaTargetMeasurement Frequency
Log Coverage(Systems generating required logs / Total systems) x 100100%Monthly
Log Collection Rate(Logs successfully collected / Logs generated) x 100>= 99%Daily
Log Source Health(Healthy log sources / Total log sources) x 100100%Daily
Log Parsing Success Rate(Logs successfully parsed / Total logs received) x 100>= 98%Daily
Log Retention Compliance(Logs retained per policy / Total logs required) x 100100%Monthly
Log Integrity Check Pass Rate(Integrity checks passed / Total checks) x 100100%Weekly
Real-Time Analysis Coverage(Log sources analyzed in real-time / Total critical sources) x 100100%Monthly
Alert Generation RateTotal alerts generated per dayBaseline-dependentDaily
Critical Alert Response TimeAverage time from critical alert to initial response<= 1 hourPer alert
High Alert Response TimeAverage time from high alert to initial response<= 4 hoursPer alert
False Positive Rate(False positives / Total alerts) x 100<= 10%Monthly
Mean Time to Detect (MTTD)Average time from event occurrence to detection<= 4 hoursPer incident
Mean Time to Respond (MTTR)Average time from detection to initial response<= 1 hour for criticalPer incident
Log Review Completion Rate(Reviews completed on schedule / Required reviews) x 100100%Monthly
Log Volume Growth Rate(Current volume - Previous volume) / Previous volumeTrending predictablyMonthly
Log Storage Use(Used storage / Total storage) x 100<= 80%Weekly
Log overhead per GBTotal log management overhead / Total log volumeTrending downwardMonthly
SIEM Rule Coverage(Systems covered by SIEM rules / Total systems) x 100100%Monthly
SIEM Rule Accuracy(True positives / Total alerts) x 100>= 90%Monthly
Compliance Report Generation TimeTime to generate compliance report from logs<= 4 hoursPer report
Forensic Investigation Support TimeTime to provide logs for forensic investigation<= 1 hourPer request
Log Tamper Detection Rate(Tamper attempts detected / Total tamper attempts) x 100100%Per incident
Policy Review Cycle Adherence(Reviews on time / Required reviews) x 100100%Annually
Audit Finding Closure Rate(Closed findings / Total findings) x 100100% within 60 daysPer audit

Common Pitfalls and How to Avoid Them

Pitfall 1: "We Have Logs, We're Secure"

Problem: Organizations generate logs but never look at them. They have gigabytes of logs sitting on servers, but no one is analyzing them. Logs are a "check the box" exercise for compliance, not a security tool. When an incident occurs, they have logs but no insight. The logs are useless because they are not analyzed. Solution: Logs are only valuable if analyzed. Implement a SOC or dedicated security team to analyze logs daily. Use a SIEM to automate analysis and alerting. Set up real-time alerts for critical events. Review logs daily, weekly, and monthly. Train analysts to investigate logs. The most premium-tier log is the one that is never analyzed. A log without analysis is like a security camera without a monitor, it records but doesn't protect. Implement a "log analysis SLA", critical alerts must be reviewed within 1 hour, high alerts within 4 hours, daily review within 24 hours. Make log analysis a operational priority, not a compliance checkbox.

Pitfall 2: Logs Stored Locally and Not Protected

Problem: Logs are stored on the same server that generates them. When the server is compromised (ransomware, attacker access), the logs are also compromised. The attacker deletes the logs to cover their tracks. The organization has no record of the attack. Local logs are a single point of failure for logging. Solution: Centralize all logs to a separate, secure system. Use a SIEM or log management platform that is isolated from production systems. Implement log forwarding in real-time so logs are copied before an attacker can delete them. Implement immutable storage so logs cannot be modified or deleted. Implement encryption so logs cannot be read even if accessed. Implement access controls so only authorized SOC analysts can access logs. The log server should be more secure than the production servers it monitors. If an attacker compromises a production server, they should not be able to touch the logs. Centralized, immutable, encrypted logging is the foundation of incident detection and forensic investigation.

Pitfall 3: No Log Protection, Anyone Can Modify or Delete Logs

Problem: Logs are not protected against tampering. Administrators, attackers, or insiders can modify or delete logs to hide their tracks. The organization has no integrity verification, no immutability, no access controls. Logs are trusted without verification. When an incident occurs, the organization cannot prove that the logs are authentic and untampered. The logs may have been altered, and the organization cannot know. Solution: Implement complete log protection: (1) Immutable storage (append-only, WORM, object lock), no one can modify or delete logs, (2) Integrity hashing (SHA-256 hash of each log entry, stored separately), any modification is detectable, (3) Digital signatures for high-criticality logs (audit logs, compliance logs), cryptographic proof of authenticity, (4) Access controls (RBAC, MFA, least privilege), only authorized SOC analysts can read logs, (5) Audit trail of log access (who accessed what logs, when), detect unauthorized access, (6) Tamper detection and alerting (immediate alert if tampering is detected), respond to tampering attempts. Log protection is not optional, it is essential for legal admissibility, forensic integrity, and compliance. A log that can be tampered with is not evidence.

Pitfall 4: Retention Too Short for Compliance or Investigation

Problem: Logs are retained for 30 or 90 days, but regulatory requirements or investigation needs require 1, 2, or 7 years. When a breach is discovered 6 months later, the logs from the initial compromise are gone. The forensic investigation is impossible. The compliance audit fails. The legal hold cannot be satisfied because the logs were deleted. Solution: Define retention periods based on regulatory requirements and business needs, not storage convenience. Common retention periods: Authentication logs: 2 years. Access logs: 1–2 years. Security incident logs: 7 years. Compliance logs: 7 years. Audit logs: 7 years. Implement automated retention enforcement (do not rely on manual deletion). Implement tiered storage (hot for recent, warm for medium, cold for archive) to manage overhead. Implement legal hold capability (suspend deletion for specific logs or time periods when litigation is anticipated). Document retention policy and enforce it. The impact of storing logs for 7 years is negligible compared to the impact of a failed investigation or compliance audit. Storage is cheap; compliance failures are premium-tier.

Pitfall 5: Over-Collection and Alert Fatigue

Problem: Organizations collect every possible log and generate alerts for every possible event. The SIEM generates 10,000 alerts per day. The SOC is overwhelmed. Critical alerts are lost in the noise. Analysts turn off alerts or ignore them. The organization has logs but no actionable intelligence. Alert fatigue is the #1 reason SOC analysts quit. Solution: Right-size log collection and alerting. Collect logs that are security-relevant, not all logs. Focus on critical systems first, then expand. Tune SIEM rules to reduce false positives (target < 10% false positive rate). Use correlation and anomaly detection to reduce noise. Implement risk-based alerting (alert on high-risk events, not low-risk). Implement baseline-driven alerting (alert on deviations from normal, not on every event). Use ML-based anomaly detection to find patterns humans miss. Prioritize alerts by severity and business impact. Implement automated response for known, low-risk alerts (auto-close, auto-ticket). The goal is not to collect all logs and generate all alerts, it is to detect and respond to real threats. Quality of detection matters more than quantity of logs. A SOC that reviews 50 high-quality alerts per day is more effective than a SOC that reviews 10,000 low-quality alerts per day.

Pitfall 6: No Cloud Logging

Problem: Organizations have extensive on-premise logging but no cloud logging. They move workloads to AWS, Azure, or GCP but don't enable CloudTrail, Monitor, or Cloud Logging. Cloud API calls are invisible. IAM changes are untracked. Resource provisioning is unlogged. Cloud attacks (credential abuse, resource hijacking, data exfiltration) go undetected because there are no cloud logs. Solution: Enable cloud-native logging immediately for all cloud accounts: (1) AWS: Enable CloudTrail for all regions, enable CloudTrail Insights, enable S3 data events, enable Lambda data events, enable VPC Flow Logs, enable Route 53 query logs, enable DNS logs, enable ELB access logs, enable WAF logs, (2) Azure: Enable Azure Monitor for all resources, enable Activity Logs, enable diagnostic logs for all services, enable NSG flow logs, enable Azure Firewall logs, enable Application Gateway logs, (3) GCP: Enable Cloud Logging for all projects, enable Cloud Audit Logs, enable VPC Flow Logs, enable Cloud DNS logs, enable Cloud Load Balancing logs, enable Cloud Armor logs. Forward cloud logs to your SIEM or log management platform. Analyze cloud logs with the same rigor as on-premise logs. Cloud is not "someone else's responsibility", it is your responsibility to log and monitor cloud activity. Cloud providers give you the tools; you must use them. Cloud breaches are often detected first in cloud logs, not on-premise logs.

Pitfall 7: No User Activity Logging (Insider Threat Blindness)

Problem: Organizations log system events and network traffic but not user activity. They cannot see what users are doing with data. They cannot detect insider threats. They cannot track data access. When an employee steals data, there is no log of what they accessed, downloaded, or transferred. The insider threat is invisible. Solution: Implement complete user activity logging: (1) Database audit logging (who queried what, when, from where), (2) File server access logging (who opened, copied, deleted, modified files), (3) DLP logging (who tried to transfer sensitive data, via what channel, to what destination), (4) Email logging (who sent sensitive data, to whom, with what attachments), (5) Cloud access logging (who accessed cloud resources, from where, what actions), (6) Endpoint logging (who ran what applications, what files were accessed, what USB devices were connected), (7) Application logging (who performed what business transactions, what data was viewed/modified). Combine user activity logs with UBA (User Behavior Analytics) to detect anomalies. An employee who suddenly downloads 10,000 customer records is an anomaly that should trigger an alert. Insider threats are the most common and damaging type of breach. User activity logging is the only way to detect them. Without user activity logs, you are blind to the biggest threat to your data.

Pitfall 8: No Correlation Across Log Sources

Problem: Organizations collect logs from many sources but analyze them in isolation. Firewall logs are analyzed separately from authentication logs, which are analyzed separately from database logs. An attacker who fails a firewall rule, then compromises a credential, then accesses a database, then exfiltrates data, each event is seen in isolation and dismissed as benign. The attack pattern is invisible because the logs are not correlated. Solution: Implement log correlation in your SIEM. Define correlation rules that link events across multiple sources: (1) Failed firewall connection + successful authentication + privileged access = potential lateral movement, (2) Multiple failed logins + successful login + bulk data access = potential credential compromise + data theft, (3) New device login + off-hours access + cloud data upload = potential insider threat or compromised account, (4) Port scan + vulnerability exploit + malware execution = potential attack chain. Use correlation IDs, session IDs, and transaction IDs to link related events across systems. Use time-based correlation (events within a window). Use entity-based correlation (same user, same IP, same system). Correlation is the difference between seeing events and seeing attacks. A SIEM without correlation is just a log repository, not a security tool. The power of a SIEM is in correlation, not collection.


Illustrative Scenarios

Illustrative scenario, a composite example for guidance, not a specific Singahi engagement or a verified outcome.

Illustrative Scenario 1: Indian Manufacturing Company, From Zero Visibility to Threat Detection in 90 Days (Growing company)

Organization: A 300-employee manufacturing company in Pune with ERP, SCADA, and office systems Challenge: The company had zero centralized logging. Each server had local logs, but they were not collected, analyzed, or protected. The IT team only looked at logs when a system failed, and even then, they only looked at the failing system. When a ransomware attack hit the company, the IT team had no visibility into how the attacker entered, how long they were present, or what they accessed. The attacker had been in the network for 45 days before encrypting files. The company had no logs to trace the attack. The forensic investigation was severely hampered. The company paid a ransom and still lost 2 weeks of production data. The incident was a wake-up call for the CEO and board. Before State:

  • Zero centralized logging (all logs local, not collected)
  • No SIEM or log management platform
  • No log analysis (logs only viewed during system failures)
  • No log protection (logs stored on same server, no encryption, no immutability)
  • No log retention policy (logs rotated weekly, 30 days maximum)
  • No authentication logging (failed logins not tracked)
  • No access logging (file access, database access not logged)
  • No network logging (firewall logs not collected, no proxy logs)
  • No cloud logging (Office 365, cloud apps not logged)
  • No SOC or security team (IT team handled security ad-hoc)
  • Ransomware attack: 45 days of undetected presence, no logs to trace
  • Ransom paid:
  • Production data lost: 2 weeks
  • Insurance claim denied: "inadequate logging and monitoring"

Implementation: Month 1: Engaged Singahi for emergency logging implementation. Deployed Wazuh (open-source SIEM) for immediate visibility. Configured log collection from all critical systems (ERP, SCADA, Active Directory, file servers, firewalls, endpoints). Implemented centralized log collection to a hardened Linux server. Configured basic alerting (failed logins, malware detection, critical system events). Trained IT team on log analysis and alert response. Implemented log protection (encryption, access controls, append-only storage). Month 2: Expanded logging coverage. Implemented database audit logging (ERP database queries, access, changes). Implemented file server access logging (who accessed what files, when). Implemented network logging (firewall logs, proxy logs, DNS logs). Implemented endpoint logging (EDR integration, USB device connection, process execution). Implemented cloud logging (Office 365 audit logs, cloud app logs). Implemented log enrichment (geolocation, threat intelligence, user identity). Implemented correlation rules (link authentication, access, network events). Implemented UBA (user behavior analytics) for insider threat detection. Tuned alerts to reduce false positives (from 500/day to 50/day). Month 3: Implemented advanced detection and response. Implemented anomaly detection (ML-based detection of unusual patterns). Implemented automated response (block IP, disable account, isolate endpoint for critical alerts). Implemented log backup and archival (7-year retention for security logs, automated archival to cold storage). Implemented compliance reporting (automated reports for ISO 27001, regulatory compliance). Implemented SOC dashboard (real-time view of security posture, threat landscape, incident status). Hired a dedicated security analyst (first security hire). Trained security analyst on advanced log analysis, incident investigation, and forensic procedures.

Results (After 12 Months):

  • 100% log coverage for all critical systems (ERP, SCADA, AD, file servers, databases, network, endpoints, cloud)
  • 99.5% log collection rate (logs successfully collected from all sources)
  • 100% log source health monitoring (daily health checks, alert on failure)
  • 100% log encryption (at rest and in transit)
  • 100% log integrity protection (SHA-256 hashing, tamper detection)
  • 100% log retention compliance (all logs retained per policy, automated enforcement)
  • 50 alerts per day (down from 500/day after tuning, 90% true positive rate)
  • Critical alert response time: 45 minutes (target: 1 hour)
  • High alert response time: 3 hours (target: 4 hours)
  • Mean Time to Detect (MTTD): 4 hours (down from 45 days, 270x improvement)
  • Mean Time to Respond (MTTR): 2 hours (target: 4 hours)
  • 3 insider threats detected via UBA (data access anomalies, off-hours access, cloud uploads)
  • 2 malware infections detected and contained before spreading (via EDR log correlation)
  • 1 credential compromise detected and remediated within 6 hours (impossible travel alert)
  • 1 attempted ransomware attack detected and blocked (behavioral anomaly detection)
  • Zero successful ransomware attacks in 12 months (vs. 1 successful attack before)
  • Insurance claim approved: "adequate logging and monitoring" (premium reduced by 15%)
  • Compliance audit passed: ISO 27001 audit with zero findings on logging
  • Customer trust: 2 new enterprise customers signed citing "strong security monitoring"

Investment: (Wazuh SIEM, log storage, EDR integration, cloud logging, consulting, training, dedicated analyst salary for 12 months) ROI: The ransomware attack overhead ransom + in lost production + in recovery + in reputation damage = total overhead. The logging investment was . The ROI was immediate, the next potential attack was detected and blocked. But more importantly, the logging program transformed the company's security posture from reactive to proactive. The company went from "blind" to "seeing everything." The CEO's comment: "We spent to buy visibility. Visibility is the most valuable security asset we have."

Key Lesson: For growing companies with no logging, the transformation from zero visibility to complete detection is achievable in 90 days with open-source tools and focused effort. The key is not premium-tier tools, it is complete coverage, centralized collection, real-time analysis, and dedicated analysts. Wazuh (open-source) provided enterprise-grade SIEM capabilities at a fraction of the impact of commercial tools. The investment in a dedicated security analyst was the most important decision, tools are useless without people to analyze them. For manufacturing companies with OT/IT convergence, logging both IT and OT systems is essential for detecting attacks that cross the boundary.


Illustrative Scenario 2: Large Indian Bank, SIEM Transformation for Regulatory Compliance and Threat Detection (Enterprise)

Organization: A large public sector bank with 4,000 branches, 40 million customers, and 15,000+ systems Challenge: The bank had a legacy SIEM (Splunk) that was underutilized, poorly configured, and premium-tier. The SIEM collected logs from only 30% of systems. The remaining 70% of systems had no log collection. The SIEM had 2,000 rules, but 90% were disabled or generating false positives. The SOC had 5 analysts who were overwhelmed by 5,000 alerts per day (mostly false positives). The bank had no UBA, no anomaly detection, no automated response. The RBI cyber audit found 15 critical logging deficiencies and required a complete overhaul. The bank was at risk of operational restrictions. A recent peer bank incident (undetected insider threat for 2 years, loss) highlighted the existential risk of inadequate logging and monitoring. Before State:

  • Legacy SIEM: Splunk, underutilized, premium-tier, poorly configured
  • Log coverage: 30% of systems (4,500 out of 15,000 systems)
  • No log collection from: 3,500 branch servers, 2,000 ATMs, 1,500 network devices, 1,000 cloud resources, 500 IoT/OT devices
  • SIEM rules: 2,000 rules, 90% disabled or false positive
  • Alert volume: 5,000 per day, 95% false positive
  • SOC analysts: 5 analysts, overwhelmed, high turnover (3 analysts quit in 6 months)
  • No UBA, no anomaly detection, no ML, no automated response
  • No cloud logging (AWS, Azure, Office 365 not logged)
  • No database audit logging (core banking database not audited)
  • No insider threat detection
  • No correlation across log sources (rules analyzed single sources only)
  • Log retention: 90 days for all logs (insufficient for RBI 7-year requirement)
  • Log protection: minimal (no immutability, no integrity checks, admin could delete logs)
  • RBI audit: 15 critical logging findings
  • Peer bank incident: insider threat undetected for 2 years, loss
  • Board mandate: Complete SIEM transformation in 12 months

Implementation: Phase 1 (Months 1–3): SIEM replacement and log coverage expansion. Replaced legacy Splunk with IBM QRadar (enterprise SIEM, better correlation, UBA, more affordable for the bank's scale). Deployed QRadar across all 4,000 branches (centralized management with local collectors). Deployed log agents on all 15,000 systems (QRadar agents, syslog, API). Achieved 100% log coverage (all 15,000 systems generating and forwarding logs). Implemented log collection for previously uncovered systems: branch servers (3,500), ATMs (2,000), network devices (1,500), cloud resources (1,000), IoT/OT devices (500). Implemented database audit logging for core banking database (Oracle RAC audit trail, query logging, connection logging). Implemented cloud logging (AWS CloudTrail, Azure Monitor, Office 365 audit logs). Implemented network logging (firewall logs, proxy logs, DNS logs, NetFlow/sFlow). Phase 2 (Months 4–6): SIEM tuning and advanced detection. Replaced 2,000 legacy rules with 500 tuned rules (focused on high-value, low-noise detection). Implemented correlation rules linking authentication, access, network, and database events. Implemented UBA (User Behavior Analytics) for all users (bank employees, contractors, service accounts). Implemented anomaly detection (ML-based baseline deviation detection for authentication, access, network traffic). Implemented insider threat detection (data access anomalies, off-hours access, bulk data access, cloud uploads, resignation risk). Implemented automated response (block IP, disable account, quarantine endpoint for critical alerts). Reduced false positive rate from 95% to 8% (5,000 alerts/day to 200 alerts/day). Tuned alert thresholds based on baseline analysis of 3 months of historical data. Implemented risk-based scoring (each event scored by risk, alerts triggered only for high-risk scores). Phase 3 (Months 7–9): SOC transformation and incident response. Expanded SOC team from 5 to 15 analysts (3 tiers: L1 alert triage, L2 investigation, L3 threat hunting). Implemented 24/7 SOC operations (3 shifts, 8 hours each, with on-call for critical alerts). Implemented SOC runbooks (step-by-step procedures for each alert type). Implemented incident response integration (QRadar integrated with IBM Resilient SOAR for automated response). Implemented threat hunting (proactive searches for threats using QRadar search, threat intelligence, UBA anomalies). Implemented log-based forensic investigation procedures (timeline reconstruction, evidence collection, chain of custody). Implemented SOC dashboard (real-time view of bank's security posture, threat landscape, alert status, analyst workload). Trained all SOC analysts on advanced log analysis, QRadar usage, incident investigation, and forensic procedures. Implemented SOC quality metrics (MTTD, MTTR, false positive rate, investigation quality, closure rate). Phase 4 (Months 10–12): Log protection, retention, and compliance. Implemented log immutability (QRadar stored logs on WORM storage + S3 Object Lock for cloud logs). Implemented log integrity checks (SHA-256 hashing, weekly integrity verification). Implemented log encryption (AES-256 at rest and in transit). Implemented log retention policies (7 years for security and compliance logs, 2 years for authentication, 1 year for system and network, automated enforcement). Implemented legal hold capability (suspend deletion for litigation or investigation). Implemented compliance reporting (automated RBI, SEBI, PCI DSS reports from QRadar). Implemented audit trail for log access (who accessed what logs, when, for what purpose). Implemented log backup and archival (backup to secondary storage, quarterly restoration test). Implemented log storage tiering (hot: 30 days, warm: 1 year, cold: 7 years, automated movement). Implemented DR for logs (logs replicated to DR site, accessible during primary site failure).

Results (After 18 Months):

  • 100% log coverage (15,000 systems, 4,000 branches, 2,000 ATMs, all network devices, all cloud resources, all IoT/OT)
  • 100% database audit logging (core banking database, all transactional databases, all reporting databases)
  • 100% cloud logging (AWS, Azure, Office 365, all SaaS applications)
  • 100% log immutability (WORM storage, S3 Object Lock, no tampering possible)
  • 100% log integrity protection (SHA-256 hashing, weekly verification, zero integrity failures)
  • 100% log retention compliance (all logs retained per policy, automated, RBI 7-year requirement met)
  • 200 alerts per day (down from 5,000/day, 92% true positive rate, 8% false positive rate)
  • Critical alert response time: 30 minutes (target: 1 hour, down from 4+ hours)
  • High alert response time: 2 hours (target: 4 hours, down from 8+ hours)
  • Mean Time to Detect (MTTD): 2 hours (down from 45+ days, 540x improvement)
  • Mean Time to Respond (MTTR): 1 hour (down from 8+ hours)
  • 5 insider threats detected via UBA (data access anomalies, off-hours access, bulk downloads, cloud uploads, resignation risk)
  • 12 malware infections detected and contained before spreading (via EDR + log correlation)
  • 3 credential compromise attempts detected and blocked within 1 hour (impossible travel, brute force, credential stuffing)
  • 1 attempted data exfiltration detected and blocked (DLP + log correlation)
  • Zero successful ransomware attacks in 18 months (vs. 1 peer bank incident)
  • Zero RBI audit findings on logging (down from 15 critical findings)
  • SOC analyst turnover: 0% in 18 months (improved job satisfaction due to better tools and clear procedures)
  • Bank received "Best SOC Practices" award from Indian Banks' Association
  • efficiency gains: /year (reduced fraud losses, reduced incident response overhead, reduced insurance premiums, reduced regulatory penalties)

Investment: (QRadar, log storage, agents, cloud logging, SIEM tuning, UBA, SOC expansion, training, consulting, audit) ROI: The peer bank insider threat incident overhead . The bank's SIEM transformation overhead . The bank detected 5 insider threats that would have overhead an estimated if undetected. The bank prevented 12 malware infections that would have overhead . The bank prevented 3 credential compromises that would have overhead . The bank avoided RBI penalties that would have overhead . Total avoided overhead: + crore. The investment was . The net ROI was + crore. But more importantly, the bank's security posture transformed from reactive to proactive. The bank went from "blind and overwhelmed" to "seeing everything and responding fast." The CISO stated: "The SIEM transformation was not a technology project, it was a business transformation. We now see threats before they become incidents. We respond in minutes, not days. Our customers trust us because we can prove we are watching."

Key Lesson: For large, regulated organizations like banks, logging and SIEM transformation is not optional, it is a regulatory mandate and a business imperative. The RBI's strict requirements force banks to invest, but the investment pays for itself through fraud prevention, incident reduction, and regulatory compliance. The key to success was not just the SIEM tool (QRadar) but the complete approach: 100% coverage, advanced detection (UBA, anomaly detection, correlation), SOC transformation (15 analysts, 24/7, runbooks, quality metrics), and log protection (immutability, integrity, retention). The bank's transformation became a model for public sector banks. The investment was large, but the impact of not investing was catastrophic.


Multi-Framework Mapping

ISO 27001:2022 A.8.15 to Other Frameworks

ISO 27001:2022 A.8.15NIST 800-53 Rev 5PCI DSS v4.0SOC 2 CC6.1CIS Controls v8COBIT 2019
LoggingAU-6 (Audit Review)Req 10.2 (Audit Trails)CC6.1 (System Operations)CIS 8.7 (Collect and Retain Audit Logs)DSS05.03 (Monitor and Evaluate)
Log protectionAU-9 (Protection of Audit Information)Req 10.5 (Secure Log Storage)CC6.1CIS 8.8 (Collect and Retain Audit Logs)DSS05.03
Log analysisAU-6 (Audit Review)Req 10.6 (Review Logs)CC6.1CIS 8.9 (Collect and Retain Audit Logs)DSS05.03
Log retentionAU-11 (Audit Record Retention)Req 10.7 (Retain Audit Logs)CC6.1CIS 8.10 (Collect and Retain Audit Logs)DSS05.03
Clock synchronizationAU-8 (Time Stamps)Req 10.4 (Time Synchronization)CC6.1CIS 8.6 (Collect and Retain Audit Logs)DSS05.03

NIST 800-53 Rev 5:

  • AU-6: Audit Review, Maps to log analysis and review
  • AU-9: Protection of Audit Information, Maps to log protection and integrity
  • AU-11: Audit Record Retention, Maps to log retention
  • AU-12: Audit Record Generation, Maps to log generation
  • AU-3: Content of Audit Records, Maps to log content requirements
  • AU-8: Time Stamps, Maps to clock synchronization (A.8.17)

PCI DSS v4.0:

  • Requirement 10: Audit Logging and Monitoring, Complete logging requirements for cardholder data environment
  • Requirement 10.2: Audit trails for system components
  • Requirement 10.4: Time synchronization
  • Requirement 10.5: Secure log storage
  • Requirement 10.6: Log review
  • Requirement 10.7: Log retention

SOC 2 CC6.1:

  • System operations including logging and monitoring

CIS Controls v8:

  • CIS Control 8: Audit Log Management, Log collection, retention, protection, and review
  • CIS Control 8.6: Collect logs from cloud services
  • CIS Control 8.7: Collect logs from network devices
  • CIS Control 8.8: Collect logs from endpoint devices
  • CIS Control 8.9: Collect logs from applications
  • CIS Control 8.10: Collect logs from databases
  • CIS Control 8.11: Collect logs from DNS
  • CIS Control 8.12: Collect logs from web proxies
  • CIS Control 8.13: Collect logs from email systems
  • CIS Control 8.14: Collect logs from identity systems
  • CIS Control 8.15: Collect logs from security tools

Regulatory and Industry Context

India-Specific Regulatory Requirements

RBI Cyber Security Framework:

  • Banks must maintain complete audit logs for all critical systems (CBS, payment systems, ATM network, internet banking)
  • Authentication logs must be retained for 2 years
  • Transaction logs must be retained for 7 years
  • Security incident logs must be retained for 7 years
  • Logs must be centrally stored and protected against tampering
  • Logs must be reviewed daily for security events
  • RBI audit must review logging coverage, analysis, retention, and protection
  • Cyber security incident reports to RBI must include log evidence
  • Operational restrictions may be imposed for inadequate logging

SEBI Cybersecurity Circular:

  • Trading systems must have complete audit logging
  • Trading logs must be retained for 7 years (CSE/SE compliance)
  • Access logs must be retained for 2 years
  • Logs must be reviewed daily for unauthorized access and anomalies
  • SIEM or equivalent log analysis tool is mandatory for trading systems
  • Annual compliance audit must include logging review

IRDAI Guidelines:

  • Insurance core systems must have audit logging
  • Customer data access must be logged and retained
  • Logs must be reviewed regularly for security and compliance
  • Retention period must be defined and enforced

CERT-In Guidelines:

  • Critical infrastructure organizations must maintain complete logging
  • Logs must be retained for minimum 1 year
  • Logs must be reportable to CERT-In on demand
  • Security incidents must be reported with log evidence
  • Logs must be protected against tampering and deletion

IT Act 2000 (as amended):

  • Section 43A: Reasonable security practices include logging and monitoring for sensitive data
  • Section 79: Intermediaries must maintain logs and provide them to law enforcement when required
  • Section 65: Tampering with computer source documents (logs) is an offense punishable with imprisonment

DPDP Act 2023:

  • Data fiduciaries must maintain records of processing activities, including logs
  • Data subject requests must be logged and tracked
  • Data breaches must be reported with log evidence
  • Logs must support data subject rights (access, correction, deletion, portability)
  • Logs must be retained for the duration of processing + 3 years

Company Act 2013:

  • Companies must maintain books and records (electronic or physical)
  • Electronic records must be backed up and recoverable
  • Auditor access to electronic records requires logging
  • Fraud detection requires audit trails and logging

Industry-Specific Context

BFSI:

  • RBI mandates complete logging for all critical banking systems
  • CBS logs must include all transactions, queries, and administrative actions
  • Payment system logs (UPI, RTGS, NEFT) must be immutable and retained for 7 years
  • ATM logs must include all transactions, card usage, and maintenance activities
  • Internet banking logs must include authentication, transactions, and session activities
  • Trading logs must be retained for 7 years per SEBI requirements
  • Customer data access logs must support DPDP compliance
  • Fraud detection requires log analysis and UBA
  • Cyber insurance requires logging and SIEM as a condition
  • RBI penalties for inadequate logging: –50 crore

Healthcare:

  • NABH requires logging for patient data access and system activities
  • EMR logs must include all patient record access, modifications, and exports
  • Medical image access (PACS) must be logged
  • Prescription access and modification must be logged
  • Telemedicine sessions must be logged (video, chat, file sharing)
  • Research data access must be logged
  • Health data access logs must support DPDP compliance
  • NABH accreditation requires log review evidence
  • Patient safety incidents require log-based investigation

Government/Defense:

  • Government citizen service portals must have complete logging
  • Classified data access must be logged with highest protection
  • Defense system logs must be air-gapped and tamper-proof
  • Critical infrastructure (power, water, transport) requires SCADA/ICS logging
  • RTI data access must be logged
  • Election data access must be logged with immutability
  • Aadhaar data access must follow UIDAI logging requirements
  • Government exam portals require logging for high-traffic events
  • CAG audits require log evidence for all financial systems

SaaS/Cloud:

  • Multi-tenant SaaS must log all customer activities with tenant isolation
  • Cloud API calls must be logged (CloudTrail, Monitor, Cloud Logging)
  • IAM changes must be logged and alerted
  • Customer data access must be logged per customer request
  • SOC 2 requires logging and log review evidence
  • ISO 27001 requires logging as part of ISMS
  • Customer audit rights often require log access and reports
  • Data breach notification requires log evidence
  • Cloud-native logging is essential for detecting cloud-specific threats (credential abuse, resource hijacking)

Retail/E-commerce:

  • Transaction logs must be retained for 7 years (financial compliance)
  • Payment logs must comply with PCI DSS (Req 10)
  • Customer data access must be logged for DPDP compliance
  • Fraud detection requires log analysis (transaction patterns, device fingerprinting)
  • Inventory system access must be logged
  • E-commerce platform logs must include all user activities, transactions, and API calls
  • Peak season logging must handle high volume without loss
  • Customer trust requires transparent logging practices

Manufacturing:

  • SCADA/ICS logs must be retained for safety and security
  • Production line logs must be retained for quality and compliance
  • ERP logs must include all transactions, changes, and access
  • IoT device logs must be collected and analyzed
  • Industrial control system logs require special handling (OT/IT convergence)
  • Safety system logs must be immutable and retained for long periods
  • OT/ICS logs must be separated from IT logs but correlated for security
  • NIST Cybersecurity Framework for ICS requires logging

Roles and Responsibilities (RACI)

ActivityCISOSecurity Operations ManagerSOC AnalystsSecurity EngineersCompliance OfficerIT Operations ManagerSystem AdministratorsApplication OwnersDatabase AdministratorsCloud ArchitectLegal Counsel
Policy DevelopmentARCCRCCCCCC
Log Architecture DesignCRCRCRCCCRI
Log Source ConfigurationICICIRRRRRI
Log Collection SetupIRCRIRCIIRI
Log Parsing and NormalizationICCRICIIIII
Log Storage and ProtectionCRIRCRCIIRC
Log Analysis and AlertingCRRRCIICIII
Daily Log ReviewIRRCIIIIIII
Weekly Log ReviewCRRCCIIIIII
Monthly Compliance ReviewCCIIRIIIIIC
Incident Response (Log-Based)ARRCICCCCCC
Forensic InvestigationARRCICCCCCR
Evidence CollectionCRRCRIIIIIR
Audit SupportCRCCRCCCCCR
Legal Hold ManagementCIIIRIIIIIR
Continuous ImprovementARRRCRCCCRC

Documentation and Evidence Requirements

DocumentPurposeRetention PeriodOwner
Logging and Log Management PolicyDefines logging requirementsDuration + 3 yearsCISO
Log Source InventoryDocuments all log sources and their statusDuration + 3 yearsSecurity Operations Manager
Log Architecture DiagramVisual representation of log flowDuration + 3 yearsSecurity Engineer
Log Retention ScheduleDocuments retention periods by log typeDuration + 3 yearsCompliance Officer
Log Parsing RulesDocuments parsing and normalization rulesDuration + 3 yearsSecurity Engineer
SIEM Rule DocumentationDocuments detection rules and alert logicDuration + 3 yearsSecurity Engineer
Log Analysis ProceduresDocuments daily, weekly, monthly review proceduresDuration + 3 yearsSecurity Operations Manager
SOC Daily ReportsEvidence of daily log review1 yearSOC Analysts
SOC Weekly ReportsEvidence of weekly trend analysis1 yearSecurity Operations Manager
Compliance Monthly ReportsEvidence of compliance log reviewDuration + 3 yearsCompliance Officer
Alert Response LogsEvidence of alert investigation and responseDuration + 3 yearsSOC Analysts
Incident Investigation ReportsEvidence of log-based incident investigationDuration + 3 yearsSecurity Operations Manager
Forensic Investigation ReportsEvidence of log-based forensic investigationDuration + 3 yearsSecurity Operations Manager
Evidence Collection RecordsChain of custody for log evidenceDuration + 3 yearsLegal Counsel
Log Integrity Check RecordsEvidence of log integrity verificationDuration + 3 yearsSecurity Engineer
Log Backup and Restoration RecordsEvidence of log backup and restoration testingDuration + 3 yearsIT Operations Manager
Audit Checklist and ResultsAudit evidenceDuration + 3 yearsInternal Audit
Risk AssessmentRisk treatment evidenceDuration + 3 yearsCISO
Training RecordsAwareness evidenceDuration + 3 yearsHR
Legal Hold RecordsEvidence of litigation holds on logsDuration + 7 yearsLegal Counsel

Continuous Improvement

Figure · Tiers

Maturity levels for logging

  1. OptimizedAI-powered log analysis
  2. ManagedComplete logging for all systems
  3. DefinedFormal logging policy
  4. DevelopingSome logging; informal collection
  5. InitialNo logging; no log collection
Where most organisations sit, and what the next level asks for. Full characteristics per level are in the table below.

Maturity Model for A.8.15

LevelNameCharacteristicsEvidence
1InitialNo logging; no log collection; no analysis; no retention policy; logs are local and unprotected; no SOC; no monitoring; incidents are undetectedNo policy; no collection; no analysis; no retention; no SOC
2DevelopingSome logging; informal collection; occasional manual review; no SIEM; basic retention; no protection; ad-hoc analysis; no SOC; reactive onlyPartial logging; informal collection; rare review; no SIEM; basic retention; no protection
3DefinedFormal logging policy; complete logging for critical systems; centralized collection; SIEM deployed; basic alerting; daily review; defined retention; basic protection; SOC established; proactive and reactivePolicy; complete logging; centralized collection; SIEM; basic alerting; daily review; defined retention; basic protection; SOC
4ManagedComplete logging for all systems; advanced SIEM with correlation and UBA; real-time analysis; automated response; anomaly detection; advanced protection (immutability, integrity); 24/7 SOC; metrics-driven; threat hunting; proactive detectionFull coverage; advanced SIEM; correlation; UBA; real-time; automated response; anomaly detection; immutability; 24/7 SOC; metrics; threat hunting
5OptimizedAI-powered log analysis; predictive threat detection; autonomous SOC; self-tuning SIEM; zero false positives; fully integrated threat intelligence; blockchain-based log integrity; continuous improvement; industry-leading detection and response times; proactive threat huntingAI analysis; predictive detection; autonomous SOC; self-tuning; zero false positives; blockchain integrity; continuous improvement; industry-leading

Continuous Improvement Activities

Monthly:

  • Log coverage review and gap analysis
  • Log source health review
  • Alert volume and quality review (tuning opportunities)
  • False positive rate analysis and tuning
  • Log storage capacity review
  • SOC performance metrics review (MTTD, MTTR, alert response times)
  • Incident detection and response review
  • Threat landscape update and rule adjustment
  • Log parsing accuracy review
  • Compliance reporting review

Quarterly:

  • Logging policy review
  • SIEM rule review (update for new threats, remove obsolete rules)
  • UBA model review (update baselines, adjust sensitivity)
  • Anomaly detection model review (retrain, adjust thresholds)
  • Log retention compliance verification
  • Log integrity verification
  • Log backup and restoration test
  • Log source configuration audit (ensure all sources are properly configured)
  • Internal audit of logging controls
  • Threat hunting campaign (proactive search for threats)
  • Technology evaluation (new SIEM features, new log sources, new detection techniques)
  • SOC training and skills assessment
  • Log-based tabletop exercise (simulate incident, test log analysis and response)

Annually:

  • Full logging policy review
  • Complete SIEM health assessment
  • Maturity assessment against target level
  • External audit preparation
  • Benchmark against industry best practices (MITRE ATT&CK coverage, detection benchmark)
  • Vendor security assessment (SIEM vendor, log source vendors, cloud providers)
  • Log architecture review (optimize for new systems, cloud migration, technology changes)
  • Regulatory compliance review (RBI, SEBI, PCI DSS, DPDP updates)
  • Threat intelligence integration review (update threat feeds, IOCs, TTPs)
  • Legal hold process review
  • Budget and resource planning for next year
  • Board/security committee reporting on logging maturity and effectiveness

Trigger-Based:

  • After any security incident or breach (improve detection based on lessons learned)
  • After any failed audit or compliance finding
  • After any new system or application introduction (ensure logging is configured)
  • After any infrastructure change (cloud migration, data center move, network upgrade)
  • After any new regulatory requirement (update retention, analysis, reporting)
  • After any significant change in threat landscape (new attack techniques, new APT groups)
  • After any SIEM vendor update or new feature release
  • After any peer or industry incident ("could this happen to us?")
  • After any log source failure or log collection gap
  • After any legal hold or litigation event
  • After any merger, acquisition, or divestiture (integrate logging for new entities)

FAQ

Q1: What is the difference between a log and an audit trail? A: A log is a record of events. An audit trail is a specific type of log that provides a chronological, tamper-evident record of activities for accountability and compliance. All audit trails are logs, but not all logs are audit trails. Audit trails are typically more formal, have higher integrity requirements, and are used for legal and regulatory purposes. For example, a web server access log is a log; a database audit trail showing who modified a financial record is an audit trail. In practice, the terms are often used interchangeably, but audit trails have stricter requirements for immutability, retention, and legal admissibility. When regulators ask for "audit trails," they mean tamper-evident, complete records of activities, not just routine logs.

Q2: How much storage do we need for logs? A: Log storage depends on volume, which depends on: (1) Number of log sources (servers, network devices, applications, cloud services), (2) Events per second per source (a busy web server may generate 1,000 events/second; a quiet desktop may generate 1 event/second), (3) Log size per event (syslog: ~200 bytes; JSON: ~500 bytes; verbose application log: ~2 KB), (4) Retention period (30 days vs. 7 years makes a huge difference). For a growing company with 100 servers, 50 network devices, 20 applications, and 1,000 endpoints: ~1–5 GB/day. For a large enterprise with 5,000 servers, 1,000 network devices, 500 applications, and 50,000 endpoints: ~100–500 GB/day. For a bank with 10,000 systems: ~1–5 TB/day. Storage overhead: Hot storage (SSD): –100/GB/month. Warm storage (HDD): –20/GB/month. Cold storage (cloud archive): –5/GB/month. Plan for 20% annual growth. Use compression (reduces size by 50–70%). Use deduplication (reduces size by 10–30%). Use tiering (move old logs to cheaper storage). The impact of storage is minimal compared to the value of the logs.

Q3: What is the difference between a SIEM and a log management tool? A: A log management tool collects, stores, searches, and manages logs. A SIEM does all of that plus real-time analysis, correlation, alerting, and incident response. A SIEM is a log management tool with a security brain. Examples: Splunk started as a log management tool and added SIEM features (Splunk Enterprise Security). Elastic Stack (ELK) is a log management tool; Elastic Security adds SIEM features. Sumo Logic is a log management tool with SIEM capabilities. Graylog is a log management tool with basic SIEM features. For security-focused organizations, a SIEM is essential. For organizations that only need log storage and search, a log management tool may suffice. However, for ISO 27001 compliance, you need log analysis and alerting, which requires SIEM capabilities. If you have a log management tool but no SIEM, you are storing logs but not analyzing them effectively. The gap between log management and SIEM is the difference between "having logs" and "detecting threats."

Q4: How do we handle log volume from cloud-native applications (microservices, containers, serverless)? A: Cloud-native applications generate massive log volumes because every microservice, container, and serverless function generates logs. For a Kubernetes cluster with 100 microservices, each generating 1,000 events/second: ~100,000 events/second = ~8.6 billion events/day. Handling this volume requires: (1) Log aggregation at the edge (Fluentd/Fluent Bit as DaemonSet on each node, aggregating before sending), (2) Selective logging (only log security-relevant events, not all debug logs), (3) Log sampling (for high-volume, low-value logs, sample 1% instead of 100%), (4) Structured logging (JSON format for efficient parsing), (5) Log filtering at the source (drop low-value logs before sending to SIEM), (6) Cloud-native SIEM (Datadog, Sumo Logic, Splunk Cloud that scale automatically), (7) Log brokers (Kafka for buffering and throttling), (8) overhead monitoring (cloud SIEM charges by volume, so monitor and optimize). The key is to log smart, not log everything. Security-relevant logs are essential; debug logs are optional. Use sampling and filtering to manage volume without losing visibility.

Q5: What is the most common audit finding for A.8.15? A: The most common findings are: (1) No logging policy, (2) Logs not collected centrally (local only), (3) Logs not analyzed (stored but never reviewed), (4) Logs not protected (no encryption, no immutability, no integrity checks), (5) Log retention too short (not meeting regulatory requirements), (6) No log review (no daily, weekly, or monthly review), (7) No SIEM or log analysis tool, (8) Cloud logs not collected, (9) No user activity logging (insider threat blindness), (10) No correlation across log sources, (11) Clock skew (no NTP synchronization, timestamps are wrong), (12) Log source gaps (some systems not logging). Auditors will check: log coverage, collection, analysis, protection, retention, and review. They will also check for evidence of actual log review (reports, investigation records, alert response logs).

Q6: How do we prove logs have not been tampered with? A: Log tampering proof requires: (1) Immutable storage (append-only, WORM, object lock), proves logs cannot be modified or deleted, (2) Cryptographic hashing (SHA-256 of each log entry), any modification changes the hash, proving tampering, (3) Digital signatures (sign log entries with private key), cryptographic proof of authenticity, (4) Separate storage for hashes (hashes stored on different system from logs), attacker cannot modify both, (5) Blockchain-based logging (for highest assurance), distributed, immutable ledger, (6) Audit trail of log access (who accessed logs, when), proves no unauthorized access, (7) Regular integrity checks (weekly verification of hashes), detects tampering, (8) Third-party log verification (external auditor verifies integrity), independent confirmation. For legal admissibility, you need to demonstrate that logs were generated automatically, collected securely, stored immutably, and verified regularly. The chain of custody is essential: document who handled the logs, when, and how. Courts accept logs as evidence if you can prove they are authentic and untampered. Without these protections, logs are not admissible as evidence.

Q7: How do we balance privacy with logging? A: Logging can capture sensitive personal information, creating privacy risks. Balance privacy with logging by: (1) Log only what is necessary (do not log passwords, credit card numbers, health data, or other sensitive content), (2) Mask or tokenize sensitive data in logs (e.g., log last 4 digits of credit card, not full number), (3) Use pseudonymization (replace user IDs with pseudonyms in logs where possible), (4) Apply data minimization (collect minimum data needed for security), (5) Define log access controls strictly (only SOC analysts need access, not all IT staff), (6) Include logging in privacy impact assessments (DPIA under DPDP Act), (7) Inform users about logging in privacy policy (transparency requirement under DPDP), (8) Apply retention limits (delete logs when no longer needed for security or compliance), (9) Use anonymization for analytics (aggregate logs for trend analysis without individual identification), (10) Separate security logs from operational logs (different access, different retention). Privacy and logging are not mutually exclusive, you can have effective security logging while respecting privacy. The key is to be intentional about what you log, how you protect it, and how long you keep it. The DPDP Act requires data fiduciaries to protect personal data, including data in logs. Log data that contains personal information is subject to DPDP requirements.

Q8: What is the role of machine learning in log analysis? A: ML is transforming log analysis: (1) Anomaly detection (ML learns normal patterns and alerts on deviations, no rules needed), (2) User Behavior Analytics (ML learns user baselines and detects insider threats), (3) Entity behavior analytics (ML learns system baselines and detects compromised systems), (4) Threat intelligence integration (ML correlates logs with threat feeds to identify known threats), (5) Predictive analytics (ML predicts future threats based on historical patterns), (6) Automated triage (ML prioritizes alerts based on risk, reducing analyst workload), (7) Natural language processing (NLP analyzes unstructured logs for context), (8) Deep learning (neural networks detect complex attack patterns across millions of events). ML is not a replacement for human analysts, it is a force multiplier. ML handles the volume and finds patterns humans miss; humans handle the context and make decisions. For growing companies, ML-based SIEM features (e.g., Microsoft Sentinel, Elastic Security, Rapid7 InsightIDR) are affordable and effective. For large enterprises, advanced ML (UEBA, SOAR, threat hunting) is essential for managing massive log volumes. The future of log analysis is ML-assisted, not ML-only. The best SOC combines ML for detection with human expertise for investigation.

Q9: How do we handle logging for IoT and OT/ICS systems? A: IoT and OT/ICS systems are challenging for logging: (1) Limited computing power (many IoT devices cannot generate detailed logs), (2) Proprietary protocols (OT systems use industrial protocols like Modbus, DNP3, OPC-UA that standard SIEMs may not parse), (3) Air-gapped networks (OT networks are isolated from IT, making log collection difficult), (4) Safety-critical systems (logging must not impact system performance or safety), (5) Legacy systems (many OT systems are 20+ years old with no logging capability), (6) Vendor lock-in (OT vendors may not provide log access). Solutions: (1) Use network-level logging (mirror OT traffic to a monitoring port, analyze with IDS/IPS like Snort, Suricata, or industrial IDS like Claroty, Nozomi), (2) Use protocol gateways (convert OT protocols to standard formats for SIEM), (3) Use passive log collection (read-only access, no impact on OT systems), (4) Use dedicated OT log collectors (hardened, isolated, designed for OT environments), (5) Use OT-specific SIEM features (some SIEMs have OT parsers and dashboards), (6) Implement Purdue Model segmentation (Level 0–3 OT, Level 4–5 IT, logs collected at boundary), (7) Use data diodes for one-way log transfer from OT to IT (physical unidirectional transfer). OT logging is essential for detecting attacks on critical infrastructure (Stuxnet, TRITON, Industroyer all targeted OT). The convergence of IT and OT requires unified logging, but with OT-specific considerations. Do not ignore OT logs, they are the canary in the coal mine for industrial cyberattacks.

Q10: What is the future of logging? A: Logging is evolving rapidly: (1) AI-native SIEM (SIEM built from the ground up with AI, not bolted on, e.g., Microsoft Sentinel, Google Chronicle), (2) Extended Detection and Response (XDR), integrated logs from endpoint, network, cloud, email, identity in one platform, (3) Security Data Lakes (massive, cheap storage for all logs with ML analytics, e.g., Snowflake, Databricks for security), (4) OpenTelemetry (unified standard for logs, metrics, and traces, cloud-native observability), (5) eBPF (Extended Berkeley Packet Filter) for kernel-level logging without agents, revolutionizing Linux logging, (6) Zero Trust logging (every access logged, every transaction verified, continuous validation), (7) Automated response (SOAR + AI, detect, investigate, and respond without human intervention for known threats), (8) Federated logging (distributed log collection across multiple organizations for threat intelligence sharing), (9) Quantum-resistant logging (preparing for quantum threats to log integrity and encryption), (10) Real-time compliance (continuous compliance monitoring via automated log analysis, not periodic audits). The future of logging is AI-powered, XDR-integrated, cloud-native, and automated. Logging will become invisible to users but hyper-visible to security systems. The SIEM of the future will be an AI co-pilot that detects, investigates, and responds autonomously, with humans handling only novel, complex threats.

Q11: How do we handle log analysis during a major incident (ransomware, breach)? A: During a major incident, log analysis is critical but challenging: (1) Pre-incident: Have log analysis runbooks ready (pre-defined search queries, known IOCs, correlation rules), (2) During incident: Preserve logs immediately (export, hash, store securely) before attacker deletes them, (3) Use immutable logs (if implemented, logs are safe from tampering), (4) Focus on timeline reconstruction (what happened first, what happened next, what was the sequence), (5) Use correlation to find patient zero (the initial compromise point), (6) Use logs to track lateral movement (which systems were accessed, from where, by whom), (7) Use logs to identify data access (what data was accessed, modified, exfiltrated), (8) Use logs to identify persistence (new accounts, scheduled tasks, services), (9) Use logs for containment (identify all compromised systems, block access), (10) Use logs for evidence (collect logs for legal and forensic purposes), (11) Post-incident: Use logs for lessons learned (what detection gaps existed, how to improve), (12) Post-incident: Update detection rules based on new TTPs observed. During an incident, log analysis is the primary tool for understanding, containing, and responding. The quality of your log analysis determines the quality of your incident response. Prepare your log analysis capabilities before the incident, not during.

Q12: What is the difference between real-time and batch log analysis? A: Real-time analysis processes logs as they arrive, enabling immediate detection and response (seconds to minutes). Batch analysis processes logs in chunks (hourly, daily), enabling trend analysis and historical review but with delayed detection. Real-time is essential for: critical security events (brute force, malware, C2, data exfiltration), automated response (block IP, disable account), and immediate incident response. Batch is sufficient for: compliance reporting (daily/weekly reports), trend analysis (long-term patterns), and forensic investigation (historical reconstruction). Best practice: Real-time for critical events (automated SIEM analysis), batch for non-critical (compliance, trends). A hybrid approach is most effective: real-time for detection, batch for context and reporting. Real-time analysis requires more computing resources and more premium-tier SIEM licensing. Batch analysis is cheaper but slower. The right balance depends on your threat model, budget, and compliance requirements. For a bank, real-time is essential. For a small business, batch may be sufficient for most events with real-time for critical ones.

Q13: How do we handle logging in a multi-cloud environment (AWS + Azure + GCP)? A: Multi-cloud logging requires unified visibility across all clouds: (1) Enable cloud-native logging in all clouds (CloudTrail, Monitor, Cloud Logging), (2) Forward all cloud logs to a central SIEM ( Splunk, Elastic, Datadog, or cloud-agnostic SIEM), (3) Normalize cloud logs to a common schema (AWS, Azure, and GCP logs have different formats), (4) Correlate events across clouds (e.g., IAM change in AWS followed by data access in Azure = cross-cloud attack), (5) Use cloud-agnostic log shippers (Fluentd, Fluent Bit, Vector) to collect from all clouds, (6) Use cloud-agnostic SIEM (Splunk, Elastic, Datadog) that supports all cloud logs, (7) Implement unified alerting (same rules applied to all cloud logs), (8) Implement unified dashboards (single view of security across all clouds), (9) Use cloud security posture management (CSPM) tools that integrate with SIEM for multi-cloud visibility, (10) Ensure cloud logs are retained consistently across all clouds (same retention policy, same protection). Multi-cloud logging is complex but essential. An attacker who compromises one cloud may move to another. Without unified logging, cross-cloud attacks are invisible. The SIEM must be the single pane of glass for all cloud security events.

Q14: How do we handle logging overhead optimization? A: Log management overhead can grow quickly. Optimize overhead: (1) Right-size log collection (only collect security-relevant logs, not all logs), (2) Use log filtering (drop low-value logs at the source before sending to SIEM), (3) Use log sampling (for high-volume, low-value logs, sample 1–10%), (4) Use compression (reduces storage and transfer overhead by 50–70%), (5) Use deduplication (remove duplicate events), (6) Use tiered storage (hot for 30 days, warm for 1 year, cold for archive), (7) Use cloud archive (AWS S3 Glacier, Azure Archive, Google Coldline, cheapest for long-term), (8) Use reserved capacity (if predictable volume, reserved instances save 30–60%), (9) Monitor log volume trends (alert if volume spikes unexpectedly), (10) Use open-source tools (Wazuh, Graylog, Elastic Stack, reduce licensing overhead), (11) Use cloud-native SIEM for cloud-only environments (Microsoft Sentinel for Azure, AWS Security Lake for AWS, efficient), (12) Negotiate volume discounts with SIEM vendors (enterprise deals often include volume licensing). overhead optimization is not about reducing logging, it is about logging smart. The goal is to maintain complete security visibility while controlling overhead. A well-optimized logging program can be 50% cheaper than an unoptimized one without losing detection capability.

Q15: What is the difference between structured and unstructured logging, and why does it matter? A: Structured logging (e.g., JSON, XML) has predefined fields and is machine-readable. Unstructured logging (e.g., free-text syslog, custom formats) is human-readable but requires parsing to be machine-readable. Structured logging matters because: (1) Faster parsing (no regex or pattern matching needed), (2) Better search (field-specific queries, e.g., user_id="john.doe" instead of full-text search), (3) Better correlation (link events by field values, e.g., same session_id across systems), (4) Better analytics (statistical analysis on specific fields, e.g., count of unique source_ip), (5) Better dashboards (visualize specific fields), (6) Better automation (scripts and SOAR playbooks can read fields directly). Unstructured logging requires more processing power, more storage, and more analyst effort. Structured logging is the modern standard. If your applications and systems generate unstructured logs, consider adding structured logging libraries (e.g., Logback for Java, Serilog for .NET, structlog for Python). If you cannot change the log format, use log parsers (Logstash, Fluentd) to convert unstructured to structured at collection time. The future of logging is structured. JSON is the de facto standard for structured logging. Adopt it for new applications and gradually convert legacy logs.


References and Further Reading

Standards and Frameworks

  • ISO/IEC 27001:2022, Information Security, Cybersecurity and Privacy Protection, Information Security Management Systems, Requirements
  • ISO/IEC 27002:2022, Information Security, Cybersecurity and Privacy Protection, Information Security Controls
  • NIST SP 800-53 Rev 5, Security and Privacy Controls for Information Systems and Organizations
  • PCI DSS v4.0, Payment Card Industry Data Security Standard
  • CIS Controls v8, CIS Controls Version 8
  • COBIT 2019, Control Objectives for Information and Related Technologies
  • NIST SP 800-92, Guide to Computer Security Log Management

Indian Regulations

  • RBI Cyber Security Framework for Banks
  • SEBI Circular CIR/ISD/2019 on Cyber Security and Cyber Resilience
  • IRDAI Guidelines on Information and Cyber Security for Insurers
  • CERT-In Guidelines for Information Security Practices
  • Information Technology Act, 2000 (as amended)
  • Digital Personal Data Protection Act, 2023 (India)
  • Company Act, 2013

Books and Publications

  • ISO 27001/27002: A Pocket Guide by Alan Calder
  • The SIEM Evaluation Guide by SANS Institute
  • Logging and Log Management: The Authoritative Guide to Dealing with Syslog, Audit Logs, Alerts, and Other IT Noise by Anton Chuvakin and Kevin Schmidt
  • The Practice of Network Security Monitoring by Richard Bejtlich
  • Applied Network Security Monitoring by Chris Sanders and Jason Smith
  • Security Information and Event Management (SIEM) Implementation by David R. Miller, Shon Harris, and Stephen VanDyke

SIEM and Log Management Resources

Cloud Logging Resources

How Singahi can help

Singahi is one team for compliance, assessment and managed security. We help growing companies implement and certify ISO 27001:2022, and stay secure afterward.


Continue the toolkit

How we can help

Working toward this?

If a certification or a customer's security questionnaire is what brought you here, tell us where you are. We'll give you an honest read on the work and the timeline, with no obligation.

What happens next

  1. Tell us the trigger

    A questionnaire, an audit date or an investor ask. The short form or a call both work.

  2. A practitioner replies

    A senior practitioner, not a bot, within four business hours.

  3. You get a scoped next step

    An honest view of what the work involves. No pressure, no theatre.