The Mac log store: 829 MB in /var/db/diagnostics, 15 hours of full detail, and one process writing 31% of a day
The short answer: the log store on this Mac is 829 MB, it can't grow past a fixed size, and you can't read most of it, because the full-detail part covers only about 15 hours. You get nothing worth having by deleting it. But reading its size is a good way to spot one app that logs far too much, and we found one.
Everything below was measured on one Mac on 6 December 2026: macOS 27.2.1, a 228 GB disk, read-only commands, no sudo. Your numbers will differ. The commands are the part to copy.
Where the logs are, in numbers
A Mac keeps three kinds of logs. The unified log (what Console shows) lives in <code>/var/db/diagnostics</code>. Its decoder data lives next door in <code>/var/db/uuidtext</code>. The old-style text logs are in <code>/var/log</code>, <code>/Library/Logs</code> and <code>~/Library/Logs</code>. File sizes added up with a script (<code>du</code> rounds up to disk blocks and came out 1 to 2% higher):
| Folder | Files | Size | What it is |
|---|---|---|---|
/var/db/diagnostics/Persist | 51 | 529.3 MB | Everyday log messages, in files of about 10.4 MB |
/var/db/diagnostics/Special | 743 | 282.2 MB | Messages that carry a time-to-live of 1 to 30 days |
/var/db/diagnostics/Signpost | 3 | 5.8 MB | Performance markers |
/var/db/diagnostics (all of it) | 811 | 829.5 MB | Includes about 12 MB of logd's own notes and statistics |
/var/db/uuidtext | 2,365 | 808.0 MB | The text that log messages are built from; 611 MB of it is in dsc |
/var/log | 40 items | 53.5 MB | com.apple.xpc.launchd 17.8 MB, install.log 14.8 MB, one app's log 9.4 MB, powermanagement 7.8 MB |
/Library/Logs | 30.4 MB | 27.9 MB of it is CrashReporter/CoreCapture; crash reports are 1.5 MB | |
~/Library/Logs | 11.0 MB | A backup tool's log 7.0 MB, the App Store content log 2.9 MB |
So the unified log store (829.5 MB) is 8.7 times the three old-style folders together (94.9 MB). Add <code>uuidtext</code> and the logging system is 1.64 GB, or 0.7% of this disk. That's why a crash-log clean-up never moves your free space (we measured those folders in <a href="/articles/mac-diagnostic-reports-crash-logs-find-crash-loop-how-much-space">the crash-log article</a>) and why this one is the bigger folder.
Why it stops growing
Persist is a ring of files. The file names are counters: ours run from <code>0000000000000bf1</code> to <code>0000000000000c23</code>. In hex, that's file 3,057 to file 3,107. So the counter has reached 3,107 and logd keeps the newest 51. When a file fills at about 10.4 MB it starts the next one and the oldest goes.
The same ring explains why Persist is 529 MB and not more, even though far more than that is written. <code>log stats --per-book</code> shows the compression, per part of the store:
| Part | On disk | Uncompressed | Ratio |
|---|---|---|---|
| Persist | 531.1 MB | 1,672.9 MB | 3.2 to 1 |
| Special | 282.4 MB | 243.8 MB | 0.9 to 1 (stored bigger than the raw data) |
| Signpost | 5.8 MB | 17.9 MB | 3.1 to 1 |
| Whole archive | 813.3 MB | 1,945.9 MB | 2.4 to 1 |
The numbers move a little every time you run it, because the log is being written as you read it.
How far back can you read? About 15 hours of detail
The store holds 51 files, and a file lasts about 18 minutes on a busy stretch. We asked <code>log show</code> for five minutes at a time, going back, and counted the lines (minus the one header line it prints):
| Five-minute window | All lines | Errors and faults only |
|---|---|---|
| 5 Dec, 10:30 (inside Persist) | 177,250 | 9,106 |
| 5 Dec, 09:00 (about an hour before Persist starts) | 1,099 | 15 |
| 4 Dec, 09:00 | 3,476 | 114 |
| 30 Nov, 09:00 | 0 | 0 |
| 23 Nov, 09:00 | 0 | 0 |
The oldest Persist file was last written at 10:25 on 5 December and the newest at 01:28 on 6 December, so about 15 hours of full detail. Before that, only messages with a time-to-live survive, which is why 09:00 on the 5th has 1,099 lines and the 30th has none. <code>log stats</code> counts 3.79 million events with a time-to-live (2.56 million for 1 day, 387,000 for 3 days, 480,000 for 7, 335,000 for 14 and 28,000 for 30 days) out of 25.4 million in total. Those ride in Special, and the Persist part of the stats shows zero of them.
The window changes with how chatty your Mac is. The same file counts show 59 to 69 file rotations a day on quiet days (1 to 4 December). At that rate 51 files last 18 to 21 hours. On 5 December there were 81, which is 15 hours. If you need to look at a problem in the log, do it the same day.
How much a day writes
logd leaves a note each time it fills a file, in <code>/var/db/diagnostics/logdata.statistics.0.jsonl</code> (and <code>.1</code>): the time, the bytes and a list of the processes that wrote them. Ours held 2,020 of these, from 15 November to 6 December. Adding them up by day, uncompressed:
| Day | Files filled | Written (uncompressed) | Of that, the Storage process |
|---|---|---|---|
| 18 Nov | 226 | 5,571 MB | 0.2 MB |
| 20 Nov | 180 | 4,762 MB | 0.0 MB |
| 24 Nov | 115 | 3,878 MB | 234.4 MB |
| 28 Nov | 69 | 2,465 MB | 0.0 MB |
| 1 Dec | 66 | 2,332 MB | 0.0 MB |
| 2 Dec | 59 | 2,119 MB | 0.0 MB |
| 3 Dec | 64 | 2,270 MB | 0.0 MB |
| 4 Dec | 65 | 2,332 MB | 0.4 MB |
| 5 Dec | 81 | 3,189 MB | 975.6 MB |
A quiet day here is about 2.3 GB of log, which is 0.7 GB once compressed (our worked figure: 2,263 MB, the average of 1 to 4 December, divided by the 3.2 ratio above). That's more than Persist can hold. So the ring is always full and always throwing the oldest 18 hours out. On a day like 18 November it wrote 5.6 GB.
The one process that wrote 31% of 5 December
<code>log stats</code> with no options lists the processes and senders that wrote the most. Across the whole archive:
| Process or sender | Events | Uncompressed | Share of bytes |
|---|---|---|---|
| Storage (the System Settings Storage pane) | 9.14 million | 835 MB | 42.7% |
| launchd | 2.32 million | 242 MB | 12.4% |
| kernel | 1.14 million | 161 MB | 8.2% |
| cfprefsd | 1.06 million | 65 MB | 3.3% |
| WallpaperAerialsExtension | 0.60 million | 65 MB | 3.3% |
| Sender: CacheDelete | 6.88 million | 538 MB | 27.5% |
| Sender: DiskManagement | 1.99 million | 282 MB | 14.4% |
Storage is the pane behind <b>System Settings > General > Storage</b>. On 5 December it wrote 975.6 MB of that day's 3,189 MB, which is 30.6%. On 24 November it wrote 234 MB. On every other day in the notes it wrote under 2 MB. The two senders behind it, CacheDelete and DiskManagement, are the services that work out what's purgeable. Our reading, which we haven't proved: the pane was left open, and it kept calculating and logging.
It's still going. In the last hour <code>log stats --process Storage --last 1h</code> shows 600,240 events and 54.7 MB, 39.5% of everything written in that hour. The effect on you is concrete: on 5 December the store held 15 hours instead of the 18 to 21 of a quiet day. So if you're about to look into a problem in the log, close System Settings first, and quit the pane if it is open on a Mac you leave running.
Check yours in five commands
Use <code>/usr/bin/log</code>, not <code>log</code>. In zsh, a bare <code>log</code> is a built-in that prints "too many arguments" and does nothing. On our Mac, the diagnostics folder is <code>root:admin</code> with mode <code>drwxr-x---</code> and we're an admin user, so none of this needed sudo. On a standard account, put <code>sudo</code> in front.
Mind the size of what you read. <code>/usr/bin/log show --last 1h</code> printed 1,822,808 lines and 227.8 MB of text in 6.2 seconds on this Mac. With <code>--info --debug</code> it was 2,141,122 lines and 275.5 MB in 7.9 seconds. Don't send a long window to a file: use <code>--last 5m</code>, or add <code>--predicate 'process == "Finder"'</code>, until you know the volume.
What's safe to leave alone, and what isn't worth doing
| Item | Size here | Verdict |
|---|---|---|
/var/db/diagnostics | 829.5 MB | Leave it. It's capped, it's your only record of the last 15 hours, and it refills. |
/var/db/uuidtext | 808.0 MB | Leave it. Without it, log show can't turn the stored records back into text. Its biggest file is 187 MB and the middle one is 3.7 KB. |
/var/log, ~/Library/Logs | 53.5 + 11.0 MB | Leave them unless one file is huge (see the command in the crash-log article). |
/Library/Logs/CrashReporter | 27.9 MB | Diagnostic data; not worth the 28 MB. |
Apple ships a command for the store: <code>log erase</code> (with <code>--all</code>, <code>--ttl</code> or <code>--uuidtext</code>). The man page says it deletes the main log datastore and the in-flight data. We didn't run it, because sudo asks for a password on this Mac, so what follows is arithmetic and not a test. Erasing would free up to 0.83 GB. At 0.7 GB written a day, it would be back to the Persist cap in under a day, and you would have lost the last 15 hours of evidence for nothing.
The better lever is the one we found: a process writing far more than its share. If the top process in <code>log stats</code> is an app you can quit or update, that's where to act. For Storage, it was closing a settings pane.
Related: macOS System Data: what uses it, why it grows, Mac crash logs and DiagnosticReports, Mac sleepimage and swap files and Rosetta 2 and the cache in /var/db/oah.
Zofle, our free Mac app, shows which folders really take your space, so you can tell a 0.8 GB log store that is working as designed from a real hog.
Download Zofle for MacSources
- The
logman page on macOS 27.2.1 (man log):stats,erase,showoptions. - Our own read-only checks on one Mac (macOS 27.2.1), 6 December 2026:
/usr/bin/log stats(default,--per-book,--process,--last 1h),/usr/bin/log showwindows, file sizes summed by script,du -sk, and thelogdata.statistics.*.jsonlnotes in/var/db/diagnostics. - One Mac, one three-week window. The process that dominates your log will be a different one; the commands are the point.
log eraseandlog configwere not run (they need root).
Zofle Pro news
People signing up now will get Zofle Pro, with more features, for free when we launch it.