Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

refactor(audit-log): increase AUDIT_LOG_ROW_WARNING_THRESHOLD to improve handling of large logs

Victor Hugo dos Santos58eff6d1a750
diff --git a/backend/src/ee/services/audit-log/audit-log-service.ts b/backend/src/ee/services/audit-log/audit-log-service.ts
index f4563c206e..95a827c3f6 100644
--- a/backend/src/ee/services/audit-log/audit-log-service.ts
+++ b/backend/src/ee/services/audit-log/audit-log-service.ts
@@ -20,7 +20,7 @@ import { TAuditLogDALFactory } from "./audit-log-dal";
import { TAuditLogQueueServiceFactory } from "./audit-log-queue";
import { ACTOR_TYPE_TO_METADATA_ID_KEY, EventType, TAuditLogServiceFactory } from "./audit-log-types";
-const AUDIT_LOG_ROW_WARNING_THRESHOLD = 300_000_000;
+const AUDIT_LOG_ROW_WARNING_THRESHOLD = 350_000_000;
const AUDIT_LOG_ALERT_ROW_INCREMENT = 10_000_000;
const AUDIT_LOG_MIGRATION_ALERT_STATE_TTL_SECONDS = 7 * 24 * 60 * 60; // 7 days
diff --git a/frontend/src/pages/organization/AuditLogsPage/components/LogsSection.tsx b/frontend/src/pages/organization/AuditLogsPage/components/LogsSection.tsx
index 1009880254..533f9776be 100644
--- a/frontend/src/pages/organization/AuditLogsPage/components/LogsSection.tsx
+++ b/frontend/src/pages/organization/AuditLogsPage/components/LogsSection.tsx
@@ -56,7 +56,7 @@ const LogsSectionComponent = ({
const { popUp, handlePopUpOpen, handlePopUpToggle } = usePopUp(["upgradePlan"] as const);
const { data: postgresStorageStatus } = useGetAuditLogPostgresStorageStatus();
- const AUDIT_LOG_ROW_WARNING_THRESHOLD = 300_000_000;
+ const AUDIT_LOG_ROW_WARNING_THRESHOLD = 350_000_000;
const showClickHouseWarning =
!isInfisicalCloud() &&
postgresStorageStatus &&