AWS Consulting ·
CERT-In log retention on AWS: keeping 180 days of logs and reporting within 6 hours
CERT-In’s 2022 Directions require logs of all ICT systems kept for a rolling 180 days in Indian jurisdiction and specified incidents reported within 6 hours. Here is how those rules map to AWS — and where AWS defaults fall short.
By Upvantix team
The mandatory log retention period under CERT-In’s Cyber Security Directions of 28 April 2022 is a rolling 180 days, and the logs must be kept within Indian jurisdiction. Service providers, intermediaries, data centres, body corporates and government organisations must enable logs of all their ICT systems, keep them securely for that period and provide them to CERT-In with an incident report or when directed. The same Directions require specified cyber incidents to be reported to CERT-In within 6 hours of noticing them or being told about them. They took effect 60 days after issue; for MSMEs, CERT-In set the effective date as 25 September 2022.
On AWS, the defaults do not meet this on their own. CloudTrail Event history keeps only 90 days of management events. GuardDuty and Security Hub CSPM keep findings for 90 days. CloudWatch Logs keeps data indefinitely unless you set a retention period. A workable baseline is an organisation CloudTrail trail delivering to an Amazon S3 bucket in Mumbai (ap-south-1) or Hyderabad (ap-south-2), CloudWatch Logs retention of 180 days or more, S3 Object Lock and lifecycle rules on the log archive, findings exported to S3, clocks on a standard time source, a named CERT-In Point of Contact and a rehearsed 6-hour reporting runbook.
This guide is general information, not legal advice. Confirm your obligations with your legal and compliance advisers and the current CERT-In website.
What the CERT-In Directions require
The Directions (No. 20(3)/2022-CERT-In, dated 28 April 2022) set six obligations. Four matter for most AWS workloads: synchronise ICT system clocks to NTP servers of NIC or NPL, or to a time source that does not deviate from them; report incidents of the types listed in Annexure I within 6 hours; designate a Point of Contact to interface with CERT-In, using the Annexure II format; and enable logs of all ICT systems, keep them securely for a rolling 180 days within Indian jurisdiction, and provide them with an incident report or when CERT-In directs.
Annexure I lists 20 incident categories, including unauthorised access to IT systems or data, data breach, data leak, malicious code such as ransomware, and attacks or malicious or suspicious activities affecting cloud computing systems. The remaining two obligations — subscriber records for data centre, VPS, cloud and VPN providers, and KYC records for virtual asset providers — apply to those specific provider types.
What CERT-In’s FAQ clarifies about logs and reporting
Copies outside India: CERT-In’s FAQ (May 2022, Q35) says logs may be stored outside India also, as long as the obligation to produce logs to CERT-In is met in a reasonable time. Q36 adds that a service provider offering services to users in India needs to enable and maintain logs in Indian jurisdiction. The simpler pattern on AWS is to keep the primary 180-day archive in ap-south-1 or ap-south-2 and treat any copy elsewhere as additional.
Which logs: Q37 gives a non-exhaustive list — firewall, intrusion prevention, SIEM, web, database, mail, FTP, proxy, event logs of critical systems, application, SSH and VPN logs — and says both successful and unsuccessful events should be recorded.
Incomplete details: under Q30, entities may report the information available within 6 hours and send additional information later within reasonable time. Q13 says the entity that notices an incident must report it; the obligation is not transferable to a partner.
Clocks: Q40 says system clocks do not have to be set to IST, but time zone should be recorded with the time. Q42 says entities relying on a cloud provider’s native time service may continue to use it.
Where AWS defaults fall short of 180 days
CloudTrail Event history holds the past 90 days of management events per Region. For a longer record you need a trail delivering to S3. CloudTrail Lake has been closed to new customers since 31 May 2026, so plan on trails to S3 rather than a new Lake event data store.
CloudWatch Logs keeps log events indefinitely unless you set a retention policy; valid settings include 180 and 365 days, and deletion can take up to 72 hours after the retention date. GuardDuty retains findings for 90 days and can export them to S3. Security Hub CSPM deletes active findings that have not been updated for 90 days and archived findings after 30 days; AWS suggests EventBridge to S3 for longer retention. VPC Flow Logs can be published to CloudWatch Logs, S3 or Amazon Data Firehose — choose an India destination.
Source
- AWS CloudTrail User Guide: Working with CloudTrail event history
- AWS CloudTrail User Guide: CloudTrail Lake availability change
- Amazon CloudWatch Logs API Reference: PutRetentionPolicy
- Amazon GuardDuty User Guide: Exporting findings to Amazon S3
- AWS Security Hub CSPM User Guide: Creating and updating findings (retention)
- Amazon VPC User Guide: VPC Flow Logs
Control map: CERT-In requirements to AWS settings
Use this map to review an AWS environment against each requirement. It is a configuration checklist, not a compliance certificate.
| Criterion | AWS service or setting | Default gap to watch | Evidence to keep |
|---|---|---|---|
| Enable logs of all ICT systems | Organisation CloudTrail trail; VPC Flow Logs; load balancer, AWS WAF and DNS query logs; application logs in CloudWatch Logs | Event history covers only 90 days; flow and access logs are off until enabled | Trail configuration and a list of enabled log sources per account |
| Keep logs for a rolling 180 days | S3 Lifecycle rules of at least 180 days; CloudWatch Logs retention of 180 days or more | CloudWatch Logs never expires by default; templates may set much shorter retention | Lifecycle rules and retention settings per log group |
| Keep logs securely | S3 Object Lock (governance or compliance mode), SSE-KMS encryption, a separate log archive account | Object Lock is best planned at bucket setup; compliance-mode retention cannot be shortened | Bucket policy, Object Lock configuration and KMS key policy |
| Within Indian jurisdiction | Archive bucket and log groups in ap-south-1 (Mumbai) or ap-south-2 (Hyderabad) | Multi-Region workloads may write logs outside India | Region inventory of every log destination |
| Provide logs with an incident report | Amazon Athena or CloudWatch Logs Insights queries over the archive | Logs that cannot be queried quickly do not help inside 6 hours | Saved queries for common incident types |
| Report within 6 hours | GuardDuty and Security Hub CSPM findings routed through EventBridge to on-call alerts | GuardDuty keeps findings 90 days; Security Hub CSPM 90 days active, 30 days archived | Findings exported to S3 and an incident timeline |
| Synchronise clocks | Amazon Time Sync Service, or NTP traceable to NIC or NPL | Self-run NTP servers drifting from standard time | Time-source configuration; time zone recorded in logs |
| Designate a Point of Contact | Not an AWS setting — a governance task | Point of Contact not updated after staff changes | Copy of the Point of Contact details sent to CERT-In |
A CERT-In-aligned logging baseline on AWS
Start with a central log archive: a dedicated log archive account and an S3 bucket in ap-south-1 or ap-south-2, receiving an organisation CloudTrail trail with management events, plus data events where your risk needs them. Keep logs at least 180 days with S3 Lifecycle rules, and use S3 Object Lock. In compliance mode no user, including the root user, can overwrite or delete a locked object version until its retention date; governance mode lets specifically permitted users make exceptions. Choose the mode deliberately.
Then set CloudWatch Logs retention to 180 days or more on every log group that holds security-relevant data, turn on network and edge logs with India destinations, and export GuardDuty and Security Hub CSPM findings to S3 so incident evidence outlives the 90-day service windows.
- Log archive account and S3 bucket in an India Region
- Organisation CloudTrail trail delivering to that bucket
- S3 Lifecycle and Object Lock for at least 180 days
- CloudWatch Logs retention of 180 days or more on security log groups
- VPC Flow Logs, load balancer, AWS WAF and DNS query logs to India destinations
- GuardDuty and Security Hub CSPM findings exported to S3
- Clocks on Amazon Time Sync Service or NTP traceable to NIC or NPL
- Named CERT-In Point of Contact and a reporting runbook
The 6-hour clock: a reporting checklist
Decide in advance who declares an incident noticed, who files with CERT-In and which AWS logs you pull first. Work through these steps in order.
- Step 1 — Before any incident: Point of Contact registered with CERT-In, on-call rota agreed, reporting form saved and incident@cert-in.org.in in the runbook
- Step 2 — When noticed: record the time noticed, open an incident channel and name an incident lead
- Step 3 — First hour: classify against the 20 Annexure I categories and preserve evidence, including snapshots and locked logs
- Step 4 — Hours one to four: pull CloudTrail, VPC Flow Logs, GuardDuty and Security Hub CSPM findings for the affected accounts and time window
- Step 5 — Before six hours: file with CERT-In using the information available and record the submission time
- Step 6 — After filing: send additional details within reasonable time, keep the 180-day archive intact and review what slowed the team down
Common gaps in AWS logging for CERT-In
The gaps below are frequent in AWS setups and in public guidance on this topic.
- Treating the 90-day CloudTrail Event history as the long-term record
- Leaving GuardDuty or Security Hub CSPM as the only store of findings
- Logging in one account or Region while workloads run in several
- Confusing the Point of Contact format (Annexure II) with the incident reporting form
- Assuming an outsourcing partner can carry the reporting obligation
Related Upvantix guides
For India residency design beyond logs, see the AWS data residency and DPDP guide. For metrics, alarms and dashboards, see the AWS-native observability baseline. For backup copies across Mumbai and Hyderabad, see the AWS Backup and DR guide. Banks regulated by the RBI also have the RBI Cybersecurity Directions, 2026; see our RBI control map for AWS.
Where Upvantix fits
Upvantix is an AWS Select Tier Services Partner. We help India mid-market teams review their AWS logging setup against the CERT-In Directions, close gaps in retention and findings export, and plan an incident-reporting runbook. Upvantix is not CERT-In, is not a CERT-In empanelled auditor and does not give legal opinions.
This guide summarises public CERT-In and AWS documents as of 9 October 2026. It is general information, not legal advice. Requirements and AWS features change; confirm your obligations with your legal and compliance advisers.
Common questions about CERT-In log retention on AWS
How long does CERT-In require logs to be kept?
A rolling 180 days, kept securely and within Indian jurisdiction, under direction (iv) of the CERT-In Cyber Security Directions of 28 April 2022.
Is AWS CloudTrail enough for CERT-In log retention by default?
No. CloudTrail Event history covers only the past 90 days of management events. Create a trail to an S3 bucket in an India Region and keep logs for at least 180 days.
Can logs be stored outside India?
CERT-In’s May 2022 FAQ says logs may also be stored outside India if you can produce them to CERT-In in a reasonable time. Keeping the primary archive in Mumbai or Hyderabad is the simpler pattern.
What is the CERT-In 6-hour rule?
Incidents of the types listed in Annexure I of the Directions must be reported to CERT-In within 6 hours of noticing them or being told about them. You can send the information available and add details later.
Which AWS Regions are in India?
Asia Pacific (Mumbai), ap-south-1, and Asia Pacific (Hyderabad), ap-south-2.
Do server clocks have to be set to IST?
No. CERT-In’s FAQ says IST is not mandatory. Clocks must sync to a standard time source that does not deviate from NIC or NPL, time zone should be recorded, and cloud-native time services may continue to be used.
Does Upvantix certify CERT-In compliance?
No. Upvantix is an AWS Select Tier Services Partner that helps review and configure AWS logging and incident response. Compliance decisions sit with you and your advisers.