• Morethanevil@lemmy.fedifriends.social
    link
    fedilink
    arrow-up
    7
    ·
    4 months ago

    Cleanup

    Check current disk usage:

    sudo journalctl --disk-usage

    Use rotate function:

    sudo journalctl --rotate

    Or

    Remove all logs and keep the last 2 days:

    sudo journalctl --vacuum-time=2days

    Or

    Remove all logs and only keep the last 100MB:

    sudo journalctl --vacuum-size=100M

    How to read logs:

    Follow specific log for a service:

    sudo journalctl -fu SERVICE

    Show extended log info and print the last lines of a service:

    sudo journalctl -xeu SERVICE

    • lseif@sopuli.xyz
      link
      fedilink
      arrow-up
      3
      ·
      4 months ago

      --vacuum-time=2days

      this implies i keep an operating system installed for that long

    • slazer2au@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 months ago

      sudo journalctl --disk-usage

      panda@Panda:~$ sudo journalctl --disk-usage  
      No journal files were found.  
      Archived and active journals take up 0B in the file system.
      

      hmmmmmm…

    • macniel@feddit.org
      link
      fedilink
      arrow-up
      1
      ·
      4 months ago

      I mean yeah -fu stands for “follow unit” but its also a nice coincidence when it comes to debugging that particular service.

    • superkret@feddit.org
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      4 months ago
      user@u9310x-Slack:~$ sudo journalctl --disk-usage  
      Password:  
      sudo: journalctl: command not found  
      
  • zoey@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 months ago

    Recently had the jellyfin log directory take up 200GB, checked the forums and saw someone with the same problem but 1TB instead.

    • Agent641@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      3 months ago

      2024-03-28 16:37:12:017 - Everythings fine

      2024-03-28 16:37:12:016 - Everythings fine

      2024-03-28 16:37:12:015 - Everythings fine

  • FiniteBanjo@lemmy.today
    link
    fedilink
    arrow-up
    1
    ·
    4 months ago

    Windows isn’t great by any means but I do like the way they have the Event Viewer layout sorted to my tastes.

  • RobotZap10000@feddit.nl
    link
    fedilink
    arrow-up
    0
    ·
    4 months ago

    Try 60GB of system logs after 15 minutes of use. My old laptop’s wifi card worked just fine, but spammed the error log with some corrected error. Adding pci=noaer to grub config fixed it.