Download the Logs

The log files generated by Plex provide important information when debugging issues with the Plex Media Server. While the files can easily be accessed from the server, it may be more convenient to download the Plex logs from the server.

This API command will allow you to compress the Plex logs into a zip file, and then send them to the local system making the request.

URL

GET http://[IP address]:32400/diagnostics/logs/?X-Plex-Token=[PlexToken]

Parameters

NameDescription
IP addressThe IP address of the Plex Media server.
PlexTokenThe temporary authentication Plex token.

Return Status

HTTP CodeDescription
200Success - The request was successful.
401Unauthorized - The Plex token provided was not valid.

Response

When run from a Web browser, this command will download the Plex log files in a zip file to the local system. The size of the download depends on how the size the number of log files available on the server.

Examples

curl -X GET http://[IP address]:32400/diagnostics/logs/?X-Plex-Token=[PlexToken]
import requests
plex_url = http://[IP address]:32400/diagnostics/logs/?X-Plex-Token=[PlexToken]
response = requests.get(plex_url)
print(response.text)
$response = Invoke-RestMethod 'http://[IP address]:32400/diagnostics/logs/?X-Plex-Token=[PlexToken]' -Method 'GET'
Write-Output $response
Subscribe
Display