SECURITY OPERATIONS

When your logs only go back 30 days: why you can no longer say “nothing leaked”, and how to keep a year of logs cheaply

The first question after an incident is “who viewed what, when, and from where?” Whether you can answer depends on whether the logs still exist. Yet many services, left on their defaults, delete logs after days or months. This article explains how missing logs are treated under the law, the default retention of major services, and how a company without IT staff can keep a year or more of logs cheaply (as of October 29, 2026).

Home›Blog›How long do your logs go back?
Published 2026-10-29 | Category: Security operations | HAYTECH SOLUTIONS
Key points
  • Japan’s reporting duty is triggered when a leak may have occurred. “Suspected but unconfirmed” is reportable. If logs cannot show there is no trace of theft, you have to act on the worst case.
  • Default retention is 90 days for AWS CloudTrail event history, 30 days for Google Cloud’s default bucket, about 6 months for Google Workspace, 180 days for the Microsoft 365 audit log, and 1 hour to 30 days for Vercel runtime logs depending on the plan.
  • The median time from intrusion to discovery is 14 days, but 25 days when an outside party tells you, and 122 days for espionage-type intrusions (M-Trends 2026). Keep authentication, admin-action and access logs for at least a year.
  • The cheap approach has three parts: export to separate storage, make it undeletable, and keep personal data out of logs. Then 30 minutes a week checking six signals helps both early detection and the reporting decision.
Legal points are based on the Personal Information Protection Commission’s guidelines (general rules) and Q&A, and retention periods on each vendor’s official documentation, all checked as of October 29, 2026. Retention changes with plans and settings. Please check the linked pages for the latest. This article is not legal advice.

Why logs are a legal matter, not just a technical one

Under Japan’s Act on the Protection of Personal Information, certain incidents in which personal data “has leaked, or may have leaked” (sensitive data, risk of financial harm, malicious intent, or more than 1,000 people) must be reported to the Personal Information Protection Commission and notified to the individuals. The key word is “may have.” Section 3-5-3-1 of the guidelines defines it as a case where, based on the facts known at the time, a leak is suspected but not confirmed. In other words, “we don’t know whether it was stolen” is itself a reportable state.

The same section’s notes list examples of a cyber attack that counts as “may have leaked”: traces that data was stolen through unauthorized access to a server or device, traces that files behind an input form were tampered with to steal what people typed, and a well-founded warning from a third party such as a security agency. Whether such traces exist is determined from logs. Without logs the answer is not “no traces” but “cannot be confirmed.”

The Commission’s Q&A (Q6-17) says that detecting malware on a server holding personal data does not by itself mean a leak may have occurred; you also consider whether defenses blocked the malware from running and whether outbound communication was blocked. To say “nothing went out,” you need communication records.Source: PPC Q&A Q6-17

Deadlines are short: a preliminary report within roughly 3 to 5 days of learning of the incident, and a final report within 30 days (60 days where malicious intent is suspected). Within those few days you must decide how many records may have been viewed and by whom. Without logs, you end up treating every record you hold as affected and deciding on notification and disclosure on that basis. Vietnam has a 72-hour report to the authorities, and the logic is the same. See breach reporting deadlines in Japan and Vietnam.

The logs you assumed were there are gone: default retention of major services

Few companies remember ever deciding a retention period. If you are on the defaults, this is what the official documentation says.

ServiceDefault retentionTo keep longer
AWS CloudTrail (event history)The past 90 days of management events. Data events (such as S3 object operations) are not includedCreate a trail that delivers to S3. Cost is mostly S3 storage
Google Cloud (Cloud Logging)The default bucket keeps 30 days; Admin Activity audit logs sit in a dedicated bucket for 400 days. Data Access audit logs are disabled by default except for BigQueryExtend the default bucket’s retention or sink logs to Cloud Storage. Data Access logs must be enabled
Google Workspace (admin console audit logs)Login, admin and Drive log events are kept 6 months; others “generally 6 months”Export to BigQuery (higher editions) or periodically export CSV and archive it
Microsoft 365 (unified audit log)Audit (Standard) keeps 180 days (records generated on or after October 17, 2023). Audit (Premium), e.g. E5, keeps core services for one yearRetention policies up to 10 years (licence conditions apply), or periodically export search results and archive them
Vercel (runtime logs)Hobby 1 hour, Pro 1 day, Enterprise 3 days; 30 days with Observability PlusUse Log Drains to send logs to external storage
Rental servers and servers set up by a web agencyAccess logs are often rotated away after days to weeks. Check “access log” or “log settings” in the control panelDownload periodically to a separate location, and ask your agency how many days are kept

Thirty days is the real trap. According to Mandiant’s M-Trends 2026, the median time from intrusion to discovery is 14 days, but 25 days when an outside party notifies you, and 122 days for espionage-type intrusions. With 30 days of logs, the day of entry has likely already been deleted by the time someone tells you, so you cannot trace what was taken. JPCERT/CC’s log analysis guide likewise notes that even where logs were collected, cases often could not be fully explained because logs did not cover a sufficient period.

What to keep, and for how long

You do not need to keep every log forever. Keep the kinds that answer “who, when, from where, what” for longer than it typically takes to discover an incident. Guideline periods are below. Some standards go further, for example PCI DSS for card payments requires 12 months with the most recent 3 months immediately available; industry regulations take precedence where they apply.

