Zum Inhalt der Seite gehen


Wenn mir die API meines pihole unter anderem das zurückgibt (/api/stats/summary)

{
  "queries": {
    "total": 155232,
    "blocked": 20260,
    "percent_blocked": 13.051432609558105,
    "unique_domains": 5706,

, sind das dann die Werte von heute, der letzten 24 Stunden oder gar ganz andere Werte?

#pihole #pi-hole

Tuxi ⁂ hat dies geteilt.

Unbekannter Ursprungsbeitrag

friendica (DFRN) - Link zum Originalbeitrag
Rainer "friendica" Sokoll
Kann ich, es sind dieselben Werte. Aber auch bei denen weiß ich nicht, welchen Zeitraum sie abbilden.
Als Antwort auf Rainer "friendica" Sokoll

It doesn't answer your question, but I just discovered that local API documentation is available on http(s)://PI_HOLE_IP/api/docs/
Dieser Beitrag wurde bearbeitet. (1 Woche her)
Als Antwort auf Michael Jack

I know, and yes, it is very helpful, but does not answer my question, as you said.
Als Antwort auf Rainer "friendica" Sokoll

From docs.pi-hole.net/database/quer…:

"Another way of controlling the size of the long-term database is by setting a maximum age for log queries to keep using the config parameter database.maxDBdays. It defaults to 365 days, i.e. queries that are older than one year get periodically removed to limit the growth of the long-term database file."

Does that match what you see? Queries up to 365 days old, if you haven't set 'database.maxDBdays' explicitly?

My cuurent install is only a week old...

Dieser Beitrag wurde bearbeitet. (1 Woche her)
Als Antwort auf Rainer "friendica" Sokoll

die Zahlen sind mit den Graphen auf dem Webserver identisch und diese decken immer die letzten 24h ab. K
Weiß gerade nicht ob man das bei V6 anpassen kann, aber das wäre der Standard
Als Antwort auf Don 🚫

Danke.
❯ grep -B2 maxHistory pihole.toml
    # How much history should be imported from the database and returned by the API
    # [seconds]? (max 24*60*60 = 86400)
    maxHistory = 86400