• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Increase number of log files

    Pages (2): 1 2 Next »

     
    • 0 Vote(s) - 0 Average

    Increase number of log files

    How do I get to store more than 3 days worth of log files?
    Six66Mike
    Offline

    Junior Member

    Posts: 48
    Threads: 14
    Joined: 2023 Jun
    Reputation: 0
    #1
    2023-08-22, 11:47 AM
    I noticed an issue with Trakt integration this week but with only 3 days a logs I can't do much investigation.  Is there a way to increase the number of log files stored on my NAS (I'm using the SyncoCommunity build of Jellyfin, v10.8.10) or amend the frequency in which they are purged so I can collect more data?
    Apologies for any responses that seem short/rude, on the spectrum and get frustrated very easily with technology. Do my best to keep it under wraps but doesn't always work when something isn't going as it should. Weary-face
    Venson
    Offline

    Moderator, Server Dev, XBox Maintainer

    Posts: 375
    Threads: 7
    Joined: 2023 Jun
    Reputation: 15
    Country:Germany
    #2
    2023-08-22, 11:59 AM
    Hey @Six66Mike

    Do you mean the jellyfin logfiles? You can force a write to file by just stopping the server. However the latest logfile should contains all up-to-date information even if its only re-created every few days.
    typos are finders, keepers.
    Next Jellyfin release 10.11.0 will be Soon™
    Soon™ is an unregistered trademark of Jellyfin International
    Six66Mike
    Offline

    Junior Member

    Posts: 48
    Threads: 14
    Joined: 2023 Jun
    Reputation: 0
    #3
    2023-08-24, 09:23 AM
    Yes the Jellyfin logs in ../jellyfin/var/logs

    I don't need it to write to the server, I want more than 3 days worth of logs. How do I stop the purge of files after 3 days or extend the timeframe before they're deleted?

    3 days isn't enough.
    Apologies for any responses that seem short/rude, on the spectrum and get frustrated very easily with technology. Do my best to keep it under wraps but doesn't always work when something isn't going as it should. Weary-face
    Venson
    Offline

    Moderator, Server Dev, XBox Maintainer

    Posts: 375
    Threads: 7
    Joined: 2023 Jun
    Reputation: 15
    Country:Germany
    #4
    2023-08-24, 09:36 AM (This post was last modified: 2023-08-24, 09:36 AM by Venson. Edited 1 time in total.)
    Those values are hardcoded into the server code as far as i know. But i really dont understand the issue here. Older logfiles are still there, also you get into issues when the logfile gets too big if you try to open it with text editors.
    typos are finders, keepers.
    Next Jellyfin release 10.11.0 will be Soon™
    Soon™ is an unregistered trademark of Jellyfin International
    Six66Mike
    Offline

    Junior Member

    Posts: 48
    Threads: 14
    Joined: 2023 Jun
    Reputation: 0
    #5
    2023-08-24, 09:44 AM
    This is literally all that comes up when I run ls on the log folder:

    log_20230822.log log_20230823.log log_20230824.log

    It's 3 days and nothing else. The old logs are not there. Never have been. They are purged every 3 days since I installed Jellyfin.
    Apologies for any responses that seem short/rude, on the spectrum and get frustrated very easily with technology. Do my best to keep it under wraps but doesn't always work when something isn't going as it should. Weary-face
    Six66Mike
    Offline

    Junior Member

    Posts: 48
    Threads: 14
    Joined: 2023 Jun
    Reputation: 0
    #6
    2023-08-24, 09:49 AM
    I've probably solved this now when looking at the Trakt issue I shared.

    There's a "Clean Log Directory" task in Scheduled Tasks, certainly not one I created. The description is "Deletes log files that are more than 3 days old." and the task trigger is Every 24 hours.

    I have deleted the trigger and hopefully tomorrow I can verify this is solved.

    Default scheduled tasks should be better documented, https://jellyfin.org/docs/general/server/tasks/ doesn't have any mention of them.
    Apologies for any responses that seem short/rude, on the spectrum and get frustrated very easily with technology. Do my best to keep it under wraps but doesn't always work when something isn't going as it should. Weary-face
    Venson
    Offline

    Moderator, Server Dev, XBox Maintainer

    Posts: 375
    Threads: 7
    Joined: 2023 Jun
    Reputation: 15
    Country:Germany
    #7
    2023-08-24, 09:58 AM
    Sure, you can edit this page by using the lower left button under the text. Any help is appreciated.
    typos are finders, keepers.
    Next Jellyfin release 10.11.0 will be Soon™
    Soon™ is an unregistered trademark of Jellyfin International
    Six66Mike
    Offline

    Junior Member

    Posts: 48
    Threads: 14
    Joined: 2023 Jun
    Reputation: 0
    #8
    2023-08-25, 01:41 AM
    *sigh*

    log_20230823.log log_20230824.log log_20230825.log

    Still not fixed. Clean log directory task has not run overnight yet there's still only 3 log files.
    Apologies for any responses that seem short/rude, on the spectrum and get frustrated very easily with technology. Do my best to keep it under wraps but doesn't always work when something isn't going as it should. Weary-face
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #9
    2023-08-25, 02:01 AM
    You can create a daily cron job to copy the previous day's logs.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Six66Mike
    Offline

    Junior Member

    Posts: 48
    Threads: 14
    Joined: 2023 Jun
    Reputation: 0
    #10
    2023-08-26, 10:52 AM
    I have no idea how to do that lol.

    I'm curious as to why Venson is saying old log files are still there when they aren't, is there a possible bug in the SynoCommunity build or am I just unlucky?

    The scheduled task hasn't run for 2 days since I deleted the trigger yet it's still only storing the most recent 3 days. Where can I turn that off?
    Apologies for any responses that seem short/rude, on the spectrum and get frustrated very easily with technology. Do my best to keep it under wraps but doesn't always work when something isn't going as it should. Weary-face
    Pages (2): 1 2 Next »

    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode