Skip to main content
calvinc97
Staff & Editor
Staff & Editor
Apr 15, 2025 7:35 AM UTC

Technical Tip: How to retrieve active Clickhouse data in FortiSIEM

  • Apr 24, 2026 3:59 PM UTC
  • 0 replies
  • 606 views
  • Translate All
Description This article describes how to retrieve active data of Clickhouse in FortiSIEM.
Scope FortiSIEM.
Solution

The following commands below can be used to query Clickhouse data on any FortiSIEM nodes, primarily for monitoring query execution, replication, and partition health.

 

clickhouse-client

 

$ SELECT * FROM system.processes; <-- Retrieves all currently running queries/processes in ClickHouse.


$ SELECT * FROM system.query_log ORDER BY event_time DESC LIMIT 10;   <-- Logs all executed SQL queries, sorted with 10 most recent entries.


$ SELECT * FROM system.replication_queue format Vertical;  <-- Lists pending replication tasks in a more readable vertical format.

 

$ SELECT * from system.replicas format Vertical;  <-- Shows the status of all replicas in the system.

 

If the entries show is_readonly = 1 or is_session_expired = 1, the replica may be unhealthy or disconnected.


$ SELECT * FROM system.parts WHERE active = 1;  <-- Lists all active data parts in tables, it can also refer for troubleshooting inconsistent data or missing parts.

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