| Description | This article describes how to verify FortiSIEM retention policy details, such as creation date, last modified time, owner ID, status, and associated objects, by querying the FortiSIEM PostgreSQL database. This is useful when retention policies do not appear correctly in the GUI or when auditing configuration changes. |
| Scope | FortiSIEM. |
| Solution |
Symptoms:
Background:
Solution: To retrieve retention policy details, including creation date, last modified time, owner ID, active status, user IDs, and associated devices/events, execute the following command on the FortiSIEM Supervisor node:
psql -U phoenix phoenixdb -c "select id, TO_CHAR(TO_TIMESTAMP(creation_time / 1000), 'DD/MM/YYYY') as creation_time, TO_CHAR(TO_TIMESTAMP(last_modified_time / 1000), 'DD/MM/YYYY HH24:MI:SS') as last_modified_time,owner_id,active,custids,description,device_display_names,devices, event_display_names from ph_retention_policy;"
|
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 2026 Fortinet, Inc. All Rights Reserved.