Shahi LegalFlowSuite

Understanding Consent Logs

Monitor User Consent and Track Compliance

What Are Consent Logs?

Consent Log Overview

Purpose:

    1. Record all user consent decisions
    2. Track consent changes over time
    3. Provide audit trail for compliance
    4. Support data subject rights requests
    5. Generate compliance reports
    6. Data Captured:
      `json
      {
      “log_id”: 12345,
      “userid”: “user67890″,
      “sessionid”: “sessionabc123″,
      “ip_address”: “192.168.1.100”,
      “user_agent”: “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36”,
      “consent_timestamp”: “2025-12-31T10:30:00Z”,
      “consent_categories”: {
      “essential”: true,
      “analytics”: true,
      “marketing”: false,
      “preferences”: true
      },
      “consent_source”: “banner”,
      “consent_version”: “2.1”,
      “geo_location”: “US-CA”,
      “referrer”: “https://yourwebsite.com/page1”
      }
      `

      Log Types

      Initial Consent:

    7. First-time visitor consent
    8. Banner interaction
    9. Default consent application
    10. Import from other systems
    11. Consent Updates:

    12. Preference changes
    13. Category modifications
    14. Consent withdrawal
    15. Re-consent after policy updates
    16. Automated Logs:

    17. Cookie scanning results
    18. Policy change notifications
    19. Compliance audit entries
    20. System maintenance logs
    21. Access Consent Logs

      Step 1: Navigate to Logs

      `
      SLOS → Consent Management → Consent Logs → View Logs
      `

      Log Interface Features:

    22. Date range filtering
    23. User search
    24. Category filtering
    25. Export options
    26. Real-time updates
    27. Step 2: Filter and Search

      `
      SLOS → Consent Management → Consent Logs → Filters
      `

      Common Filters:
      `json
      {
      “date_range”: {
      “start”: “2025-12-01”,
      “end”: “2025-12-31”
      },
      “categories”: [“analytics”, “marketing”],
      “consent_status”: “granted”,
      “geo_region”: “EU”,
      “source”: “banner”
      }
      `

      Analyze Consent Patterns

      Step 1: View Consent Analytics

      `
      SLOS → Analytics → Consent Analytics → Dashboard
      `

      Key Metrics:

    28. Overall consent rate: 85%
    29. Category acceptance rates
    30. Consent withdrawal rate: 5%
    31. Average consent time: 45 seconds
    32. Mobile vs desktop consent rates
    33. Step 2: Category Performance

      Analytics Category:

    34. Acceptance rate: 78%
    35. Withdrawal rate: 12%
    36. Average decision time: 30 seconds
    37. Peak consent times: 2-4 PM
    38. Marketing Category:

    39. Acceptance rate: 45%
    40. Withdrawal rate: 25%
    41. Average decision time: 60 seconds
    42. Geographic variations: EU (35%), US (55%)
    43. Preferences Category:

    44. Acceptance rate: 92%
    45. Withdrawal rate: 3%
    46. Average decision time: 15 seconds
    47. High acceptance across all regions
    48. Monitor Consent Compliance

      Step 1: Check Consent Validity

      `
      SLOS → Compliance → Consent Validation → Run Check
      `

      Validation Rules:

    49. Consent age (not older than 2 years)
    50. Required categories granted
    51. Valid consent source
    52. Complete user information
    53. Geographic compliance
    54. Step 2: Identify Issues

      Invalid Consent Records:
      `json
      [
      {
      “log_id”: 12345,
      “issue”: “consenttooold”,
      “consent_date”: “2023-12-31”,
      “days_old”: 731,
      “action_required”: “re-consent”
      },
      {
      “log_id”: 12346,
      “issue”: “missing_category”,
      “missing_categories”: [“preferences”],
      “actionrequired”: “updateconsent”
      }
      ]
      `

      Handle Consent Withdrawals

      Step 1: Process Withdrawal Requests

      `
      SLOS → DSR Portal → Requests → Review Withdrawals
      `

      Withdrawal Process:

    55. Receive withdrawal request
    56. Verify user identity
    57. Log withdrawal in consent logs
    58. Update user consent status
    59. Delete associated data if requested
    60. Send confirmation email
    61. Step 2: Update Consent Logs

      Withdrawal Log Entry:
      `json
      {
      “log_id”: 12347,
      “userid”: “user67890″,
      “action”: “withdrawal”,
      “withdrawal_categories”: [“analytics”, “marketing”],
      “withdrawalreason”: “privacyconcerns”,
      “withdrawal_timestamp”: “2025-12-31T14:20:00Z”,
      “processedby”: “adminuser”,
      “confirmation_sent”: true
      }
      `

      Generate Consent Reports

      Step 1: Create Compliance Reports

      `
      SLOS → Reports → Consent → Generate Report
      `

      Report Types:

    62. Daily consent summary
    63. Monthly compliance audit
    64. Quarterly regulatory report
    65. Annual privacy impact assessment
    66. Step 2: Export Log Data

      `
      SLOS → Consent Management → Consent Logs → Export
      `

      Export Formats:

    67. CSV for spreadsheet analysis
    68. JSON for API integration
    69. PDF for regulatory submission
    70. XML for legal archives
    71. Export Configuration:
      `json
      {
      “format”: “csv”,
      “daterange”: “last30_days”,
      “include_fields”: [
      “user_id”,
      “consent_timestamp”,
      “consent_categories”,
      “ip_address”,
      “geo_location”
      ],
      “anonymize_data”: true,
      “compression”: “gzip”
      }
      `

      Set Up Consent Monitoring

      Step 1: Configure Alerts

      `
      SLOS → Consent Management → Alerts → Consent Monitoring
      `

      Alert Types:

    72. [x] Low consent rates (< 50%)
    73. [x] High withdrawal rates (> 20%)
    74. [x] Invalid consent records
    75. [x] Geographic compliance issues
    76. [x] Policy change notifications
    77. Step 2: Automated Reviews

      `
      SLOS → Compliance → Automated Review → Schedule
      `

      Review Schedule:
      `json
      {
      “frequency”: “weekly”,
      “review_types”: [
      “consent_validity”,
      “category_compliance”,
      “geographic_coverage”,
      “withdrawal_patterns”
      ],
      “alert_thresholds”: {
      “invalidconsentpercentage”: 5,
      “withdrawalrateincrease”: 10
      }
      }
      `

      Handle Data Subject Rights

      Step 1: Access Request Processing

      `
      SLOS → DSR Portal → Requests → Access Requests
      `

      Access Request Workflow:

    78. Verify user identity
    79. Query consent logs
    80. Gather all user data
    81. Generate data export
    82. Send secure download link
    83. Log access request
    84. Step 2: Data Export Generation

      Consent Data Export:
      `json
      {
      “exportid”: “dsr12345″,
      “userid”: “user67890″,
      “request_type”: “access”,
      “data_categories”: {
      “consent_logs”: [
      {
      “timestamp”: “2025-01-15T10:30:00Z”,
      “categories”: [“essential”, “analytics”],
      “source”: “banner”
      },
      {
      “timestamp”: “2025-06-20T14:15:00Z”,
      “categories”: [“essential”, “analytics”, “marketing”],
      “source”: “portal”
      }
      ],
      “consent_withdrawals”: [
      {
      “timestamp”: “2025-12-31T14:20:00Z”,
      “categories”: [“marketing”],
      “reason”: “privacy_concerns”
      }
      ]
      },
      “export_format”: “json”,
      “securelinkexpiry”: “2026-01-14T14:20:00Z”
      }
      `

      Troubleshoot Log Issues

      Common Problems

      Logs Not Recording:

    85. Check database connectivity
    86. Verify table permissions
    87. Review error logs
    88. Test consent submission
    89. Missing Consent Data:

    90. Check data retention settings
    91. Verify backup integrity
    92. Review migration history
    93. Test data export
    94. Invalid Log Entries:

    95. Validate data format
    96. Check for corrupted records
    97. Review input sanitization
    98. Update validation rules
    99. Performance Issues:

    100. Optimize database queries
    101. Implement log rotation
    102. Use indexing strategies
    103. Archive old logs
    104. Optimize Log Performance

      Step 1: Database Optimization

      `
      SLOS → Advanced → Database → Log Optimization
      `

      Optimization Strategies:
      `sql
      — Add indexes for common queries
      CREATE INDEX idxconsentusertimestamp ON slosconsentlogs (userid, consent_timestamp);
      CREATE INDEX idxconsentcategory ON slosconsentlogs (consent_categories);
      CREATE INDEX idxconsentgeo ON slosconsentlogs (geo_location);

      — Partition large log tables
      PARTITION BY RANGE (YEAR(consent_timestamp)) (
      PARTITION p2023 VALUES LESS THAN (2024),
      PARTITION p2024 VALUES LESS THAN (2025),
      PARTITION p2025 VALUES LESS THAN (2026)
      );
      `

      Step 2: Log Rotation

      `
      SLOS → Advanced → System → Log Management
      `

      Rotation Settings:
      `json
      {
      “rotation_frequency”: “monthly”,
      “retentionperiod”: “7years”,
      “compression”: “gzip”,
      “archive_location”: “/logs/archive/”,
      “auto_cleanup”: true
      }
      `

      Security Considerations

      Step 1: Data Protection

      `
      SLOS → Security → Data Protection → Log Security
      `

      Security Measures:

    105. [x] Data encryption at rest
    106. [x] Access logging
    107. [x] IP address anonymization
    108. [x] Secure export links
    109. [x] Audit trail integrity
    110. Step 2: Privacy Compliance

    111. Implement data minimization
    112. Regular privacy impact assessments
    113. Secure data disposal procedures
    114. Cross-border transfer safeguards
    115. Advanced Log Analysis

      Step 1: Custom Queries

      `
      SLOS → Advanced → Analytics → Custom Queries
      `

      Sample Queries:
      `sql
      — Consent rate by category over time
      SELECT
      DATE(consent_timestamp) as date,
      SUM(CASE WHEN JSONCONTAINS(consentcategories, ‘analytics’) THEN 1 ELSE 0 END) as analytics_consent,
      COUNT(*) as total_consent
      FROM slosconsentlogs
      WHERE consent_timestamp >= ‘2025-01-01’
      GROUP BY DATE(consent_timestamp);

      — Geographic consent patterns
      SELECT
      geo_location,
      AVG(CASE WHEN JSONCONTAINS(consentcategories, ‘marketing’) THEN 1 ELSE 0 END) as marketing_rate,
      COUNT(*) as total_users
      FROM slosconsentlogs
      GROUP BY geo_location
      ORDER BY marketing_rate DESC;
      `

      Step 2: Automated Insights

      `
      SLOS → Analytics → Insights → Consent Patterns
      `

      Automated Analysis:

    116. Consent trend identification
    117. Anomaly detection
    118. Predictive modeling
    119. Compliance risk assessment
    120. Support Resources

      Documentation

    121. Consent Management Overview
    122. DSR Portal Configuration
    123. Analytics Integration
    124. Help

    125. Consent log FAQ
    126. Compliance consultation
    127. Technical support
    128. Legal guidance

Share this article

Was this article helpful?

Help us improve our documentation

Still need help?

Our support team is ready to assist you with personalized guidance for your workspace.

Submit a support ticket