惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

SecWiki News
SecWiki News
量子位
The Cloudflare Blog
美团技术团队
T
The Exploit Database - CXSecurity.com
博客园 - 【当耐特】
Spread Privacy
Spread Privacy
P
Proofpoint News Feed
C
CXSECURITY Database RSS Feed - CXSecurity.com
博客园 - 三生石上(FineUI控件)
T
Tor Project blog
博客园 - 司徒正美
宝玉的分享
宝玉的分享
T
Threatpost
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
S
Secure Thoughts
T
Threat Research - Cisco Blogs
Hacker News: Ask HN
Hacker News: Ask HN
Jina AI
Jina AI
博客园 - 聂微东
A
Arctic Wolf
I
Intezer
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Know Your Adversary
Know Your Adversary
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
爱范儿
爱范儿
Hugging Face - Blog
Hugging Face - Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
小众软件
小众软件
T
Tailwind CSS Blog
The Hacker News
The Hacker News
L
LINUX DO - 最新话题
Hacker News - Newest:
Hacker News - Newest: "LLM"
WordPress大学
WordPress大学
S
SegmentFault 最新的问题
TaoSecurity Blog
TaoSecurity Blog
Project Zero
Project Zero
博客园 - 叶小钗
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Cloudbric
Cloudbric
雷峰网
雷峰网
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
大猫的无限游戏
大猫的无限游戏
D
Darknet – Hacking Tools, Hacker News & Cyber Security
T
Troy Hunt's Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
V2EX - 技术
V2EX - 技术
The GitHub Blog
The GitHub Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
P
Privacy & Cybersecurity Law Blog

The Eclectic Light Company

Hero or hooligan: Theseus’ later years BSD flags are incompatible with iCloud Drive Apple has released macOS Tahoe 26.5.1 In memoriam Mary Cassatt: 1, 1868-1880 Solutions to Saturday Mac riddles 362 What Location Services do in macOS Eclectic paintings of Joseph Stella: 2 European myths Last Week on My Mac: Razzle and dazzle Eclectic paintings of Joseph Stella: 1 American landscapes Saturday Mac riddles 362 Protect files with the Locked or Immutable flag Reading Visual Art: 252 Dragonfly What happens in the log when an app crashes as it starts up? Portraits of trees: Introduction On Reflection: Conclusions and contents Which tasks require mains power? Medium and message: Vast canvases Online reference to external displays for Apple silicon Macs What’s in that phishing email? Hero or hooligan: Theseus and Ariadne Solutions to Saturday Mac riddles 361 How to search document versions Rubens’ Consequences of War Rubens’ Peace and War Saturday Mac riddles 361 How to search Time Machine backups? Naturalists: Contents and artists On Reflection: Extending the image Tackle QuickLook problems Medium and message: Pottery Hero or hooligan: Theseus and the sandals How QuickLook provides thumbnails and previews Last Week on My Mac: Syncing metadata in iCloud Drive Paintings of visits to India 1778-1877 Saturday Mac riddles 360 Naturalists: Sorolla and Zorn On Reflection: Pierre Bonnard 1909-1946 SpotTest 1.2 can display Spotlight metadata directly On Reflection: Pierre Bonnard 1899-1908 How to preserve versions, and how to create versioned PDFs Medium and message: Sculpture What gets synced in iCloud Drive? Hero or hooligan: Perseus 2 Solutions to Saturday Mac riddles 359 Last Week on My Mac: snapshots, the elephant in APFS Paintings of Beatrice Portinari: to 1862 Saturday Mac riddles 359 Naturalists: Into the 20th century How to check whether Spotlight is getting the right metadata On Reflection: Mirror play Hero or hooligan: Perseus 1 The bicentenary of Frederic Edwin Church: 1857-77 Solutions to Saturday Mac riddles 358 macOS virtual machines and audio-video syncing A walk in the parks of Rome, Vienna, Manhattan and Brooklyn Saturday Mac riddles 358 Naturalists: Photography Use Finder tags for categories Control what gets written to the log Medium and message: Tapestry Virtualisation on Apple silicon Macs is different Jerusalem Delivered: Overview and contents The bicentenary of Frederic Edwin Church: 1849-57 Solutions to Saturday Mac riddles 357 Painting Pandora and her box: 1883-1919 Painting Pandora and her box: 1550-1882 Saturday Mac riddles 357 Reading Visual Art: 250 Winged sandals The secret life of the xattr The macOS Natural Language framework and Nalaprop Medium and Message: Stained glass The MACL extended attribute Jerusalem Delivered: 13 Leading characters Solutions to Saturday Mac riddles 356 Privacy: How locations are protected Painting Spring blossom 2 Last Week on My Mac: Don’t be a victim of fraud Painting Spring blossom 1 Saturday Mac riddles 356 Explainer: Recovery Reading Visual Art: 249 Mask Naturalists: Urban poverty On Reflection: Cézanne Privacy: Which folders are protected in Tahoe? Medium and Message: Mosaic Jerusalem Delivered: 12 Delivery Solutions to Saturday Mac riddles 355 Centaurs 2: Revenge Centaurs 1: Fights Saturday Mac riddles 355 Explainer: sandboxes Naturalists: The modern meal Why you can’t trust Privacy & Security Apple has just released an update to macOS Tahoe, to version 26.4.1 On Reflection: Divisionism Please help update CPU frequencies for Apple silicon Macs Commemorating the centenary of the death of John Ferguson Weir Privacy: Files & Folders or Full Disk Access? Jerusalem Delivered: 11 Into Jerusalem Privacy: protected folders
Explainer: sysdiagnose and logarchives
hoakley · 2026-06-27 · via The Eclectic Light Company

