Actions
Feature #27024
closedAudits cleanup
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1703496
Description of problem:
Satellite audits cleanup
Version-Release number of selected component (if applicable):
Satellite 6.4.2
How reproducible:
Always
Steps to Reproduce:
1.Some production Satellites have more than 5 million audit entries which degrades the performance of Satellite audit UI. Need an automatic cleanup mechanism to remove old audit entries.
Actual results:
Production Satellites accumulate large of Audit data which are not purged.
- time curl
k -u admin https://satellite.example.com/api/audits > audit:--:-- 0:00:17 --:--:-- 3534
Enter host password for user 'admin':
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 13950 0 13950 0 0 817 0 -
real 0m19.485s
user 0m0.047s
sys 0m0.066s
- head audit
{
"total": 5136427,
"subtotal": 5136427,
"page": 1,
"per_page": 30,
"search": null,
"sort": {
"by": null,
"order": null
},
Expected results:
Need an automated purge mechanism for audits.
Additional info:
Actions