Results 1 to 4 of 4

Thread: journalctl --vacuum-time

  1. #1
    Join Date
    Apr 2016
    Location
    North America
    Posts
    537

    Default journalctl --vacuum-time

    I tried:

    Code:
    journalctl --vacuum-time=2d
    
    journalctl --vacuum-time=2days
    Vacuuming done, freed 0B of archived journals on disk.
    I still have logs entries going back 10 days.
    The computer has been restarted.

    People have noted the same problem, even with systemd 231.
    https://unix.stackexchange.com/quest...ear-journalctl

    Is this a systemd bug or something that needs to be implemented by openSUSE?

  2. #2
    Join Date
    Apr 2016
    Location
    North America
    Posts
    537

    Default Re: journalctl --vacuum-time

    Running:

    Code:
    journalctl --rotate
    journalctl --vacuum-time=2d
    Deleted archived journal /var/log/journal/.../user-1000@....journal (23.8M).
    Vacuuming done, freed 23.8M of archived journals on disk.
    Now it only goes back to yesterday.

  3. #3

    Default Re: journalctl --vacuum-time

    Total cleaning
    Code:
    sudo journalctl --vacuum-time=1seconds

  4. #4
    Join Date
    Apr 2016
    Location
    North America
    Posts
    537

    Default Re: journalctl --vacuum-time

    Thanks; I forgot to mention I was logged in as root.

    ---

    More info: https://www.freedesktop.org/software...--vacuum-size=

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •