SafeLine icon indicating copy to clipboard operation
SafeLine copied to clipboard

[Bug] Abnormal Bloat of the mgt_rule_detect_log_detail table

Open Esyrokvash opened this issue 9 months ago • 1 comments

What happened?

The mgt_rule_detect_log_detail table occupies 358 GB of disk space, while the actual amount of useful data and indexes is significantly less. Standard cleaning procedures (DELETION + VACUUMING) do not return free space to the operating system, which creates the risk of an emergency filling of the disk (database failure).

Image Image

Table: public.mgt_rule_detect_log_detail

Current disk size: 358 GB

The size of the indexes: 1.6 GB (extremely small for such a volume of data)

Image

Esyrokvash avatar Feb 05 '26 13:02 Esyrokvash

You can enter pg and execute \d mgt_rule_detect_log_detail and you will find that the indexes are only id (bigint), event_id (text), and timestamp (bigint). The mgt_rule_detect_log_detail stores log details. You can check it yourself; each log also contains some request information.

2481563546 avatar Mar 02 '26 02:03 2481563546