ITShield Insights

How long to keep security logs

Estimated Reading Time =

2 minutes

Technical Level =

Advanced

Threat Level =

Medium

Attack Type =

Other

Editorial illustration for how long to keep security logs

What you will learn

What you will learn

Retention is an operational decision about which events must remain available, for how long, and at what cost and sensitivity. Connect the window to incident questions and real search capability.

Security log retention is a decision about how long useful records remain available. Keeping everything forever can create cost and privacy problems, while keeping too little can prevent an investigation. The right period depends on the events, service, response needs, and applicable obligations.

Understand the idea

Name the questions the records must answer and how far back the team may need to look. Consider collection delays, detection delays, storage protection, retrieval time, and relevant contractual or legal requirements. Different sources may need different arrangements. A single number without that context is difficult to justify.

A simple way to follow the process
  1. Need

    Identify how far back an investigation may need to look.

  2. Storage

    Distinguish searchable data from archived records.

  3. Test

    Retrieve an older event and check its usefulness and access controls.

A practical example

Imagine a team discovering account misuse two weeks after it began, while the required sign-in records were kept for only seven days. It reviews that gap against investigation needs and privacy requirements, then updates retention and access through a documented decision.

Visual guide: How long to keep security logs
Identify how far back an investigation may need to look. Distinguish searchable data from archived records. Retrieve an older event and check its usefulness and access controls.

What to do next

  1. Retrieve a known older event from each important source.
  2. Confirm its fields, time zone, integrity, and access restrictions.
  3. Measure restoration or archive-search delay and cost.
  4. Check that planned deletion and approved holds work as intended.

How to check the result

Retrieve an older known event and check completeness, timing, and permissions. Confirm that expiry and deletion work as intended as well as that recent records are searchable.

The storage policy says 90 days. Is the evidence usable for 90 days?

Test the actual old end of the window. Data may exist but be incomplete, inaccessible, or too slow to retrieve for the intended response.

Sources and useful guides

The following resources provide background and more detailed guidance. Use the sections that match your service and situation.

Scroll to Top