If you contact Google Workspace support about a Google Drive for desktop issue, you might be asked to send log files to help resolve the problem.
Collect Drive for desktop log files
- On your computer, in the menu bar, click Drive for desktop .
If you can’t open Drive for desktop, use your computer’s tools to collect logs. On this page go to Capture logs when Drive for desktop isn't available.
- Press and hold the Shift key and click Settings Generate Diagnostic Info.
You’ll get a notification when a ZIP file of the logs is saved to your desktop. -
Send the ZIP file to your support agent.
Analyze log files yourself (Optional)
After you capture the log files, you can use the Log Analyzer 2 tool to diagnose your Drive for desktop problems.
- Open Log Analyzer 2.
- Click AutodetectDrive for desktopChoose file.
- Unzip and upload the file.
- Click Analyze.
- (Optional) To look for other issues, you can also try analyzing existing log files, such as drive_fs.txt or drive_fs_1.txt.
Capture logs when Drive for desktop isn't available
Important: Only use these instructions if you can't open Drive for desktop, or you need to collect logs that include sign-in or sign-out events. We recommend that you try collecting Drive for desktop logs in the app first. These logs are easier to collect and usually sufficient for support.
Collect Windows logs for Drive for desktop- Open File Explorer.
- In the URL box, enter %USERPROFILE%\AppData\Local\Google\DriveFS and press Enter.
- Right-click the Logs folderclick ShareZip.
- Send the Logs.zip file to your support agent.
- Open Finder.
- Press Command+Shift+g.
- Enter ~/Library/Application Support/Google/DriveFS and press Enter.
- Right-click the Logs folder and select Compress “Logs”.
- Send the Logs.zip file to your support agent.
Advanced: Capture fine Drive for desktop logs for support
- On your computer, in the menu bar click Drive for desktop .
- Press and hold the Shift key and click Settings .
- Click Enable verbose logging.
- Click Drive for desktop again.
- Reproduce the issue as quickly as possible and note the time the issue occurred.
- Press and hold the Shift key and click Settings .
- Click Generate Diagnostic Info.
You’ll get a notification when the ZIP file is added to your desktop. - Press and hold the Shift key and click Settings .
- Click Disable verbose logging.
- Send the ZIP file to your support agent.
- Make sure that Drive for desktop is not running. Check the right side of the task bar and confirm that the Google Drive icon is not there.
- Note the version of Drive for desktop that’s installed. If you don’t know, open Explorer and go to C:\Program Files\Google\Drive File Stream\ . The folder that starts with the highest number is the version you installed.
- Open a command prompt:
- Press Windows+r.
- Click Runenter cmdpress Enter.
- At the command prompt, enter the following command and replace X.X.X.X with your Drive for desktop version from step 2:
"C:\Program Files\Google\Drive File Stream\X.X.X.X\GoogleDriveFS.exe" --module_log_level="*:LOG_FINE” - Reproduce the issue as quickly as possible and note the time when the issue occurred.
- Follow the steps on this page to collect logs for Windows.
- Go to /Applications/Utilities/Terminal.app and open the Terminal app.
- Make sure that Drive for desktop is not running. Check the right side of the menu bar and confirm that the Google Drive icon is not there.
- At the prompt in the Terminal app, enter the following command:
/Applications/Google\ Drive.app/Contents/MacOS/Google\ Drive --module_log_level="*:LOG_FINE"
- Reproduce the issue as quickly as possible and note the time the issue occurred.
- Follow the steps on this page to collect logs for macOS.
Related topics
Google, Google Workspace, and related marks and logos are trademarks of Google LLC. All other company and product names are trademarks of the companies with which they are associated.