Delete systemd logs from the future?

Hi everyone,
My laptop sometimes has an issue where the BIOS settings get reset. I'm in the process of fixing that, but in the meantime this same issue screwed up my hardware clock and so I have a bunch of systemd logs for the far future. Whenever I run something like journalctl --since "1 hour ago" I get lots of irrelevant logs from a long time ago when I encountered this BIOS issue last.

I found this topic https://github.com/systemd/systemd/issues/13544 where the author has a similar issue, but they don't appear to have found a resolution.

Does anyone here have any ideas? Do I just have to nuke all of my logs?

Never mind! Solved my own problem.

Going down the GitHub rabbit hole https://github.com/systemd/systemd/issues/2738 reveals you can view info about systemd log files with journalctl -e --header and delete the log files that have a timestamp in the future.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by