If you’ve ever reported a bug or problem to Apple, either as a developer using Feedback, or through Apple Support, there’s a rite of passage you may be familiar with, the dreaded sysdiagnose. System Diagnostics, as it’s more properly named, gathers together almost every piece of even vaguely diagnostic information about your Mac and what it has been doing for the last hour or more, in a large GZipped archive for Apple’s engineers to rake through looking for clues.

When you have a few minutes to spare, make one for yourself, unarchive it, and browse its contents. You’ll be surprised at some of the information it contains, particularly on Apple silicon Macs with AI in active use. Apple does warn those asked to submit sysdiagnoses that they do contain personal information, but if you’re a developer and submit a Feedback without one, you will be asked to provide it, even when it’s obviously not relevant to your report.

Create a sysdiagnose

There are three ways to create a sysdiagnose for a Mac:

  • Using both hands, press Command-Option-Control-Shift-. [period or stop] at the same time.
  • In Activity Monitor’s toolbar, open the … [ellipsis] menu and select the System Diagnostics command.
  • In Terminal, type the command sudo sysdiagnose, although I prefer using sudo sysdiagnose -f ~/Documents to save the archive in my Documents folder. You will be shown a stern warning and have to press Enter to confirm you really do want to create the archive.

Several minutes later, you should be shown where the sysdiagnose archive has been saved, normally in /var/tmp/ unless you use the -f option at the command line.

You can also run sysdiagnose on Apple devices, for example using these instructions by Addigy for iOS or iPadOS. For most of us, this is the only practical way to obtain log records from a device.

When you have unarchived your sysdiagnose, look inside its contents for system_logs.logarchive, as that is a complete copy of your Mac’s log records for the last hour or more.

Logarchives

Logarchives are bundles containing the contents of the two folders /var/db/diagnostics and /var/db/uuidtext, where macOS stores the contents of its Unified log. You can also make them directly using the log collect command such as
log collect --output ~/Documents/my.logarchive --last 5m
to create a logarchive in that bundle for the last 5 minutes of log records. One quirk of this command is that it refuses to write logarchives to external storage (unless it’s the boot disk), even when Terminal has been given Full Disk Access. It’s simple to cheat your way around that, though, by saving the logarchive somewhere on your Data volume, then copying it from there.

Recent versions of my free log browser LogUI can also cobble together a logarchive bundle from copies of those two folders, as described here. This also enables you to create logarchives from full backups years after they were stored. Time Machine and most good backup utilities back up the two folders you can use to build a logarchive using LogUI, unless they are explicitly excluded from backups.

Although the bundled macOS log browser Console can’t look back at previous entries in the live log, it can open and display entries in a logarchive. My own LogUI and Ulbow can do both, but don’t display a live log stream as Console can.

Because of the attrition that takes place in log entries, a logarchive isn’t as comprehensive an account of log activity as directly accessing the live log immediately after an event. In the first five minutes after something has been recorded in the log, nearly 20% of entries are lost. Catching entries in an extract just a few seconds after it happened can retain important details that could be lost in a later logarchive or sysdiagnose.

However, a logarchive is a permanent record that you can return to years afterwards. I still have some saved from macOS Sierra, soon after the Unified log was introduced, and they remain accessible from current log browsers, including my own. The general rule is that you should always be able to access an older logarchive than the version of macOS you’re using, but forward compatibility isn’t guaranteed.

This will be particularly important in the future, as trying to access logarchives made by macOS 27 is only going to be possible from macOS 26.2 or later, according to Apple’s release notes. That also applies to logarchives saved in sysdiagnoses written by Apple devices. If you perform forensic or other analyses requiring access to logarchives written by iOS or iPadOS 27, you will therefore need a Mac running at least macOS 26.2.