Server Logs Settings

Server Version#: Version 4.118.0
Player Version#:

Hello, Is there any way to change default settings for logs, looks like they only will be saved for a day, id like to have the logs saved for at least 7 days for exampe. cant find the settings for this, logrotate isnt enabled on the server. Hope to see some light on this question =)

There‘s no settings for that in Plex.

To add to Tom,
There is a hidden preference (Preferences.xml) with PMS stopped.

LogNumFiles="x"

This tells PMS to retain the last “x” logfiles where each log file is 10MB worth of activity.

With DEBUG logging on and VERBOSE logging off, I’ve observed 20-25 per day seems to hold true unless you have a very busy server.

1 Like

Isn’t there a preference you can set to enable syslog logging? I thought I saw that as an option somewhere before. Syslog logs could then be forwarded to a central log server in theory enabling even longer retention.

On desktop/server Linux installations, the service config can be overridden to redirect to SYSLOG.

This will enable retention for however long desired,

HOWEVER, We cannot support SYSLOG-based logs

  1. To enable SYSLOG use,
sudo systemctl edit plexmediaserver
  1. In the text editor it opens –
[Service]
Environment="PLEX_MEDIA_SERVER_USE_SYSLOG=true"
  1. Save and exit the editor

  2. sudo systemctl daemon-reload

  3. sudo systemctl restart plexmediaserver

1 Like

nice, i think that will solve my issue, i have a temp solution that parses the current files and write it down to another now =) but ill change this, thanks.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.