• 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?

    pashdown
    Offline

    Junior Member

    Posts: 5
    Threads: 2
    Joined: 2025 Mar
    Reputation: 0
    Country:United States
    #1
    2025-04-01, 06:24 PM
    The documentation states that on systems that have logging.default.json and logging.json, the latter overrides the former.  However my logging.json has ""path": "%JELLYFIN_LOG_DIR%//jellyfin.log"" and what is actually created are files with the name jellyfinYYYYMMDD.log, which is fine, execept that I need a plain jellyfin.log to work with fail2ban.  How can I get the settings in logging.json to be respected?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    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]
    pashdown
    Offline

    Junior Member

    Posts: 5
    Threads: 2
    Joined: 2025 Mar
    Reputation: 0
    Country:United States
    #3
    2025-04-01, 09:14 PM
    That's what I figured I was going to need to do. BTW, adding a "fail2ban-client reload (jail name)" after you make your symlink will probably stop fail2ban from complaining.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2025-04-01, 09:39 PM
    Code:
    2025-03-30 00:02:01,538 fail2ban.filter         [1841]: WARNING [jellyfin] Detected a log entry 2m 1s before the current time in operation mode. This looks like a latency problem. Treating such entries as if they just happened.

    The log message indicates that it is reading in the logs prior to the symlink change. So I'm not going to bother it.
    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)


    • 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