{"id":12574,"date":"2024-06-24T06:03:25","date_gmt":"2024-06-24T13:03:25","guid":{"rendered":"https:\/\/www.coretechnologies.com\/blog\/?p=12574"},"modified":"2024-06-24T06:03:25","modified_gmt":"2024-06-24T13:03:25","slug":"collecting-onedrive-log-files","status":"publish","type":"post","link":"https:\/\/www.coretechnologies.com\/blog\/onedrive\/collecting-onedrive-log-files\/","title":{"rendered":"Collecting Log Files from the OneDrive Desktop Application"},"content":{"rendered":"<div align=\"center\"><img loading=\"lazy\" decoding=\"async\" class=\"no-lazy-load\" src=\"\/blog\/images\/collect-onedrive-log-files.webp\" style=\"margin-bottom:20px;\" title=\"Collecting Log Files from the OneDrive Desktop Application\" alt=\"Collecting Log Files from the OneDrive Desktop Application\" border=\"0\" width=\"560\" height=\"265\" \/><\/div>\n<p>Are you having a problem running OneDrive as a service with AlwaysUp? Perhaps OneDrive.exe is running but your files aren&#8217;t being synchronized with the cloud?<\/p>\n<p>We know that troubleshooting OneDrive in the isolated Session 0 can be difficult. Even if OneDrive is trying to tell you what&#8217;s wrong by displaying a helpful error message, you can&#8217;t see it.<\/p>\n<h2 class=\"blog-caption\">OneDrive writes encrypted log files for &#8220;internal&#8221; use<\/h2>\n<p>On our quest to provide excellent support for running OneDrive 24\/7, we were happy to discover that OneDrive systematically writes log files describing what it&#8217;s doing. And those files are quite detailed!<\/p>\n<p>But before you start to celebrate like we did, the reality is that the logs are in a <b>proprietary, undocumented binary format<\/b>. They&#8217;re intended for Microsoft engineers &mdash; not mere mortals like you and me.<\/p>\n<p>Fortunately though, that&#8217;s not the end of the story.<\/p>\n<h2 class=\"blog-caption\">We can decode OneDrive&#8217;s encrypted log files<\/h2>\n<p>Even though OneDrive&#8217;s log files are encrypted, <a href=\"https:\/\/github.com\/ydkhatri\/OneDrive\" target=\"_blank\" rel=\"noopener\">Yogesh Khatri&#8217;s OneDrive ODL reader<\/a> can parse them. That free python script will run through a log file and produce a readable CSV file.<\/p>\n<p>Yet even after decoding them, the log entries remain cryptic and difficult to understand. As we mentioned before, that&#8217;s because the contents are meant to be analyzed by the software engineers who support OneDrive.<\/p>\n<p>For example, here&#8217;s what a decoded log file looks like:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/onedrive-odl-file-decoded.png\" class=\"zoomPopup\" title=\"OneDrive: ODL file decoded\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/onedrive-odl-file-decoded.png\" title=\"OneDrive: ODL file decoded (click to enlarge)\" alt=\"OneDrive: ODL file decoded\" border=\"0\" width=\"560\" \/><\/a><\/div>\n<p>As you can see, the lines aren&#8217;t particularly revealing!<\/p>\n<p>In any case, we&#8217;ve found that the decoded logs can sometimes provide <b>interesting clues<\/b> that lead us in the right direction. They&#8217;re better than nothing, which is why we encourage you to send them to us for analysis.<\/p>\n<h2 class=\"blog-caption\">How to send us your OneDrive log files<\/h2>\n<p>Basically, you&#8217;ll zip your OneDrive log folder and email it to us.<\/p>\n<p>To do so, step by step:<\/p>\n<ol>\n<li>\n<p>Open File Explorer<\/p>\n<\/li>\n<li>\n<p>Navigate to the folder where OneDrive stores its logs. It&#8217;ll probably be<\/p>\n<blockquote><p><b><nobr>C:\\Users\\<\/nobr>[USERNAME]\\<nobr>AppData<\/nobr>\\Local\\<nobr>Microsoft<\/nobr>\\<nobr>OneDrive<\/nobr>\\logs<\/b><\/p><\/blockquote>\n<p>where [USERNAME] is your <a href=\"https:\/\/learn.microsoft.com\/en-us\/windows-server\/administration\/windows-commands\/whoami\" target=\"_blank\" rel=\"noopener\">Windows user name<\/a>.<\/li>\n<li>\n<p>If you&#8217;re <a href=\"https:\/\/www.microsoft.com\/en-us\/microsoft-365\/onedrive\/onedrive-for-business\" target=\"_blank\" rel=\"noopener\">using OneDrive with a Microsoft 365 business account<\/a>, look for a subfolder named <b>Business1<\/b>.<\/p>\n<p>On the other hand, if you&#8217;re running OneDrive with your personal account, you&#8217;ll have a subfolder named <b>Personal<\/b>, as pictured here:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/onedrive-personal-log-files-folder.png\" class=\"zoomPopup\" title=\"OneDrive personal log files folder\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/onedrive-personal-log-files-folder.png\" title=\"OneDrive personal log files folder (click to enlarge)\" alt=\"OneDrive personal log files folder\" border=\"0\" width=\"520\" \/><\/a><\/div>\n<\/li>\n<li>\n<p>Copy your subfolder (<b>Business1<\/b> or <b>Personal<\/b>) to a temporary location. We don&#8217;t want to disturb OneDrive.<\/p>\n<\/li>\n<li>\n<p>In the copied folder, remove all files with the <b>.odlsent<\/b>, <b>.odlgz<\/b> or <b>.loggz<\/b> extensions last modified more than 24 hours ago. There may be quite a few, going back days or weeks.<\/p>\n<p>Once you&#8217;ve deleted those older files, you&#8217;ll be left with the recent activity and a few supporting files. For instance, we had 24 files on our machine after cleaning up:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/onedrive-log-folder-cleaned-up.png\" class=\"zoomPopup\" title=\"OneDrive log folder cleaned up\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/onedrive-log-folder-cleaned-up.png\" title=\"OneDrive log folder cleaned up (click to enlarge)\" alt=\"OneDrive log folder cleaned up\" border=\"0\" width=\"520\" \/><\/a><\/div>\n<\/li>\n<li>\n<p><a href=\"https:\/\/support.microsoft.com\/en-us\/windows\/zip-and-unzip-files-f6dde0a7-0fec-8294-e1d3-703ed85e7ebc\" target=\"_blank\" rel=\"noopener\">Zip (compress)<\/a> the folder. Afterwards, you can delete the folder.<\/p>\n<\/li>\n<li>\n<p>Email the zip file to our support team (at <a href=\"mailto:support@CoreTechnologies.com\">support@CoreTechnologies.com<\/a>). We recommend including your <a href=\"\/products\/AlwaysUp\/CollectApplicationDiagnostics\/\">OneDrive diagnostics<\/a> in the email, to tell us how OneDrive is configured on your computer.<\/p>\n<\/li>\n<\/ol>\n<p style=\"margin-top:30px;\">That&#8217;s it. We&#8217;ll do our best to analyze your OneDrive log files and get back to you soon. Wish us luck! &#x1F340;&#x1F91E;<\/p>\n<div style=\"margin-top:30px\" align=\"center\">\n<div class=\"cta-button-1\">\n<table role=\"presentation\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" align=\"left\">\n<tbody>\n<tr>\n<td align=\"center\"><a href=\"\/blog\/tag\/onedrive\/\" title=\"More articles about OneDrive\"><span><nobr>Read more articles about OneDrive&#8230;<\/nobr><\/span><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<!-- relpost-thumb-wrapper --><div class=\"relpost-thumb-wrapper\"><!-- filter-class --><div class=\"relpost-thumb-container\"><style>.relpost-block-single-image, .relpost-post-image { margin-bottom: 10px; }<\/style><h3>You may also like...<\/h3><div style=\"clear: both\"><\/div><div style=\"clear: both\"><\/div><!-- relpost-block-container --><div class=\"relpost-block-container relpost-block-column-layout\" style=\"--relposth-columns: 3;--relposth-columns_t: 2; --relposth-columns_m: 2\"><a href=\"https:\/\/www.coretechnologies.com\/blog\/dropbox-software\/how-to-fix-opengl-problem\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Start Dropbox whenever your PC boots\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/dropbox-logo2-150x150.png\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">How to Fix the &quot;OpenGL&quot; Problem when Running Dropbox as a Windows Service<\/h2><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/survive-automatic-updates\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"How to Survive Automatic Updates when Running 24\/7 with AlwaysUp\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/auto-update-150x150-1.png\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">How to Survive Automatic Updates when Running 24\/7 with AlwaysUp<\/h2><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/onedrive-version-23-48-problem\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"OneDrive Version 23.48: Trouble Running in Session 0 [RESOLVED]\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/onedrive-error-150x150-1.webp\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">OneDrive Version 23.48: Trouble Running in Session 0 [RESOLVED]<\/h2><\/div><\/div><\/a><\/div><!-- close relpost-block-container --><div style=\"clear: both\"><\/div><\/div><!-- close filter class --><\/div><!-- close relpost-thumb-wrapper -->","protected":false},"excerpt":{"rendered":"<p>Are you having a problem running OneDrive as a service with AlwaysUp? Perhaps OneDrive.exe is running but your files aren&#8217;t being synchronized with the cloud? We know that troubleshooting OneDrive in the isolated Session 0 can be difficult. Even if &hellip; <a href=\"https:\/\/www.coretechnologies.com\/blog\/onedrive\/collecting-onedrive-log-files\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":12582,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[204],"tags":[26,110,358],"class_list":["post-12574","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-onedrive","tag-alwaysup-tag","tag-onedrive","tag-onedrive-log-files"],"_links":{"self":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/12574","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=12574"}],"version-history":[{"count":12,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/12574\/revisions"}],"predecessor-version":[{"id":12596,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/12574\/revisions\/12596"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media\/12582"}],"wp:attachment":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=12574"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=12574"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=12574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}