Analytics page doesn't respect default filters #467

Closed
opened 2026-04-05 17:11:33 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @depado on 12/18/2025

Describe the Bug

The analytics page doesn't display the proper data and does not respect the default filters.

Default filters

When opening the page with no filters:

Image

There seem to be an issue in the API response of /api/v1/org/<myorg>/logs/analytics as it does not return the most recent data:

API Response

{
  "data": {
    "requestsPerCountry": [],
    "requestsPerDay": [
      {
        "day": "2025-12-11",
        "allowedCount": 574,
        "blockedCount": 2340,
        "totalCount": 2914
      },
      {
        "day": "2025-12-12",
        "allowedCount": 745,
        "blockedCount": 4325,
        "totalCount": 5070
      },
      {
        "day": "2025-12-13",
        "allowedCount": 84,
        "blockedCount": 4579,
        "totalCount": 4663
      },
      {
        "day": "2025-12-14",
        "allowedCount": 43,
        "blockedCount": 4368,
        "totalCount": 4411
      },
      {
        "day": "2025-12-15",
        "allowedCount": 71,
        "blockedCount": 2557,
        "totalCount": 2628
      }
    ],
    "totalBlocked": 18169,
    "totalRequests": 19686
  },
  "success": true,
  "error": false,
  "message": "Request audit analytics retrieved successfully",
  "status": 200
}

As today is the 18th, we are missing three days.

Changing the end date

Changing the end date or any date changes the API call options and properly returns all available data:

Image

Environment

  • OS Type & Version: Debian 12
  • Pangolin Version: 1.13.1
  • Gerbil Version: 1.3.0
  • Traefik Version: v3.6.4
  • Newt Version: 1.7.0
  • Olm Version: (if applicable)

To Reproduce

Have more than 5 days of request logs history and head to the Analytics page.

Expected Behavior

The analytics page should respect the default time range displayed

*Originally created by @depado on 12/18/2025* ### Describe the Bug The analytics page doesn't display the proper data and does not respect the default filters. ### Default filters When opening the page with no filters: <img width="1411" height="800" alt="Image" src="https://github.com/user-attachments/assets/f8a14abe-5906-4c55-9492-79ecd8ca146d" /> There seem to be an issue in the API response of `/api/v1/org/<myorg>/logs/analytics` as it does not return the most recent data: <details> <summary>API Response</summary> ```json { "data": { "requestsPerCountry": [], "requestsPerDay": [ { "day": "2025-12-11", "allowedCount": 574, "blockedCount": 2340, "totalCount": 2914 }, { "day": "2025-12-12", "allowedCount": 745, "blockedCount": 4325, "totalCount": 5070 }, { "day": "2025-12-13", "allowedCount": 84, "blockedCount": 4579, "totalCount": 4663 }, { "day": "2025-12-14", "allowedCount": 43, "blockedCount": 4368, "totalCount": 4411 }, { "day": "2025-12-15", "allowedCount": 71, "blockedCount": 2557, "totalCount": 2628 } ], "totalBlocked": 18169, "totalRequests": 19686 }, "success": true, "error": false, "message": "Request audit analytics retrieved successfully", "status": 200 } ``` </details> As today is the 18th, we are missing three days. ### Changing the end date Changing the end date or any date changes the API call options and properly returns all available data: <img width="1411" height="800" alt="Image" src="https://github.com/user-attachments/assets/152be47b-24d2-4492-a0aa-bcde94b4c8ee" /> ### Environment - OS Type & Version: Debian 12 - Pangolin Version: 1.13.1 - Gerbil Version: 1.3.0 - Traefik Version: v3.6.4 - Newt Version: 1.7.0 - Olm Version: (if applicable) ### To Reproduce Have more than 5 days of request logs history and head to the Analytics page. ### Expected Behavior The analytics page should respect the default time range displayed
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#467