CERT-In log retention became a practical storage question after the directions issued on 28 April 2022 under section 70B of the Information Technology Act. Among other things, the directions require covered entities to keep logs of their ICT systems for a rolling 180 days, maintained within Indian jurisdiction, and to report specified cyber incidents to CERT-In within 6 hours of noticing them.
For an IT team, that turns into concrete questions: how much log data do we generate, where should it live, how do we stop it being altered or deleted, and can we find what we need quickly during an incident? This post works through the storage side. Whether and how the directions apply to your organisation is a legal question, so check with your legal team.
What the directions ask for, in storage terms
- Retention: logs of all ICT systems kept securely for a rolling period of 180 days.
- Location: maintained within Indian jurisdiction.
- Availability: logs provided to CERT-In when requested, and available to support incident reporting within the 6-hour window.
A storage plan therefore needs enough capacity for half a year of logs, a location you can demonstrate is in India, integrity protection, and a way to search them. Keeping logs on on-premises storage in India makes the location question straightforward.
Which logs to collect
The directions refer to logs of ICT systems broadly. A typical collection scope includes:
- Firewalls, VPN gateways, routers and core switches
- Domain controllers and authentication systems
- Servers, hypervisors and storage systems, including admin actions
- Email gateways, web proxies and DNS servers
- Databases and key business applications
- Endpoint protection and security tools
Agree the scope with your security and legal teams, then estimate volume for each source.
Estimating log storage: a worked example
Log volume varies enormously with device type and verbosity, so measure a week of real data before buying. To show the method, here is a hypothetical estimate:
| Source | Count | GB per device per day | GB per day |
|---|---|---|---|
| Firewalls and VPN | 2 | 10 | 20 |
| Servers and hypervisors | 40 | 0.5 | 20 |
| Proxy, DNS, email | 4 | 5 | 20 |
| Switches, storage, other | 60 | 0.1 | 6 |
| Total | 66 |
Raw retention for 180 days: 66 GB × 180 = 11,880 GB, roughly 11.9 TB. Then adjust:
- Compression: text logs usually compress well. With ZFS compression enabled, the on-disk footprint can be several times smaller, but verify on your own logs.
- Indexing: a SIEM or search tool adds index overhead, sometimes comparable to the raw data. Ask your SIEM vendor.
- Growth: add headroom for new systems and incidents, when logging gets louder.
- Copies: a second copy of logs, kept elsewhere, means doubling the figure on that system.
Convert the result to usable capacity after RAID and file-system overhead using the capacity calculator.
Protecting log integrity
Logs are evidence. An attacker who gains admin access often tries to delete or edit them, so the storage must make that hard:
- Ship logs off the source quickly. Logs left only on the compromised server are easily wiped.
- Separate the log store. Use a dedicated system or dataset with its own admin accounts, not the general file server.
- Make history read-only. Write logs to daily folders and take snapshots; on ZFS, snapshots are read-only and cannot be altered by clients.
- Verify integrity. ZFS checksums detect silent corruption, and regular scrubs confirm stored blocks are intact; see ZFS data integrity. Hashing daily log archives adds a tamper-evidence record.
- Synchronise time. Use NTP on all systems so log timestamps can be correlated during an investigation.
- Restrict and log access. Who can read or delete logs should itself be logged.
Retention automation and the 180-day window
180 days is a rolling minimum, not a target to trim to the day. Automate deletion of data older than your policy period, but make the policy period slightly longer than 180 days to absorb clock drift, late ingestion and holidays. If your organisation keeps some logs longer for its own reasons, separate those datasets so the automation does not touch them. Never delete logs related to an open incident, whatever their age.
Being ready for a 6-hour report
The reporting window is short. Storage choices affect how quickly you can answer basic questions such as which accounts logged in, which hosts talked to an external address, and when files changed:
- Keep recent logs (for example the last 30 days) on faster storage so searches return quickly.
- Document where each log source lands and who has access.
- Practise a search drill: pick a past date and find all logins by one user across systems.
Choosing where the log store lives
Three patterns are common, and the choice depends mostly on how many systems you have and whether you run a SIEM:
- Central syslog server writing to a NAS share. Simple and inexpensive. Devices send syslog to a collector, which writes daily files to a dataset on the NAS. Search is with standard text tools. Suits smaller estates.
- SIEM with its own hot storage, archiving to NAS. The SIEM keeps recent weeks indexed for fast search and moves older data to a cheaper NAS tier. The 180-day obligation is met by the combination, so make sure the archive can be reloaded or searched when needed.
- Dedicated log appliance or cluster. For large volumes, a separate system with its own storage. Same integrity and location questions apply.
Tiering recent and older logs
Most searches look at the last few days. A practical split keeps 30 days on SSD or fast disks and the remaining 150 or more days on high-capacity hard drives with compression enabled. With the hypothetical 66 GB per day above, the hot tier would hold about 2 TB and the archive tier the rest, which reduces the cost of fast storage considerably.
Protecting against failure as well as tampering
A log store that loses a drive should not lose six months of evidence. Use RAID 6 or raidz2 rather than single parity, monitor drive health, and replicate the archive to a second system in India. Scrubs on ZFS-based storage confirm that archived logs have not silently changed. If logs are ever needed in an investigation, being able to show that they were kept on redundant, checksummed storage with restricted access helps establish their reliability.
Checklist: log storage for CERT-In directions
- Is the list of log sources agreed and documented?
- Is daily log volume measured, not guessed?
- Is capacity sized for more than 180 days, after compression, indexing and growth?
- Is the log store physically in India, and can you show where?
- Are logs shipped off sources in near real time?
- Are historic logs protected by snapshots and separate admin credentials?
- Are clocks synchronised, and is retention deletion automated?
- Has the team rehearsed finding evidence within a few hours?
A ZFS-based PANARO D2X12CL with compression and snapshots is one option for a dedicated, India-hosted log repository; Panaro's systems are designed and manufactured in India and supported by an India-based team. To size a log store for your environment, send your requirement.
Frequently asked questions
How long must logs be kept under the CERT-In directions?
The CERT-In directions of 28 April 2022 require covered entities to maintain logs of their ICT systems securely for a rolling period of 180 days within Indian jurisdiction. Confirm with your legal team whether and how the directions apply to your organisation and which systems are in scope.
How much storage do 180 days of logs need?
Measure your daily log volume, multiply by 180, then adjust for compression, index overhead, growth and any second copy. For example, 66 GB per day comes to about 11.9 TB raw over 180 days before compression. Text logs often compress well, but test with your own data.
Can logs be stored on a cloud service outside India?
The directions say logs are to be maintained within Indian jurisdiction. Storing them on on-premises systems in India, or with a provider that can demonstrate Indian location, makes this easier to show. Check the specifics with your legal team before choosing a location.
How do I stop attackers deleting logs?
Forward logs off each source quickly to a separate log store with its own administrator accounts, protect history with read-only snapshots, restrict who can delete data, and keep a second copy elsewhere. Record access to the log store itself, and hash daily archives for tamper evidence.