FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
nathan_h
Staff & Editor
Staff & Editor
Article Id 386642
Description

 

This article describes how to extract Console logs downloaded from the GUI. Windows Subsystem for Linux can be installed to run Linux commands. When the console logs are downloaded from the GUI, it is not viewable with a text editor because the file being compressed with Zlib needs to be extracted first.

 

Scope

 

FortiGate

 

Solution

 

  1. Download the Console logs on the GUI: Technical Tip: How to use the COMLog feature and go under System -> Settings -> Debug Logs -> Regenerate -> Download.
  2. On the PC, run the commands below on PowerShell with the Administrator account:

 

wsl --install 

 

  1. Select the Start menu and then enter the directory below. Change the <username> to the relevant user. Copy the file from Step 1 and paste it on this directory:  \\wsl$\Ubuntu\home\<username>

 

3.png

  1. Select the Start menu, search Ubuntu, and then select Ubuntu. Enter 'pwd' command to show the current directory. Enter 'ls' to check the file that it is on the directory. 

 

pwd

ls

4.png

  1. Enter 'sudo apt install qpdf' to install zlib-flate. zlib-flate is part of qpdf. Enter the command below to extract the file:

 

sudo apt install qpdf

zlib-flate -uncompress < comlog.log > comlogout.txt

 

6.png

  

  1. Open the directory from Step 3. Open comlogout.txt with a Notepad or any Text Editor. 

 

7.1.png

 

7.png

Related article:

Technical Tip: How to use the COMLog feature