[GH-ISSUE #2113] Analytics page doesn't respect default filters #27689

Closed
opened 2026-06-10 23:02:46 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @depado on GitHub (Dec 18, 2025).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/2113

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 GitHub (Dec 18, 2025). Original GitHub issue: https://github.com/fosrl/pangolin/issues/2113 ### 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
Author
Owner

@mighty-services commented on GitHub (Feb 5, 2026):

Hy There,

first of all: THANK YOU SO MUCH FOR ALL YOUR WORK! I'm amazed by all the features you added recently.

I have Pangolin running for quite some time. During this time, you added the Analytics feature. When I open it on my machine, the countries-list is empty. I see the graph mentioned above, but thats it:

Image

I searched through your docs and find the part, where you can enable telemetry: https://docs.pangolin.net/self-host/telemetry

I did this, restarted my stack and it's still empty, even after some hours of letting it populate.

I installed another pangolin stack for my friend just recently and there, the countries-list is populated.

Both instances running on 1.15.1 community edition. The only difference I see so far is:

  • on my instance there is also crowdsec running but no geoLite2-Country.mmdb file in the config-folder
  • on his instance the geoLite2-Country.mmdb file is present in the config-folder and he is not running crowdsec

What am I missing here?

<!-- gh-comment-id:3852213837 --> @mighty-services commented on GitHub (Feb 5, 2026): Hy There, first of all: THANK YOU SO MUCH FOR ALL YOUR WORK! I'm amazed by all the features you added recently. I have Pangolin running for quite some time. During this time, you added the Analytics feature. When I open it on my machine, the countries-list is empty. I see the graph mentioned above, but thats it: <img width="1373" height="1242" alt="Image" src="https://github.com/user-attachments/assets/2da08d0f-075a-434c-84a7-c98da0866a97" /> I searched through your docs and find the part, where you can enable telemetry: [https://docs.pangolin.net/self-host/telemetry](https://docs.pangolin.net/self-host/telemetry) I did this, restarted my stack and it's still empty, even after some hours of letting it populate. I installed another pangolin stack for my friend just recently and there, the countries-list is populated. Both instances running on 1.15.1 community edition. The only difference I see so far is: - on my instance there is also crowdsec running but no geoLite2-Country.mmdb file in the config-folder - on his instance the geoLite2-Country.mmdb file is present in the config-folder and he is not running crowdsec What am I missing here?
Author
Owner

@mighty-services commented on GitHub (Feb 5, 2026):

AH! I found out, that I had to add the GeoLite2 Features described here:

<!-- gh-comment-id:3852386445 --> @mighty-services commented on GitHub (Feb 5, 2026): AH! I found out, that I had to add the GeoLite2 Features described here: - [https://docs.pangolin.net/self-host/advanced/enable-geoblocking](https://docs.pangolin.net/self-host/advanced/enable-geoblocking) - [https://docs.pangolin.net/self-host/advanced/enable-asnblocking](https://docs.pangolin.net/self-host/advanced/enable-asnblocking)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#27689