Log typeExamplesSuggested retention
AuthenticationLogin success and failure, MFA used or not, password changes, source IP1 year or more
Admin actionsGranting and changing permissions, issuing API keys, configuration changes, adding and removing users1 year or more
Cloud audit logsCloudTrail, Cloud Audit Logs, Microsoft 365 audit log1 year or more
Web access logsWhich URL, from where, when, how many times, including hits on admin screens and APIs1 year
Data movementStorage object operations, bulk downloads, exports1 year
Application error and runtime logsExceptions, timeouts, function invocations90 days to 1 year

For reference, NIST SP 800-92 (Guide to Computer Security Log Management) frames log management as setting policy for each stage: generation, transmission, storage, analysis and disposal. For a small company, the first thing to decide is simply the storage period and location.

Five ways to keep a year of logs cheaply and reliably

  1. Pick one storage location and export to it. On AWS, send a CloudTrail trail to S3; on Google Cloud, sink logs to Cloud Storage; on Vercel, use Log Drains to the same place. For services with limited export options, such as Workspace or Microsoft 365, a monthly CSV export is fine. Compressed text is cheap: a few GB costs on the order of tens of yen to a few hundred yen a month.
  2. Set both “delete after one year” and “cannot be deleted for one year.” Use lifecycle rules for automatic deletion, and at the same time use S3 Object Lock or Cloud Storage Bucket Lock so nobody can delete logs during the retention period. The first thing an intruder does is delete logs.
  3. Keep the storage in a separate account with separate permissions. Even if production servers or an admin account are taken over, the log storage should allow writing only, not reading or deleting.
  4. Synchronize clocks. If server clocks drift, you cannot correlate logs from different systems. Sync with NTP and record in one time zone, UTC or Japan time.
  5. Keep personal data out of logs. Writing names, email addresses, passwords or card numbers in plain text makes the logs themselves personal data and widens what can leak. Log identifiers only, and mask where needed. Once you have set a retention period, deleting on schedule matters just as much.

What to check in 30 minutes a week with the logs you keep

Keeping logs does not by itself prevent incidents. Checking just these six signals once a week catches most takeovers and misconfigurations within days. All can be checked in the cloud console or with a simple search over exported logs.

  • Logins from abroad or unfamiliar countries (compare with staff travel and VPN use)
  • Successful logins without MFA, and bursts of failed attempts
  • Actions performed as root or an administrator (these should not appear in daily work)
  • New API keys, access keys or app integrations
  • Unusual bulk downloads or exports (storage, CRM, shared drives)
  • Unfamiliar new servers, users or public settings (public buckets, new virtual machines, shared links)

For a company without IT staff, it is realistic to outsource both the export setup and the weekly check. Our Security & IT Support covers setting up storage, the weekly review, and first response when something looks wrong. To decide what to hand over first, contact us for a free consultation. Intrusions caused by outdated software are closed off first through our vulnerability and EOL service.

Checklist

  • Listed, for each cloud, SaaS and server, how many days of logs are kept
  • There is a storage location that keeps authentication, admin-action and access logs for at least a year
  • The storage uses separate permissions and cannot be deleted during the retention period
  • Logs that are off by default, such as Google Cloud Data Access audit logs, have been enabled
  • Server clocks are synchronized
  • Logs do not contain names, email addresses, passwords or card numbers in plain text
  • Someone is assigned to check the six signals every week
  • There is a procedure to judge whether a leak may have occurred from the logs and file a preliminary report within 3 to 5 days

Frequently asked questions

Doesn’t keeping logs longer create its own leak risk?

Yes, which is exactly why the three rules go together: keep personal data out, restrict access to the storage, and delete when the period ends. Identifiers, IP addresses, the type of action and the time are almost always enough for an investigation.

Our website is run by an agency. Where do we start?

Ask three questions: how many days of access logs are kept, whether admin-login records are available, and whether a copy can be delivered to your side. If the answers are vague, the retention period is probably undefined, so put a retention period and an obligation to hand over logs in an incident into the contract.

How much does a year of cloud logs cost?

For a small site, compressed logs come to a few GB to a few tens of GB per year. Object storage costs a few yen per GB per month, so a year is on the order of a few hundred to a few thousand yen. The real question is who does the initial setup, not the cost.

Summary

Logs are not “records you might look at later.” They are the evidence that decides whether you can say “nothing leaked” after an incident. Default periods of 30 or 90 days can be shorter than the time it takes to notice an intrusion. Pick one storage location and export, make it undeletable, keep personal data out, and spend 30 minutes a week looking. Those four steps make you a company that can answer, at almost no cost.

IT SUPPORT

Not sure what your own environment runs on?

With our Security & IT Support, you can hand over everything from inventorying the technologies and versions you use to checking them against vulnerability information, applying fixes and verifying after updates. It is a monthly subscription (quasi-mandate contract) of 5–15 hours a month from US$200/month, with Japanese-language support and only a 2-hour time difference from Japan.

Free consultation & inquiries

In a 30-minute online consultation, we’ll check together whether this article applies to your environment. A consultation alone is perfectly fine.

Contact us (free consultation)

You can also book a 30-minute online consultation with this form.

Please read our Privacy Policy before sending. We do not ask for your phone number.

Any IT question is welcome.
Feel free to get in touch.

Free 30-minute consultation ›Security maintenance details ›