• 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 logging.json path not utilized?

     
    • 0 Vote(s) - 0 Average

    logging.json path not utilized?

    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 462
    Country:United States
    #2
    2025-04-01, 06:33 PM (This post was last modified: 2025-04-01, 06:35 PM by TheDreadPirate. Edited 1 time in total.)
    I was never able to figure that out. Instead of fighting with logging.json I opted to just symlink log_YYYYMMDD.log to jellyfin.log and at midnight a cron recreates the jellyfin.log symlink for the newly created log. fail2ban complains a bit about there being logs it hasn't seen during the symlink transition, but it still reads them in and follows the new symlink.

    The cronjob calls a script with the following contents.

    Code:
    #!/bin/bash

    DATE=$(date +'%Y%m%d')

    rm /docker/containers/jellyfin-prod-data/config/log/jellyfin.log
    ln -s log_${DATE}.log /docker/containers/jellyfin-prod-data/config/log/jellyfin.log

    The script is located in /usr/sbin and is called as follows from root's crontab.

    Code:
    # m h  dom mon dow   command
    1 0 * * * rotateJellyfinLog
    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]
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    logging.json path not utilized? - by pashdown - 2025-04-01, 06:24 PM
    RE: logging.json path not utilized? - by TheDreadPirate - 2025-04-01, 06:33 PM
    RE: logging.json path not utilized? - by pashdown - 2025-04-01, 09:14 PM
    RE: logging.json path not utilized? - by TheDreadPirate - 2025-04-01, 09:39 PM

    • 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