UTMStack

Articles14 min read

Firewall Log Retention Period: How Long to Keep Firewall Logs

By UTMStack Team

UTMStack blog: Firewall log retention

Firewall logs are often among the largest logs a company has, which makes them a common first cut when disks fill up. Many firewalls keep only a few days or weeks on the device itself. Then an incident comes to light months later, and the record of which inside machine talked to which outside address is gone. The question “how long should we keep firewall logs?” sounds simple, but the answer depends on which rules you are under, and most of them never mention firewalls by name.

This guide gives the firewall log retention period each common rule sets, what to do when a rule sets no number, how much storage the answer costs, and how to write it down as a policy. We build UTMStack, a SIEM (security information and event management) tool that stores firewall logs, so weigh our view accordingly.

The short answer: keep firewall logs for at least 12 months, with the most recent months searchable right away: at least three months under the Payment Card Industry Data Security Standard (PCI DSS) Requirement 10.5.1, and six months for United States federal agencies under OMB memo M-26-14, which asks for 6 months searchable and 12 months retrievable. Twelve months also meets the one-year minimum in the FBI’s CJIS Security Policy for criminal justice data. If you hold a New York financial services license, keep them for three years, because 23 NYCRR 500.6 sets three years for cybersecurity audit trails. HIPAA, SOX, SOC 2, ISO 27001, GDPR and NIS2 set no fixed number for logs, so you choose a period and write down why. Whatever you choose, keep the copy somewhere other than the firewall, because the device’s own storage is small and overwrites itself.

Minimum log retention that applies to firewall logs

Rules and frameworks that state a number, in months

Binding on the organizations it coversVoluntary framework
CIS Controls v8.1, Safeguard 8.10 (90 days)3
OMB M-26-14 (6 searchable)12
PCI DSS 10.5.1 (3 immediately available)12
CJIS Security Policy, AU-1112
NYDFS, 23 NYCRR 500.636
CIS Controls is a voluntary framework, shown in gray; the others are binding on the organizations they cover. HIPAA, SOX, SOC 2, ISO 27001, GDPR and NIS2 set no number for logs.

Firewall log retention requirements by rule

Most rules talk about “audit logs” or “audit trails” for the systems in scope, not about firewalls. A firewall that protects or sits inside the scoped environment is one of those systems, so the general logging rule applies to it. The table below gives the period each rule sets and what it means for firewall logs.

RuleWhat it saysFirewall log period
PCI DSS v4.0.1, Requirement 10.5.1Keep audit log history for at least 12 months, with at least the last three months immediately available for analysis12 months, 3 of them immediately available
NYDFS, 23 NYCRR 500.6Keep audit trails designed to detect and respond to cybersecurity events for at least three years. Small covered entities under 500.19(a) are exempt from 500.63 years
FBI CJIS Security Policy v6.1, AU-11Keep audit records “for a minimum of one (1) year or until it is determined they are no longer needed” for administrative, legal, audit or other operational purposesAt least 1 year
OMB M-26-14 (federal agencies)Logs searchable for at least 6 months and retrievable for at least 12 months6 months searchable, 12 months in total
DFARS 252.204-7012 (defense contractors)After you report a cyber incident, preserve the relevant monitoring and packet capture data for at least 90 days90 days after a report, so your normal period must reach back far enough to cover the incident
CIS Controls v8.1, Safeguard 8.10 (voluntary)“Retain audit logs across enterprise assets for a minimum of 90 days.” Part of Implementation Groups 2 and 390 days
HIPAA Security RuleAudit controls are required, but no log retention period is set. Required documentation is kept six yearsYour documented policy
SOXNo log retention period. The seven years people quote applies to the auditor’s own workpapersYour documented policy
SOC 2No fixed period. The auditor tests controls over the report periodAt least the report period plus fieldwork
ISO/IEC 27001:2022Annex A control 8.15 asks for logs to be produced, stored, protected and analysed. We found no fixed period in itYour documented policy
GDPRNo number. Personal data in logs must not be kept longer than neededA justified, documented period
NIS2, Regulation (EU) 2024/2690For the digital providers it covers, Annex point 3.2.5 says to keep and back up logs “for a predefined period”, and point 3.2.3 names firewall logsYour documented policy

Two patterns stand out. First, the rules that do give a number cluster around one year, and only NYDFS goes beyond it. Second, where a rule sets no number, it still expects you to set one, write it down and follow it. An auditor will ask to see the policy, then ask you to pull a log from the oldest month it promises.

For the detail behind each row, see our guides to PCI DSS logging requirements, NYDFS logging requirements, CJIS logging requirements, HIPAA log retention and SOX log retention.

When no rule sets a number

