mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-22 15:45:22 +02:00
feat(logging): exclude Dashboard requests from access logs processing
- Updated the log processing functions to filter out requests that start with "/dashboard". - Enhanced the monitoring configuration to also exclude Dashboard requests alongside the Dokploy service app.
This commit is contained in:
@@ -27,6 +27,10 @@ export function processLogs(
|
||||
if (log.ServiceName === "dokploy-service-app@file") {
|
||||
return null;
|
||||
}
|
||||
// Exclude Dashboard requests - they start with /dashboard
|
||||
if (log.RequestPath?.startsWith("/dashboard")) {
|
||||
return null;
|
||||
}
|
||||
const date = new Date(log.StartUTC);
|
||||
|
||||
if (dateRange?.start || dateRange?.end) {
|
||||
@@ -97,6 +101,10 @@ export function parseRawConfig(
|
||||
}
|
||||
})
|
||||
.compact()
|
||||
.filter((log) => {
|
||||
// Exclude Dashboard requests - they start with /dashboard
|
||||
return !log.RequestPath?.startsWith("/dashboard");
|
||||
})
|
||||
.value();
|
||||
|
||||
// Apply date range filter if provided
|
||||
|
||||
Reference in New Issue
Block a user