Skip to main content
koolishami
Staff
Apr 15, 2025 7:39 AM UTC

Technical Tip: Exporting Cases to CSV file with Custom Column Names

Description

 

This article describes a method to export cases from the FortiSIEM Cases Tab to a CSV file with custom column names.

 

Scope

 

FortiSIEM v7.x+.

 

Solution

 

Currently, exporting cases directly from the GUI is not supported. However, this can be achieved via the Supervisor’s CLI using PostgreSQL queries on the ph_incident_ticket table.

 

To export all cases using default database column names:

 

psql -U phoenix -d phoenixdb -c "SELECT * FROM ph_incident_ticket;" --csv >> ph_cases.csv

 

To export cases with user-friendly, custom column names:

 

psql -U phoenix -d phoenixdb -c "SELECT id AS \"Case ID\", assignee_name AS \"Assignee\", remark AS \"Summary\", cust_org_id AS \"Organization\", TO_TIMESTAMP(creation_time / 1000) AS \"Created Date\", priority AS \"Severity\", case_entity AS \"Assets\", closedcode AS \"Closed Code\" FROM ph_incident_ticket;" --csv >> ph_cases_custom_names.csv

 

Example Output.

Refer to the attached screenshot for a sample CSV output.


Screenshot 2025-04-15 120437.png

 

Formatting Notes.

The general format used to rename columns is:

 

original_database_column AS \"Custom Display Name\"

 

Refer to the CSV exported using the first command (ph_cases.csv) to identify which database fields map to the GUI display names. For example:

assignee_name in the database appears as Assignee in the GUI (List View).

    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024