AQUILA - Cato Network Integration(Windows)

Cato Networks provides a cloud-native SASE (Secure Access Service Edge) platform that converges networking and security into a global cloud service. The platform generates security and connectivity events that can be collected, analyzed, and monitored for network insights and threat detection. This integration enables centralized event collection from Cato Networks using the Cato CLI for visualization and analysis.

Integration Overview

This integration supports event collection through:

Compatibility
Prerequisites

Before configuring the Cato Network integration, ensure you have:

Python Installation

Windows Installation:
Step 1: Open your web browser and navigate to the official Python downloads page:
Step 2: Locate the latest stable version of Python 3 (3.12 or newer is recommended) and choose the correct installer for your system type (64-bit or 32-bit).
Step 3: Click the installer link to download the .exe file.
Step 4: After downloading, locate the installer file (e.g., python-3.x.x-amd64.exe) and double-click it to start the installation.
Step 5: On the installer screen, configure the following options:
Step 6: Click Install Now to begin the installation process.
Step 7: Wait for the installation to complete, then click Close when the success message appears.
Step 8: Verify the installation:

Creating Python Virtual Environment

A Python virtual environment isolates project dependencies and prevents conflicts with system-wide Python packages.

Step 1: Open Command Prompt or PowerShell.
Step 2: Create and Navigate to your project directory using the mkdir and cd command:
mkdir "C:\cato"
cd C:\cato
Step 3: Create a virtual environment:
python -m venv venv
Step 4: Activate the virtual environment:
Step 5: Once activated, the virtual environment name (e.g., (venv)) will appear in your terminal prompt.
Step 6: To deactivate the virtual environment, type:
deactivate

Cato CLI Installation

Step 1: Ensure your virtual environment is activated.
Step 2: Install the Cato CLI using pip:
pip3 install catocli

image.png

Step 3: Verify the installation by running:
catocli --version

image.png

Configuring Cato CLI for Local System Execution

To enable the Cato CLI to run as a Windows Service under the Local System account, modify the profile manager configuration.

Step 1: Navigate to the Cato CLI profile manager file:
C:\cato\venv\Lib\site-packages\catocli\Utils\profile_manager.py
Step 2: Open the file in a text editor (e.g., Notepad or Visual Studio Code).
Step 3: Locate the __init__ constructor in the file:
def __init__(self):
    self.cato_dir = Path.home() / '.cato'
    self.credentials_file = self.cato_dir / 'credentials'
    self.config_file = self.cato_dir / 'config'
    self.default_endpoint = "https://api.catonetworks.com/api/v1/graphql2"
Step 4: Replace Path.home() with Path("C:/cato"):
def __init__(self):
    self.cato_dir = Path("C:/cato") / '.cato'
    self.credentials_file = self.cato_dir / 'credentials'
    self.config_file = self.cato_dir / 'config'
    self.default_endpoint = "https://api.catonetworks.com/api/v1/graphql2"

This change ensures the Cato CLI uses a fixed directory path instead of the user's home directory, which is essential for running as a system service.

Step 5: Save and close the file.

Validating Cato Network API Token and Account ID

Step 1: Configure the Cato CLI with your API token and Account ID:
catocli configure set --cato-token "your-api-token" --account-id "12345"

image.png

Replace "your-api-token" with your actual Cato Network API token and "12345" with your Account ID.

Downloading and Installing NSSM

NSSM (Non-Sucking Service Manager) is a service helper tool that allows you to run any application as a Windows Service.

Step 1: Download NSSM from the official website:
Step 2: Extract the downloaded ZIP file.
Step 3: Copy the appropriate `nssm.exe` file (32-bit or 64-bit based on your system) to the Cato integration directory:
C:\cato\nssm.exe

Creating the Python Event Collection Script

Step 1: Create a Python script file at:
C:\cato\my_script.py
Step 2: Paste this configuration script to my_script.py that you created earlier:
Ask Cytech Support for the Soure Code
Step 3: Save the script file.

Installing the Cato Events Feed as a Windows Service

Use NSSM to install the Python script as a Windows Service that runs automatically in the background.

Step 1: Open PowerShell as Administrator and Navigate to the Cato directory:
cd C:\cato
Step 2: Run the NSSM installation command:
C:\cato\nssm.exe install CatoEventsFeed

This opens the NSSM service installer GUI.

Step 1: Configuring the Service - Application Tab:
Path: C:\cato\venv\Scripts\python.exe
Startup directory: C:\cato
Arguments: C:\cato\my_script.py

image.png

Step 2: Configuring the Service - Details Tab:
Display name: CatoEventsFeed
Description: The platform generates security and connectivity events that can be collected, analyzed, and monitored for network insights and threat detection. This service enables centralized event collection from Cato Networks using the Cato CLI for visualization and analysis.

image.png

Step 4: Configuring the Service - Log on tab
select Local System account

image.png

This allows the service to run with system-level privileges without requiring a specific user login.

Step 5: Configuring the Service - Exit action tab
delay restart if application runs for less than: 5000

image.png

This setting ensures the service waits 5 seconds before attempting a restart if the application crashes immediately after starting.

Step 6: Click Install service to complete the installation.

Starting the Cato Events Feed Service

Step 1: Open PowerShell as Administrator and navigate to the Cato directory:
cd C:\cato
Step 2: Start the service using NSSM:
.\nssm.exe start CatoEventsFeed
Step 3: Verify the service is running:
sc.exe query CatoEventsFeed

The output should show "STATE: RUNNING".

Managing the Cato Events Feed Service

To start the service:

C:\cato\nssm.exe start CatoEventsFeed

To restart the service:

C:\cato\nssm.exe restart CatoEventsFeed

To check service status:

C:\cato\nssm.exe status CatoEventsFeed

Event Collection Settings

The integration collects the following event types from Cato Networks:

Configuration Parameters:

Log Events

Enable this option to collect Cato Network log events across all configured event types from your Cato SASE platform.

Logs Dataset

The cato.events dataset contains events collected from the Cato Networks Events Feed API. All Cato-specific event fields are available in the configured log files for detailed analysis, including:


Revision #3
Created 23 March 2026 16:33:44 by Benjie Janlay Jr.
Updated 28 May 2026 10:18:51 by Benjie Janlay Jr.