Skip to main content
aebadi
Staff
Staff
January 19, 2023

Troubleshooting Tip: High root disk usage on collector due to clickhouse service

  • January 19, 2023
  • 0 replies
  • 2689 views
Description

This article provides the steps to free up space consumed by the ClickHouse service on the root partition of the FortiSIEM collector.

Scope FortiSIEM Collector v6.5.0, v7.1.0, v7.1.3, v7.1.4, v7.1.6, v7.2.5, v7.2.6., v7.3.x, v7.4.x
Solution
  1. Run the following command first to know if the disk usage is due to clickhouse directories (/var/lib/clickhouse and /var/log/clickhouse-server).

    du --max-depth=4 -xh / | sort -hr | head -n 20

  2. Stop and disable the clickhouse-server service:

    systemctl stop clickhouse-server.service
    systemctl disable clickhouse-server.service

  3. Remove clickhouse data:

    rm -rf /var/log/clickhouse-server/
    rm -rf /var/lib/clickhouse/