Prerequisites
- Target system, dependencies and environment configured.
Usage
Purpose
SIEMs typically charge by data volume, so "log everything forever" is a fast route to a budget blowout — but under-retaining leaves you unable to detect, hunt, or investigate. Log retention and cost is the balancing act: keep the right data, for the right time, in the right tier of storage. This skill covers making that trade-off deliberately, so security value drives spend rather than the SIEM bill dictating (and quietly gutting) your visibility.
When to use it
Designing or optimising a SIEM deployment, when SIEM costs are escalating, or when retention limits are hurting investigations (you needed logs from 90 days ago and they're gone). It's a recurring tension in every SOC and a place where cost pressure can silently erode security if not managed deliberately.
Procedure
- Understand the drivers of retention need. Three things dictate how long to keep what: detection (recent data for real-time rules), hunting/investigation (weeks to months, because intrusions are often found late — the average dwell time means you need history), and compliance (regulations may mandate specific retention periods). Each source's retention should be driven by which of these apply to it.
- Tier storage by value and access need — the key lever. Not all logs need to be in the expensive, hot, searchable SIEM tier. Route high-value, frequently-queried security logs to the SIEM (hot); send high-volume or lower-value data to cheaper cold/archive storage that's still retrievable when needed. This is how you keep long retention without paying premium ingest for everything.
- Filter and reduce at ingest. Drop or aggregate low-value, high-volume noise before it hits the priced SIEM tier — verbose debug logs, redundant events, health checks. Reducing volume at the source cuts cost without losing security-relevant data (done carefully — don't drop what a detection needs).
- Match retention to dwell time, not just compliance. A common mistake is retaining only for the compliance minimum, then finding an intrusion that started before your window. Because attackers often dwell for weeks or months undetected, retention for investigation usually needs to exceed the bare compliance minimum. Set it by when you'd realistically need the data.
- Keep critical logs longer and protected. Authentication, audit, and high-value security logs warrant longer retention and tamper protection (the auditd/cloudtrail off-host logging discipline) — these are exactly what you need in an incident.
- Monitor and forecast cost. Track ingest volume and cost trends; a new noisy source can spike the bill. Forecasting prevents surprise overruns and the panic response of slashing retention (which cuts visibility).
- Review the balance periodically — sources, volumes, and needs change; revisit what's retained where.
Cheatsheet
SIEM charges by VOLUME -> "log everything forever" = budget blowout
under-retain -> can't detect/hunt/investigate. balance deliberately.
retention drivers (per source)
DETECTION recent data for real-time rules (short)
HUNT/INVESTIGATE weeks-months — intrusions found LATE (dwell time) -> need history
COMPLIANCE regulated minimums (may be specific)
KEY LEVER: TIER storage by value + access need
hot/SIEM (expensive, searchable) <- high-value, frequently-queried security logs
cold/archive (cheap, retrievable) <- high-volume / lower-value data
-> long retention WITHOUT premium ingest for everything
reduce at ingest: drop/aggregate low-value noise (debug/health/redundant) — carefully
match retention to DWELL TIME, not just compliance minimum
(attackers dwell weeks/months -> intrusion may predate a short window)
critical logs (auth/audit): longer + tamper-protected
monitor + FORECAST cost (noisy new source = bill spike) ; review periodically
Reading the trade-off
- Retaining only the compliance minimum = a frequent trap; an intrusion that started before your window can't be investigated because the logs are gone. Match retention to realistic dwell time, which usually exceeds the compliance floor.
- Everything in the hot SIEM tier = paying premium ingest for high-volume low-value data; tiering high-volume logs to cheap archive keeps them retrievable at a fraction of the cost. The main cost lever.
- Cost pressure slashing retention across the board = silently gutting hunting and investigation capability; the response to a bill spike should be tiering and filtering, not blindly cutting the history you need for incidents.
- A noisy new source spiking the bill = why forecasting matters; catch it before it forces a panic cut. Reduce that source at ingest.
- Critical auth/audit logs under-retained or unprotected = exactly the data you need in an incident, missing or tamperable. These warrant longer, protected retention.
- Value-tiered storage, dwell-time-matched retention, ingest filtering, protected critical logs, forecasted cost = the balance — full visibility at sustainable cost.
Pitfalls
- Retaining to the compliance minimum only. Intrusions are found late; if your window is shorter than the dwell time, the investigation hits a wall. Retain for investigation, not just compliance.
- Everything in the expensive tier. Paying hot-tier ingest for high-volume low-value logs blows the budget; tier by value and access need.
- Slashing retention under cost pressure. The knee-jerk fix guts visibility; tier and filter instead of cutting the history you need.
- No ingest filtering. Sending verbose noise to the priced SIEM wastes money; drop/aggregate low-value data at the source (without dropping what detections need).
- Under-retaining or exposing critical logs. Auth/audit logs are incident essentials; keep them longer and tamper-protected.
- No cost forecasting. A noisy source spikes the bill and forces a panic response; monitor and forecast volume.
References
- The log-pipeline-design, detection log-source-coverage, and auditd/cloudtrail logging skills
- NIST SP 800-92 (log management, including retention)
- Compliance frameworks with logging requirements (PCI-DSS, HIPAA, etc.) via the GRC domain
- SIEM vendor pricing/tiering documentation
Inputs
- Relevant source code, logs, network traces, or system specifications.
Outputs
- Analysis findings, security audit report, or generated code artifacts.
1---2name: log-retention-and-cost3description: Use when balancing log retention against SIEM cost — keeping the data you need for detection, hunting, and compliance without paying premium ingest for everything.4---5678## Prerequisites9- Target system, dependencies and environment configured.1011## Usage12### Purpose1314SIEMs typically charge by data volume, so "log everything forever" is a fast route to a budget blowout — but under-retaining leaves you unable to detect, hunt, or investigate. Log retention and cost is the balancing act: keep the right data, for the right time, in the right tier of storage. This skill covers making that trade-off deliberately, so security value drives spend rather than the SIEM bill dictating (and quietly gutting) your visibility.1516### When to use it1718Designing or optimising a SIEM deployment, when SIEM costs are escalating, or when retention limits are hurting investigations (you needed logs from 90 days ago and they're gone). It's a recurring tension in every SOC and a place where cost pressure can silently erode security if not managed deliberately.1920### Procedure21221. **Understand the drivers of retention need.** Three things dictate how long to keep what: **detection** (recent data for real-time rules), **hunting/investigation** (weeks to months, because intrusions are often found late — the average dwell time means you need history), and **compliance** (regulations may mandate specific retention periods). Each source's retention should be driven by which of these apply to it.232. **Tier storage by value and access need — the key lever.** Not all logs need to be in the expensive, hot, searchable SIEM tier. Route high-value, frequently-queried security logs to the SIEM (hot); send high-volume or lower-value data to cheaper cold/archive storage that's still retrievable when needed. This is how you keep long retention without paying premium ingest for everything.243. **Filter and reduce at ingest.** Drop or aggregate low-value, high-volume noise before it hits the priced SIEM tier — verbose debug logs, redundant events, health checks. Reducing volume at the source cuts cost without losing security-relevant data (done carefully — don't drop what a detection needs).254. **Match retention to dwell time, not just compliance.** A common mistake is retaining only for the compliance minimum, then finding an intrusion that started before your window. Because attackers often dwell for weeks or months undetected, retention for *investigation* usually needs to exceed the bare compliance minimum. Set it by when you'd realistically need the data.265. **Keep critical logs longer and protected.** Authentication, audit, and high-value security logs warrant longer retention and tamper protection (the auditd/cloudtrail off-host logging discipline) — these are exactly what you need in an incident.276. **Monitor and forecast cost.** Track ingest volume and cost trends; a new noisy source can spike the bill. Forecasting prevents surprise overruns and the panic response of slashing retention (which cuts visibility).287. **Review the balance periodically** — sources, volumes, and needs change; revisit what's retained where.2930### Cheatsheet3132```33SIEM charges by VOLUME -> "log everything forever" = budget blowout34under-retain -> can't detect/hunt/investigate. balance deliberately.3536retention drivers (per source)37 DETECTION recent data for real-time rules (short)38 HUNT/INVESTIGATE weeks-months — intrusions found LATE (dwell time) -> need history39 COMPLIANCE regulated minimums (may be specific)4041KEY LEVER: TIER storage by value + access need42 hot/SIEM (expensive, searchable) <- high-value, frequently-queried security logs43 cold/archive (cheap, retrievable) <- high-volume / lower-value data44 -> long retention WITHOUT premium ingest for everything4546reduce at ingest: drop/aggregate low-value noise (debug/health/redundant) — carefully47match retention to DWELL TIME, not just compliance minimum48 (attackers dwell weeks/months -> intrusion may predate a short window)49critical logs (auth/audit): longer + tamper-protected50monitor + FORECAST cost (noisy new source = bill spike) ; review periodically51```5253### Reading the trade-off5455- **Retaining only the compliance minimum** = a frequent trap; an intrusion that started before your window can't be investigated because the logs are gone. Match retention to realistic dwell time, which usually exceeds the compliance floor.56- **Everything in the hot SIEM tier** = paying premium ingest for high-volume low-value data; tiering high-volume logs to cheap archive keeps them retrievable at a fraction of the cost. The main cost lever.57- **Cost pressure slashing retention across the board** = silently gutting hunting and investigation capability; the response to a bill spike should be tiering and filtering, not blindly cutting the history you need for incidents.58- **A noisy new source spiking the bill** = why forecasting matters; catch it before it forces a panic cut. Reduce that source at ingest.59- **Critical auth/audit logs under-retained or unprotected** = exactly the data you need in an incident, missing or tamperable. These warrant longer, protected retention.60- **Value-tiered storage, dwell-time-matched retention, ingest filtering, protected critical logs, forecasted cost** = the balance — full visibility at sustainable cost.6162### Pitfalls6364- **Retaining to the compliance minimum only.** Intrusions are found late; if your window is shorter than the dwell time, the investigation hits a wall. Retain for investigation, not just compliance.65- **Everything in the expensive tier.** Paying hot-tier ingest for high-volume low-value logs blows the budget; tier by value and access need.66- **Slashing retention under cost pressure.** The knee-jerk fix guts visibility; tier and filter instead of cutting the history you need.67- **No ingest filtering.** Sending verbose noise to the priced SIEM wastes money; drop/aggregate low-value data at the source (without dropping what detections need).68- **Under-retaining or exposing critical logs.** Auth/audit logs are incident essentials; keep them longer and tamper-protected.69- **No cost forecasting.** A noisy source spikes the bill and forces a panic response; monitor and forecast volume.7071### References7273- The log-pipeline-design, detection log-source-coverage, and auditd/cloudtrail logging skills74- NIST SP 800-92 (log management, including retention)75- Compliance frameworks with logging requirements (PCI-DSS, HIPAA, etc.) via the GRC domain76- SIEM vendor pricing/tiering documentation7778## Inputs79- Relevant source code, logs, network traces, or system specifications.8081## Outputs82- Analysis findings, security audit report, or generated code artifacts.