Capture Google Drive for desktop logs for support

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.

Capture log files in the application

On a Mac

  1. On your computer, click Drive for desktop "" on the menu bar at the top right.
  2. Press and hold the Shift key and click Settings ""and thenGenerate Diagnostic Info.
    You’ll get a notification when the ZIP file of information is added to your desktop.
  3. Send the ZIP file to your support agent.

On Windows

  1. On your computer, click Drive for desktop "" on the taskbar at the bottom right.
  2. Press and hold the Shift key and click Settings ""and thenGenerate Diagnostic Info.
    You’ll get a notification when the ZIP file of information is added to your desktop.
  3. Send the ZIP file to your support agent.

Capture log files when the application is not available

If you can't access the Drive for desktop application,  you can capture log files using Finder in Mac and File Explorer in Windows.

On a Mac

  1. Open Finder.
  2. Press Command+Shift+g.
  3. Enter ~/Library/Application Support/Google/DriveFS and press Enter.
  4. Right-click the Logs folder and select Compress “Logs”.
  5. Send the Logs.zip file to your support agent.

On Windows

  1. Open File Explorer.
  2. In the URL box, enter %USERPROFILE%\AppData\Local\Google\DriveFS and press Enter.
  3. Right-click the Logs folderand thenclick Shareand thenZip.
  4. Send the Logs.zip file to your support agent.

Analyze log files yourself

After you capture the log files, you can use the Log Analyzer 2 tool ​to diagnose your Drive for desktop problems​.

  1. Open the Log Analyzer 2 .
  2. Click Autodetectand thenDrive for desktopand thenChoose file.
  3. Unzip and upload the file.
  4. Click Analyze.
  5. (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 fine Drive for desktop logs for support

You should gather fine logs only if Google Workspace support has explicitly requested them. Fine logging produces a large amount of data that can overwrite useful debugging information if left active for long.

Gather fine logs from the product

  1. On your computer, click Drive for desktop "".
    • On Apple Mac, Drive for desktop is on the menu bar at the top right.
    • On Microsoft Windows, Drive for desktop is on the taskbar at the bottom right.
  2. Press and hold the Shift key and click Settings "".
  3. Click Enable verbose logging.
  4. Click Drive for desktop "" again.
  5. Reproduce the issue as quickly as possible and note the time the issue occurred.
  6. Press and hold the Shift key and click Settings "".
  7. Click Generate Diagnostic Info.
    You’ll get a notification when the ZIP file is added to your desktop.
  8. Press and hold the Shift key and click Settings "".
  9. Click Disable verbose logging.
  10. Send the ZIP file to your support agent.

Gather fine logs from the command line

If you can't access the Drive for desktop application, you can capture log files using Finder in Mac and File Explorer in Windows.

On a Mac

  1. Go to /Applications/Utilities/Terminal.app and open the Terminal app.
  2. 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.
  3. At the prompt in the Terminal app, enter the following command:
    /Applications/Google\ Drive.app/Contents/MacOS/Google\ Drive --module_log_level="*:LOG_FINE"
  4. Reproduce the issue as quickly as possible and note the time the issue occurred.
  5. Follow the steps in Capture log files when the application is not available (above on this page).

On Windows

  1. 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.
  2. 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. 
  3. Open a command prompt:
    • Press Windows+r.
    • Click Runand thenenter cmdand thenpress Enter.
  4. 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”
  5. Reproduce the issue as quickly as possible and note the time when the issue occurred.
  6. Follow the steps in Capture log files when the application is not available (above on this page).

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.

Was this helpful?
How can we improve it?

Need more help?

Sign in for additional support options to quickly solve your issue

Search
Clear search
Close search
Google apps
Main menu
Search Help Center
true
true
true
true
73010
false
false