Scope |
FortiClient EMS, FortiClient EMS Cloud, FortiClient Windows, FortiClient Linux , FortiClient MacOS, FortiClient Android and FortiClient IOS.
|
Solution |
- 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.
![1.jpg 1.jpg](/t5/image/serverpage/image-id/25906i4F3D20C91962BC06/image-dimensions/700x388/is-moderation-mode/true?v=v2)
![2.jpg 2.jpg](/t5/image/serverpage/image-id/25907i8D807240D17C9AA7/image-dimensions/701x533/is-moderation-mode/true?v=v2)
-
FortiClient EMS Cloud:
- Access the EMS Cloud console via the support.fortinet.com 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.
![3.jpg 3.jpg](/t5/image/serverpage/image-id/25908i5377D71675C4A835/image-dimensions/699x371/is-moderation-mode/true?v=v2)
- 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 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\tmp\Diagnostic_Result\.
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).
![5.jpg 5.jpg](/t5/image/serverpage/image-id/25913iB819E1F87E8EDFB9/image-dimensions/701x323/is-moderation-mode/true?v=v2)
![6.jpg 6.jpg](/t5/image/serverpage/image-id/25910iBC9896DF9713067B/image-dimensions/701x545/is-moderation-mode/true?v=v2)
- 4. 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 toEMS -> 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).
-
![10.jpg 10.jpg](/t5/image/serverpage/image-id/25916iA46109209F461D7E/image-dimensions/700x564/is-moderation-mode/true?v=v2)
-
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' and 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' -> De-select features that are not needed (or all of them).
![12.jpg 12.jpg](/t5/image/serverpage/image-id/25919iA3549AC23464D359/image-dimensions/699x428/is-moderation-mode/true?v=v2)
![13.jpg 13.jpg](/t5/image/serverpage/image-id/25918i6669A3DB57508163/image-dimensions/700x302/is-moderation-mode/true?v=v2)
-
FortiClient Android. It is possible to email FortiClient (Android) logs to Fortinet. To do this:
- Tap About.
- Tap Send Feedback Email:
![15.jpg 15.jpg](/t5/image/serverpage/image-id/25921iFB4BC18DA54C5175/image-size/large/is-moderation-mode/true?v=v2&px=999)
![16.jpg 16.jpg](/t5/image/serverpage/image-id/25922i1A641807ED7069D9/image-size/large/is-moderation-mode/true?v=v2&px=999)
-
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.
![17.jpg 17.jpg](/t5/image/serverpage/image-id/25923iF748D64FB2988871/image-dimensions/483x923/is-moderation-mode/true?v=v2)
![18.jpg 18.jpg](/t5/image/serverpage/image-id/25926i5FAC32F3AE7E7E79/image-size/large/is-moderation-mode/true?v=v2&px=999)
![19.jpg 19.jpg](/t5/image/serverpage/image-id/25927i05222F416B2C1E03/image-size/large/is-moderation-mode/true?v=v2&px=999)
-
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
![EmsLinuxDiagTool.png EmsLinuxDiagTool.png](/t5/image/serverpage/image-id/66166i1002D392EBE61FD8/image-size/large/is-moderation-mode/true?v=v2&px=999)
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
Related articles: Technical Tip: Collecting EMS v7.4 logs manually when the EMS GUI is unreachable
Troubleshooting Tip: Collecting logs for addressing VPN connection issues
|