9 min read · Updated 26 Oct 2026
CERT-In log retention: keeping 180 days of logs, in India
In short: The CERT-In Directions require logs of all ICT systems to be kept securely for a rolling 180 days within Indian jurisdiction. Here is what that covers, where teams fall short, and how to set retention on AWS, Azure and Google Cloud.
Free tool: CERT-In readiness quiz →
The Directions issued by CERT-In on 28 April 2022 under section 70B(6) of the IT Act include a short sentence with large consequences: service providers, intermediaries, data centres, body corporates and government organisations must enable logs of all their ICT systems and maintain them securely for a rolling period of 180 days, within Indian jurisdiction. The logs must be provided to CERT-In along with an incident report, or when CERT-In orders them.
What counts as an ICT system
In practice, anything that runs or carries your service: servers and virtual machines, containers and Kubernetes clusters, databases, firewalls, VPNs, load balancers, DNS, identity providers and single sign-on, email, and the cloud control plane itself. Application logs matter too, because they show what a user or an attacker actually did.
Where teams usually fall short
- Default retention is shorter than 180 days in many tools and services. Logs simply expire before anyone notices.
- Cloud audit logs are kept only in the provider's short default history, rather than exported to storage you control.
- Network devices, VPNs and SaaS tools log to their own consoles, with their own retention, and nobody collects them.
- Logs are kept, but in a region outside India.
- Logs can be changed or deleted by the same administrators whose actions they record.
Setting 180 days on the main clouds
AWS
CloudTrail's event history in the console covers 90 days of management events. Create a trail that delivers to an S3 bucket in an Indian region (ap-south-1 Mumbai or ap-south-2 Hyderabad), with a lifecycle rule that keeps objects for at least 180 days. Set CloudWatch Logs groups' retention to 180 days or more; the default for a new log group is never expire, but many teams set shorter values to save money. Turn on S3 Object Lock or a restrictive bucket policy so the logs can't be altered.
Microsoft Azure
The Activity Log is kept for 90 days by default. Add a diagnostic setting to send it, and resource logs, to a Log Analytics workspace or storage account in Central India, South India or West India, and set retention to at least 180 days. Use immutable storage policies on the archive account.
Google Cloud
Admin Activity audit logs are kept for 400 days in the _Required bucket, but Data Access logs and other logs go to the _Default bucket with 30 days' retention. Create a log bucket in asia-south1 (Mumbai) or asia-south2 (Delhi), route logs to it with a sink, set retention to 180 days or more, and lock the bucket's retention policy if you need it immutable.
Keeping logs secure
Maintaining logs securely means more than storing them. Restrict who can read them (logs often contain personal data and secrets), separate the people who can delete them from the people whose actions they record, and use write-once storage where your platform offers it. Encrypt them at rest, and record who accessed them.
Clocks: why NTP is part of the same problem
Logs from different systems are only useful together if their timestamps agree. The same Directions require clocks to be synchronised with the NTP servers of the National Informatics Centre (NIC) or the National Physical Laboratory (NPL), or with time sources traceable to them. Check this on servers, network devices and anything that keeps its own time.
Cost: keep 180 days without paying for 180 days of fast search
Retention doesn't have to mean expensive hot storage. Keep recent logs (say 14 to 30 days) in your search tool, and archive everything to object storage in India for the full 180 days, where it costs a small fraction as much. You can load archived logs back when an investigation needs them. Dropping pure noise such as health-check lines before it's stored cuts the bill further without losing anything investigators need.
A worked example: a SaaS company on AWS
Consider a SaaS company in Bengaluru running on AWS in Mumbai, with Kubernetes, a managed PostgreSQL database, Cloudflare in front, Google Workspace for staff and GitHub for code. Its logs live in at least six places: CloudTrail, CloudWatch Logs for the cluster and database, the Kubernetes audit log, Cloudflare's logs, Google Workspace's admin and login audit logs, and GitHub's audit log. Each has its own default retention, and several are far shorter than 180 days or depend on the plan.
A practical setup sends all of them to one place: an S3 bucket in ap-south-1 with a lifecycle rule moving objects to a cheaper storage class after 30 days and deleting them after, say, 200 days, with Object Lock to stop changes. CloudTrail and CloudWatch export there directly; Cloudflare Logpush can deliver to S3; Workspace and GitHub audit logs can be pulled on a schedule through their APIs or a log collector. Search covers the last few weeks; the archive covers the rest.
Common mistakes
- Assuming the cloud provider keeps logs long enough. Default histories are often 30 or 90 days.
- Keeping logs, but only from production servers, not from identity, network, VPN and SaaS tools where many incidents start.
- Storing the archive in a region outside India by default, for example a bucket created in us-east-1.
- Letting the same administrators who could cause an incident delete the logs that would show it.
- Never testing a restore, then finding during an incident that old logs are in a format nobody can read quickly.
How to verify
Pick a date about 170 days ago and try to answer a specific question from the logs: who signed in to the cloud console that day, which IP addresses reached the VPN, what the firewall blocked. If you can answer it within an hour, from storage in India, for every system on your inventory, you're in good shape. Record the test, because it's exactly the evidence an auditor asks for.
Checklist
- An inventory of every ICT system that produces logs, including SaaS, network and identity.
- Logging enabled on each, including cloud audit logs.
- Retention of at least 180 days, checked in each tool, not assumed.
- A copy of the logs stored in an Indian region.
- Write-once storage or equivalent protection against changes and deletion.
- Clocks synchronised to NIC or NPL, or a traceable source.
- A tested way to export the logs for a time window, to hand to CERT-In.
This guide summarises the Directions. Read the current text and CERT-In's FAQs on cert-in.org.in, which discuss specific situations such as logs held by providers outside India, and check sector regulators' rules, which can be stricter.
FAQ
Questions
Do the 180 days apply to all logs?
The Directions refer to logs of all ICT systems. In practice, focus first on security-relevant logs: authentication, administrative actions, network and firewall, cloud audit and application access logs.
Does the 180-day period include today?
It's a rolling period: at any moment you should be able to produce the last 180 days.
Can logs be stored outside India?
The Directions say logs are to be maintained within Indian jurisdiction. CERT-In's FAQs discuss some situations in more detail; check the current FAQs for your setup and keep a copy in an Indian region to be safe.
What is the cheapest way to comply?
Short hot retention in your search tool plus a 180-day archive in object storage in an Indian region.
How do I check where I stand?
Take our free CERT-In readiness quiz for a quick score, or run CERT-In Ready against your infrastructure for evidence.
Tools for this
Products that help
CERT-In Ready
CERT-In compliance checkCERT-In, checked properly. Checks whether your systems meet India's CERT-In cybersecurity rules: logs kept for 180 days in India, correct clocks and a plan for reporting incidents within 6 hours.
- Who it's forIndian SaaS and fintechs · Data centres and cloud users
- What you getCERT-In readiness report · Incident runbook · Log register
LogTrim
Log cost reducerStop paying to store noise. Shows which log lines cost you the most money to store, and how to drop, sample or clean them, with ready-to-paste filters, often cutting log bills sharply.
- Who it's forTeams paying $2,000 or more a month for logs · FinOps and platform teams cutting observability spend
- What you getCost per log pattern · Drop, sample and redact plan · Filters and code locations
IncidentLens
Incident timelineClarity in the first ten minutes. When your site goes down, it shows when the problem started, what changed just before it, and the log lines that prove the cause, from logs you already have.
- Who it's forSaaS teams without an SRE team · MSPs on call for several clients
- What you getIncident timeline · Ranked causes with evidence · Post-incident report in HTML