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.
kraturi_FTNT
Staff
Staff
Article Id 194148

Description

 

This article describes how to configure PuTTY to create a log file of a session.

This is useful in cases where Fortinet support requests the output of commands or if we need to run and make sure all logs will be collected and saved. 

 

Scope

 

FortiGate.


Solution

  1. Double-click the PuTTY icon to launch the application.

Stephen_G_0-1722811917179.png

 

  1. On the left menu Session -> Click Logging
    The logging settings are listed here on the right. To save a log file to the desktop:
    Select Printable output - this option will not log keystrokes, such as backspace, for example.
    Enable Always append to the end of the log file.
    Enable Flush log file frequently.


putty_001.png

  1. Under the Log file name, select 'Browse' and save it on the local disk (avoid saving over a network remote drive).

  2. On the left menu Window, increase the terminal width to 237 columns as it may add line breaks that may interfere with the log analysis. 
    Optionally, increase the Lines of scrollback to keep more lines being displayed. Note that all content will still be saved into the file. 

    putty_002.png
  3.  On the left menu select Connection -> Enable the keepalive every 2 seconds.

    putty_003.png

  4. On the left menu Session again, enter a chosen name under 'Saved Sessions' and select save to save and avoid having to re-configure it every time Putty is opened. 
    Tip: Typing 'Default Settings' will ensure the settings are saved as the default, will be loaded every time Putty is launched.

 
putty_004.png

 

  1. Under Connection type, select SSH, Serial or the method being used, and then select 'Open' to open the connection.

  2. Enter the username, then press <Enter>

Stephen_G_1-1722812253111.png

 

 

  1. Enter the password associated with the user, then press <Enter>.

 

Stephen_G_2-1722812349624.png

 

 

  1. From this point and onwards, connection should be established, while all output will be saved into a log file.
    Run any commands necessary, and attach the saved file in the FortiCare Support ticket for TAC review.