If none of the rules above applies to you, you still need a period. NIST’s main security control catalog, SP 800-53, only says to keep audit records for a period your organization defines, in line with its records policy (control AU-11). NIST’s 2006 log management guide, SP 800-92, offered starting points in Table 4-1: 1 to 2 weeks for low-impact systems, 1 to 3 months for moderate and 3 to 12 months for high, and warned not to adopt them as-is. Its planned replacement, still a draft from 2023, gives no numbers at all.

Three practical questions set the floor better than any table:

  1. How long does it take you to notice an incident? If an intrusion can go unseen for weeks, a 30-day or 90-day window means the first days of it are already deleted when you start looking. Mandiant’s M-Trends 2026 report found a median of 14 days before detection in 2025, and 122 days for espionage and North Korean IT worker cases. IBM’s 2026 Cost of a Data Breach study found organizations took an average of 183 days just to identify a breach. Mandiant also advises keeping network device administrative logs for at least a year.
  2. How long do outside requests take to reach you? Abuse complaints, legal requests and insurer questions about a past date often name a public address and a time. Only the firewall’s address translation logs tell you which inside machine used that address then.
  3. What do your contracts say? Customer contracts, cyber insurance policies and parent companies sometimes set their own logging terms, and they can be stricter than the law.

For most organizations without a named rule, those questions also land on 12 months. It covers the slow discoveries, it matches what auditors are used to, and it costs far less than keeping everything for years.

Why the firewall itself is not your retention

Firewalls do keep logs, but they are built to filter traffic, not to store it. Their own storage is small and fills quickly when traffic logging is on, and when it fills, the oldest entries are overwritten.

The vendors’ own documentation shows how short local storage can be:

  • Fortinet FortiGate. A FortiGate that logs only to memory loses those logs at every restart. With a disk, FortiOS 7.4 deletes disk logs older than seven days by default.
  • Palo Alto Networks. When a log type reaches its storage quota, the firewall deletes the oldest logs of that type, even if no expiration period is set.
  • Netgate pfSense. The default log file is 500 KiB, which holds about 2,000 to 3,000 entries. On a busy firewall that can be only minutes of traffic.
  • Cisco Meraki. The dashboard guarantees only 30 days of event log history and keeps intrusion detection events for 15 days. Meraki points to a syslog server for longer.

There is a second reason to keep the copy elsewhere. Anyone who gains administrator access to the firewall can clear its local logs, and attackers aim at these devices. Verizon’s 2025 Data Breach Investigations Report found that edge devices and VPNs made up 22% of the targets of vulnerability exploitation, almost eight times the year before. A copy sent off the device as each event happens, to a server the firewall’s administrators cannot change, survives that. Most rules ask for exactly this: PCI DSS 10.3.3, for example, asks for audit logs to be backed up promptly to a secure, central, internal log server or other media that is difficult to modify.

Where a firewall log should live

A 12-month policy with the last three months on fast storage

  1. On the firewallA small local store, overwritten when full
  2. Sent as it happensSyslog to a central log server, seconds after the event
  3. Hot storageMonths 1 to 3Fast search for daily work and investigations
  4. Cold storageMonths 4 to 12Cheaper disks or object storage, still searchable
  5. DeletedBy the retention clock, unless a legal hold keeps it
Illustration. The split of three months fast and nine months slower matches PCI DSS 10.5.1; your own rule may set longer periods.

What to keep, and for how long

Not every firewall log line is worth the same. Keep them all for the period your rule sets if you can afford the disk, because in an investigation you rarely know in advance which lines you will need.

Log typeWhy you need itKeep for
Administrator logins and configuration changesShows who changed a rule and when, the first thing asked after an incidentThe full period
VPN logins and failuresRemote access is a common way in, and stolen VPN credentials look like normal loginsThe full period
Threat, intrusion prevention and antivirus eventsWhat the firewall already judged suspiciousThe full period
Denied connectionsShows scanning and blocked attempts, usually small in volumeThe full period
Allowed sessionsShows what actually got through, including data leaving and connections to attacker serversThe full period if disk allows; this is the type teams cut first
Address translation (NAT) recordsMaps a public address and time back to the inside machineThe full period, and longer if you get legal requests

If you must cut, cut by sampling or summarising allowed sessions for older months, and never cut administrator, VPN, threat or translation logs. Do the cutting on the firewall, by choosing what it sends, so the policy is written in one place.

How much storage firewall log retention takes

Firewall volume depends mostly on whether you log allowed traffic. A small office firewall that logs only threats and denies may send a few events per second; a busy one logging every allowed session can send thousands.

The math is simple: gigabytes per day equal events per second, times the average event size in bytes, times 86,400 seconds, divided by one billion. A firewall averaging 50 events per second at 500 bytes per event produces about 2.16 GB of raw logs a day. The chart below shows what that one firewall needs for three common periods.

