Jellyfin Forum
Increase number of log files - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Increase number of log files (/t-increase-number-of-log-files)

Pages: 1 2


Increase number of log files - Six66Mike - 2023-08-22

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?


RE: Increase number of log files - Venson - 2023-08-22

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.


RE: Increase number of log files - Six66Mike - 2023-08-24

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.


RE: Increase number of log files - Venson - 2023-08-24

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.


RE: Increase number of log files - Six66Mike - 2023-08-24

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.


RE: Increase number of log files - Six66Mike - 2023-08-24

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.


RE: Increase number of log files - Venson - 2023-08-24

Sure, you can edit this page by using the lower left button under the text. Any help is appreciated.


RE: Increase number of log files - Six66Mike - 2023-08-25

*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.


RE: Increase number of log files - TheDreadPirate - 2023-08-25

You can create a daily cron job to copy the previous day's logs.


RE: Increase number of log files - Six66Mike - 2023-08-26

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?