mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-25 23:15:49 +03:00
[GH-ISSUE #250] Auto delete logs in self hosted version #181
Labels
No labels
bug
bug
bug
feature
good-first-issue
new integration
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/healthchecks#181
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Foddy on GitHub (May 5, 2019).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/250
I couldn’t find any information about that in the docs so I am wondering if the self hosted version is able to automatically remove old logs from pings?
I have some jobs running every minute. I don’t want to imagine how many no longer relevant rows my database will have in a few months... :S
@Foddy commented on GitHub (May 5, 2019):
I am blind. Sorry.
@yonas commented on GitHub (Apr 25, 2021):
@Foddy I'm looking for an automated method as well. What did you find?
@cuu508 commented on GitHub (May 3, 2021):
@yonas – there is a
prunepingsmanagement command (details in README). Run it regularly from e.g. a cron job.@yonas commented on GitHub (May 3, 2021):
@cuu508 -- Thanks! I've created a pull request so it can find Python 3. https://github.com/healthchecks/healthchecks/pull/504
However, after running the script, I still see log entries in the web UI when looking at a check's details page.
On first run, it reports deleted a couple thousand pings. On second run, immediately after, it reports 0 pings pruned. It seems like the web UI is either caching pings or using another source to fetch ping logs.