FortiClient EMS On-premises: Access the EMS console as a user with admin privileges. Under EMS -> System Settings -> Log Settings -> Log Level, change 'info' to 'debug'. Reproduce the issue being experienced. Navigate to EMS -> Administration -> Generate Diagnostic Logs -> Create. This operation may take a long time. Be patient. Once the log creation is complete, the 'Download' button will appear. Download the log.
     FortiClient EMS Cloud: Note: Feature not available since version 7.4.5. Access the EMS Cloud console via the Support portal. Under EMS -> System Settings -> Log Settings -> Log Level, change 'info' to 'debug'. Reproduce the issue being experienced. Navigate to EMS -> Administration -> Generate Diagnostic Logs -> Create. This operation may take a long time. Be patient. Once the log creation is complete, the 'Download' button will appear. Download the log.
     FortiClient Windows: Access the EMS console as a user with admin privileges. Navigate to EMS -> Endpoint Profile -> Select profile -> Edit -> System Settings -> use Advanced instead of Basic settings -> Log Level, then change 'INFO' to 'DEBUG' and select all features. Confirm the setting by ensuring 'DEBUG' is selected under FortiClient -> The 'Settings' section -> Log Level. Reproduce the issue being experienced and take note of the exact timestamp of the events. Under FortiClient -> section About -> Diagnostic Tool, check that the details are correct and run the Diagnostic Tool. The output file should have a *.cab or *.zip extension, depending on the version, and will usually be present in %temp%\Diagnostic_Result or %LOCALAPPDATA%\FortiClient mp\Diagnostic_Result\.
       
    Note: It is recommended to revert the configuration after collecting the debug logs.  To do so, navigate to EMS -> Endpoint Profile -> select -> Edit -> System Settings -> Use Advanced instead of Basic settings -> Log Level -> Change 'debug' to 'info' -> Deselect features that are not needed (or all of them).       FortiClient macOS: Access the EMS console as a user with admin privileges. Navigate to EMS -> Endpoint Profile -> select a profile -> Edit -> System Settings -> use Advanced instead of Basic settings -> Log Level -> Change 'info' to 'debug' -> select all features. Confirm the setting by ensuring 'Debug' is selected under FortiClient -> the 'Settings' section -> Log Level. Reproduce the issue being experienced and take note of the exact timestamp of the events. Find the output file under FortiClient -> the 'Settings' section -> Log File -> Export logs. The output file should have a *.cab or *.zip extension, depending on the version.
 It is recommended to revert the configuration after collecting the debug logs. To do so, navigate to EMS -> Endpoint Profile -> Select -> Edit -> System Settings -> Use Advanced instead of Basic settings -> Log Level -> Change 'debug' to 'info' -> De-select features that are not needed (or all of them).    FortiClient Linux. Access the EMS console as a user with admin privileges. Navigate to EMS -> Endpoint Profile -> Select profile -> Edit -> System Settings -> Use Advanced instead of Basic settings -> Log Level -> Then change 'info' to 'debug' -> Select all features. Reproduce the issue being experienced. Make sure 'Debug' is selected under FortiClient -> Section Settings -> Log Level. Find the output file under FortiClient -> The 'Settings' section -> Log File -> Export logs. The output file should have a *.cab or *.zip extension, depending on the version.
 It is recommended to revert the configuration after collecting the debug logs. To do so, navigate to EMS -> Endpoint Profile -> select -> Edit -> System Settings -> Use Advanced instead of Basic settings -> Log Level -> Change 'debug' to 'info' -> Deselect features that are not needed (or all of them).     Â
For a Headless Linux endpoint (endpoint without a GUI), open a command prompt, run the command to zip the FortiClient Linux log directory:
sudo zip -r /tmp/linux-fct-logs.zip /var/log/forticlient
The output file linux-fct-logs.zip will be in the tmp directory:
ls -lh /tmp/linux-fct-logs.zip
FortiClient Android (It is possible to email FortiClient (Android) logs to Fortinet. To do this): Tap About. Tap Send Feedback Email:
     FortiClient IOS (It is possible to email FortiClient (iOS) logs to Fortinet. To do this):
Tap About. Tap Diagnostic. Swipe right to enable Logging. Tap Report an Issue.                          Â
      FortiClient EMS On-premises (Windows-based). To manually collect logs from FortiClient EMS Windows-based, when the EMS Console is inaccessible, run the following tool, 'EMSDiagnosticTool.exe', located at C:\Program Files(x86)\Fortinet\FortiClientEMS\.    The output of the result is located in C:\Users\Administrator\AppData\Local\Temp.  FortiClient EMS On-premises (version 7.4.x, Linux-based). To manually collect logs from FortiClient EMS version 7.4.x (Linux-based) when the EMS Console is inaccessible, run the following command in the terminal with elevated privileges using sudo:  sudo /opt/forticlientems/bin/diagnostic_tool -o /tmp/diag
  The output file will have a .zip extension (/tmp/diag.zip in the following command). Once the logs are collected, download them from the /tmp/ directory:
/tmp/fortiems_logs.tar.gz
/tmp/postgresql_logs.tar.gz
/tmp/redis_logs.tar.gzÂ
/tmp/ufw_logs.txtÂ
/tmp/system_logs.txt
/tmp/diag.zip
 Or using the FortiClient EMS CLI tool:  ./emscli execute diagnostic --copy.service scp --remote.ip --remote.user --remote.password --remote.folder
 Related articles: |