Logging and Monitoring Policy
What we log, how long we keep it, and who watches the alerts.
The highlighted fields are filled in from your answers in the builder.
- Company: [Company]
- Policy owner: [Policy owner]
- Effective date: [Effective date]
- Version: 1.0
- Review: once a year
Purpose
This policy makes sure [Company] can see what is happening in its systems, so that we notice problems, answer questions after the fact and prove what we did.
Scope
Production systems in [Cloud provider], our product, [Identity provider], [Code host], company devices and the tools that protect them.
Roles and responsibilities
- Policy owner: The [Policy owner] decides what must be logged and watched.
- Engineering lead: Builds and runs the logging and alerting.
- Alert responders: Triage alerts and escalate real events as incidents.
One person can hold more than one role. In a small team that is normal. What matters is that each duty has a named owner.
Policy statements
1. What we log
1.1At a minimum we log: sign-ins and failed sign-ins, changes to multi-factor authentication, changes to roles and permissions, admin actions in [Identity provider], [Code host] and [Cloud provider], access to production databases, staff access to customer data, changes to production configuration, deployments, and alerts from our security tools.
1.2The audit trail of every [Cloud provider] account is switched on in every region we use.
1.3Our product records who did what and when for sensitive actions, such as signing in, changing permissions, exporting and deleting. Logs never contain passwords, tokens, full payment card numbers or other Restricted data.
1.4System clocks sync to a trusted time source so that events line up. Cloud services do this by default. We check the systems we run ourselves.
2. Protecting logs
2.1Logs are copied to a central place that the administrators of the source systems cannot change. Only named people can read them, and nobody deletes logs by hand.
2.2We keep security and audit logs for 365 days, and keep the most recent 30 days where we can search them quickly.
2.3We raise an alert when a source stops sending logs or when someone switches off an audit trail.
3. Watching
3.1We set alerts for events that matter: repeated failed sign-ins, sign-ins from unusual places, new admin accounts or API keys, use of owner or root accounts, changes to logging or security settings, large data exports, detections from security tools and storage that has become public.
3.2We turn on the threat-detection and audit features of [Cloud provider] and look at what they find.
3.3Alerts go to a channel or pager that named people watch.
3.4A named person triages alerts every working day, and Critical alerts reach them by phone.
3.5We triage every alert. A real event becomes an incident under the Incident Response Policy. A false alert is tuned so that it does not recur. We record the outcome.
4. Service health and capacity
4.1We monitor uptime, error rates, response time, CPU, memory, storage and database connections for production. Each has a threshold and an alert.
4.2We review capacity trends every quarter and add capacity before we run out.
4.3We publish a status page for customers.
5. Audits and tests
5.1Before an auditor or tester touches production, we agree the scope and timing, give read-only access where we can, and keep a record of what they accessed.
Exceptions
We make an exception only in writing. The request names the rule, the reason, the risk and an end date. The [Policy owner] approves it. We keep every exception in a register, review it at its end date, and let none run longer than 12 months without a fresh decision.
Enforcement
Anyone who breaks this policy on purpose, or keeps doing it carelessly, faces the disciplinary steps in our People Security Policy. For employees that can go as far as ending employment. For contractors and vendors it can mean ending the contract.
Review
The [Policy owner] reviews this policy once a year, and again after any major change to our systems, our people or the law. We record every change in the version history below. Everyone covered by the policy accepts each new version.
Control mapping
This policy is part of the evidence for these requirements.
| Framework | Reference | Topic |
|---|---|---|
| SOC 2 Trust Services Criteria (2017, revised points of focus 2022) | CC4.1 | Ongoing and separate evaluations |
| SOC 2 Trust Services Criteria (2017, revised points of focus 2022) | CC7.2 | Monitoring for anomalies |
| SOC 2 Trust Services Criteria (2017, revised points of focus 2022) | CC7.3 | Evaluation of security events |
| SOC 2 Trust Services Criteria (2017, revised points of focus 2022) | A1.1 | Capacity management |
| ISO/IEC 27001:2022 Annex A | A.8.6 | Capacity management |
| ISO/IEC 27001:2022 Annex A | A.8.15 | Logging |
| ISO/IEC 27001:2022 Annex A | A.8.16 | Monitoring activities |
| ISO/IEC 27001:2022 Annex A | A.8.17 | Clock synchronization |
| ISO/IEC 27001:2022 Annex A | A.8.34 | Protection of information systems during audit testing |
Version history
| Version | Date | Author | Change |
|---|---|---|---|
| 1.0 | [Effective date] | [Policy owner] | First release |
Make it yours
Answer a few questions and the highlighted fields fill in, sized for your team.
What it supports
SOC 2 Trust Services Criteria (2017, revised points of focus 2022)
- CC4.1Ongoing and separate evaluations
- CC7.2Monitoring for anomalies
- CC7.3Evaluation of security events
- A1.1Capacity management
ISO/IEC 27001:2022 Annex A
- A.8.6Capacity management
- A.8.15Logging
- A.8.16Monitoring activities
- A.8.17Clock synchronization
- A.8.34Protection of information systems during audit testing