Hacker News new | ask | show | jobs
by emadda 841 days ago
Why would you watch logs for more than 6 months?

Do you filter them? What does the system you are watching do?

1 comments

for instance, running a nextcloud instance through docker compose, I'd like to have a lightweight web ui for browsing the server logs. not just for 15 minutes but for longer periods of time.

on an hpc cluster, I want to want logs from the slurmctld forever essentially without having to login and grep through the logs.

there's a bunch of online services for this, there's ELK stack, there's grep, and few things sit in between. hence my question

then the problem is not viewing the logs but storing them, maybe compressing, and then retrieving. If that's not a problem (size) then with some cron magic you should be able to store the logs from specific locations into a single one so rotation doesn't eat them and then just view using a log viewer of your choice.