Skip to main content
gsharma
Staff
Staff
September 6, 2022

Technical Tip: How to view sessions for a specific virtual server

  • September 29, 2026 at 7:51 AM
  • 0 replies
  • 647 views

Description

 

This article describes how to view the session table for a specific virtual server on FortiADC using the GUI or CLI.

 

Scope

 

FortiADC and FortiADC-VM.

 

Solution


The session table displays information about sessions handled by FortiADC. Viewing sessions for a specific virtual server helps identify client connections and their associated real servers during troubleshooting.

 

Method 1: Using the GUI.

  1. Navigate to FortiView > Server Load Balance > Virtual Server.

  2. If analytics is disabled for the required virtual server, select its checkbox and select Enable Analytics.


Note: Enabling analytics for too many items can negatively affect page loading speed. Enable it only for the virtual servers required for troubleshooting.

'Insert the screenshot showing Enable Analytics here.'.

  1. Select OK in the confirmation dialog.

'Insert the analytics confirmation screenshot here.'.

  1. Open the required virtual server and select the Session tab.

The session table displays connection details, including source and destination addresses and ports, session state, protocol, traffic counters, and real server name.

'Insert the Session tab screenshot here.'.

  1. If multiple sessions are displayed, select Add Filter to narrow the results.

  2. Refresh the table to update the displayed sessions. Expired sessions are no longer shown after the table refreshes.

 If analytics were enabled specifically for troubleshooting, disable it once troubleshooting is complete.

 

gsharma_0-1662445447043.png

 

This warning will appear when analytics are enabled:


gsharma_1-1662445518554.png

 

MicrosoftTeams-image (2).png

 

Method 2: Using the CLI.

  1. Apply a session filter for the required virtual server:

diagnose server-load-balance session filter 'vs-name <Virtual Server Name>'


Replace <Virtual Server Name> with the configured virtual server name.

  1. Verify that the filter is applied:

diagnose server-load-balance session filter show


  1. Display the sessions matching the filter:

diagnose server-load-balance session list


Related documents:
diagnose server-load-balance session

All Sessions

    Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
    Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
    Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT