{"id":27332,"date":"2019-11-21T09:34:28","date_gmt":"2019-11-21T14:34:28","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=27332"},"modified":"2019-11-27T16:26:14","modified_gmt":"2019-11-27T21:26:14","slug":"catalinas-log-cant-be-unprivatised","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2019\/11\/21\/catalinas-log-cant-be-unprivatised\/","title":{"rendered":"Catalina&rsquo;s Log Can&rsquo;t Be Unprivatised"},"content":{"rendered":"<p><a href=\"https:\/\/eclecticlight.co\/2019\/11\/09\/catalinas-log-cant-be-unprivatised\/\">Howard Oakley<\/a>:<\/p>\n<blockquote cite=\"https:\/\/eclecticlight.co\/2019\/11\/09\/catalinas-log-cant-be-unprivatised\/\">\n<p>If you&rsquo;ve ever accessed the unified log in macOS Sierra or later, you&rsquo;ll have seen the many log entries whose crucial information is censored with <code>&lt;private&gt;<\/code>. Apple introduced this to prevent leakage of protected information into the log, which is an admirable aim, but unfortunately it makes many entries farcical. If you&rsquo;re really unlucky, the key information for which you&rsquo;re accessing the log in the first place appears there as <code>&lt;private&gt;<\/code>.<\/p>\n<p>Apps like Cirrus have relied on an undocumented setting which can be changed by the command <code>log config --mode 'private_data:off'<\/code> run with root privileges.<\/p>\n<\/blockquote>\n<p>But this no longer works with Catalina.<\/p>\n\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2019\/03\/06\/problems-with-os_log\/\">Problems With os_log<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2016\/10\/27\/sierra-log-littering\/\">Sierra Log Littering<\/a><\/li>\n<\/ul>\n\n<p id=\"catalinas-log-cant-be-unprivatised-update-2019-11-27\">Update (2019-11-27): <a href=\"https:\/\/eclecticlight.co\/2019\/11\/24\/last-week-on-my-mac-private\/\">Howard Oakley<\/a>:<\/p>\n<blockquote cite=\"https:\/\/eclecticlight.co\/2019\/11\/24\/last-week-on-my-mac-private\/\"><p>Hardly any log entries made by <code>diskarbitrationd<\/code> contain usable information in their message field. Trying to diagnose disk, iCloud and OpenDirectory problems from the unified log is almost impossible as a result. For those, we have generally relied on being able to disable log censorship.<\/p><p>In Catalina, Apple has removed that option to disable censorship. Saagar Jha <a href=\"https:\/\/saagarjha.com\/blog\/2019\/09\/29\/making-os-log-public-on-macos-catalina\/\">has discovered<\/a> that the only way to disable censorship now is to put macOS into a special diagnostic mode intended for use exclusively by Apple engineers. George Garside <a href=\"https:\/\/georgegarside.com\/blog\/macos\/sierra-console-private\/\">has packaged<\/a> Saagar Jha&rsquo;s code into a command tool which can be used to remove censorship in Catalina&rsquo;s log.<\/p><p>[&#8230;]<\/p><p>With the spate of iCloud problems reported from those who have upgraded to Catalina, this is particularly ill-timed. It&rsquo;s not as if Apple provides any alternative: iCloud is one service for which it appears to have completely forgotten to provide any diagnostics or utilities.<\/p><p>[&#8230;]<\/p><p>The unified log is not Apple&rsquo;s <code>&lt;private&gt;<\/code> playground. It&rsquo;s a shared space, with users diagnosing problems, developers hunting bugs, support staff fixing glitches, and system administrators managing their networks. For us all to get benefit from our logs, Apple needs to provide a supported means of temporarily disabling this censorship in the unified log. If it won&rsquo;t, then it&rsquo;s time for Apple to admit openly that it doesn&rsquo;t really want anyone else using the unified log.<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Howard Oakley: If you&rsquo;ve ever accessed the unified log in macOS Sierra or later, you&rsquo;ll have seen the many log entries whose crucial information is censored with &lt;private&gt;. Apple introduced this to prevent leakage of protected information into the log, which is an admirable aim, but unfortunately it makes many entries farcical. If you&rsquo;re really [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2019-11-21T14:34:31Z","apple_news_api_id":"4601af65-1897-40ac-9117-01f5ef4576b9","apple_news_api_modified_at":"2019-11-27T21:26:18Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAQ==","apple_news_api_share_url":"https:\/\/apple.news\/ARgGvZRiXQKyRFwH170V2uQ","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[384,30,1666,1504],"class_list":["post-27332","post","type-post","status-publish","format-standard","hentry","category-technology","tag-console","tag-mac","tag-macos-10-15","tag-os_log"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/27332","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=27332"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/27332\/revisions"}],"predecessor-version":[{"id":27432,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/27332\/revisions\/27432"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=27332"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=27332"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=27332"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}