Raw storage for one firewall's logs

50 events per second at 500 bytes each, about 2.16 GB a day, before compression

90 days194 GB
12 months788 GB
3 years2.37 TB
Illustration, not a measurement. A firewall that sends four times as many events needs four times the storage: about 3.15 TB for 12 months at 200 events per second.

Two things change the real number. Compression in your log store shrinks it, by an amount that depends on the product. And a cheaper cold tier for older months changes the cost far more than the size: the PCI DSS split of three months fast and nine months slower fits this well. Our SIEM sizing calculator runs the same math for all your sources at once.

A short firewall log retention policy template

A policy does not need to be long. It needs to say what is kept, for how long, where, and who can delete it. Adapt this outline:

  1. Scope. All firewalls, VPN gateways and web application firewalls in the environments named in section 2.
  2. Rules that apply. For example PCI DSS 10.5.1 for the card data environment and 23 NYCRR 500.6 for New York licensed entities.
  3. Retention period. For example, 12 months for all firewall logs, the most recent three months on fast storage and the rest in searchable cold storage. Three years where NYDFS applies.
  4. What is logged. Administrator activity, configuration changes, VPN logins, threat events, denied and allowed sessions, and address translation.
  5. Where logs are kept. Sent from each device as events happen to the central log server, with all clocks synchronised to one time source.
  6. Protection. Only named roles can read logs, nobody can edit them, and deletion happens only at the end of the retention period.
  7. Legal hold. When an incident, lawsuit or investigation starts, the relevant logs are kept until the hold is lifted in writing.
  8. Review. Once a year, someone pulls a log from the oldest month the policy promises.

How UTMStack fits, and where it stops

UTMStack collects firewall logs, checks them for threats and keeps them for the period you set:

  • Firewall parsers. Fortinet FortiGate and FortiWeb, Palo Alto Networks, SonicWall, Sophos Firewall, Cisco ASA, Firepower and Meraki, pfSense and MikroTik RouterOS send syslog to the UTMStack Forwarder over UDP, TCP or TLS, each integration on its own listening port. See the integrations list, or our MikroTik guide for one setup end to end.
  • Retention in days, with cold storage. You set how many days records are kept; a fresh install keeps logs and alerts for 730 days. Older records can move to cold storage, such as an S3-compatible object store, and are searched from the same place, a little slower, with nothing to restore. See log management.
  • Detection as logs arrive. More than 600 detection rules mapped to MITRE ATT&CK check each event against the rules for its source as it arrives. Firewall rules mostly cover threats the firewall already flagged and failed administrator and VPN logins, from 3 to 11 rules per product. MikroTik rules also catch router changes attackers make, and Meraki rules cover rogue wireless access points.
  • Pricing that does not punish logging. UTMStack is priced per device, never by log volume, so logging allowed traffic changes your disk, not your licence. See pricing or ask for a quote.

Four limits to know:

  • One period for all logs. Retention is set per dataset, such as logs and alerts, not per log source. To keep less of one firewall log type, choose what the firewall sends.
  • One period per server. Only a platform administrator can change retention, and it applies to every tenant on that server. Service providers who need different periods per customer need separate servers.
  • Cold storage is one way. Once a dataset uses cold storage, it cannot go back to local disk only. Deletion runs on whole monthly blocks, so records can stay up to about a month past the day you set.
  • No dedicated parser for some brands, such as Check Point, Juniper, WatchGuard, Barracuda or OPNsense. Since version 12.0.1, a general parser reads the CEF (Common Event Format) and LEEF (Log Event Extended Format) syslog formats some of them send, without firewall-specific rules.

On UTMStack Cloud, plans keep about one month of logs in fast storage and a full year in total, with longer retention added as archive storage.

Frequently asked questions

How long should firewall logs be kept? At least 12 months for most organizations, with the most recent three months searchable at once, or six months for federal agencies. That meets PCI DSS, the CJIS Security Policy and the federal M-26-14 baseline. Keep three years if NYDFS Part 500 applies. If no rule applies, set a period based on how long incidents take to surface, and write it down.

Does PCI DSS require firewall logs? Yes, when the firewall is part of or connected to the card data environment. Requirement 10.2.1 asks for audit logs on all system components in scope, and firewalls are system components. The 12-month history in 10.5.1 then applies to them.

How long does HIPAA require firewall logs to be kept? HIPAA sets no log retention period. It requires audit controls and keeps required documentation, such as policies and risk analyses, for six years. Many healthcare organizations keep logs for one year or more and document why.

What is the difference between retained and searchable? Retained means the logs still exist. Searchable means you can query them now. PCI DSS and M-26-14 both separate the two: three or six months must be quickly available, the rest can sit in slower storage. A searchable cold tier gives you both without a restore step.

Sources