This article describes a script for automatically compressing FSSO Collector Agent's debug logs for the purposes of extending the log coverage and decreasing the total log size on disk, and provides example guidelines for implementing it. This may be useful when troubleshooting situations where the issue is not immediately reproducible or happens unpredictably.
Assumptions and requirements:
The core of this solution is a PowerShell script which performs the following actions:
The script must be placed into the FSSO Collector Agent install folder (default: C:\Program Files (x86)\Fortinet\FSAE\ ) and must be run by an account with read/write rights in the folder.
The script can be executed manually at any time, or integrated into an automation process that can run it with a sufficient frequency. An automation guide using the built-in Windows Task Scheduler follows below.
Task Scheduler Configuration Step by Step:
The script will now trigger at five-minute intervals, with the next scheduled time shown in the 'Next Run Time' column of the main Task Scheduler panel.
Screenshots with the important options highlighted:
Task Scheduler - General
Task Scheduler - Triggers
Task Scheduler - Actions
Task Scheduler - Settings
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.