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={plex_token}

Parameters

NameDescription
ip_addressThe IP address of the Plex Media server.
plex_tokenThe 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={plex_token}
import requests
plex_url = http://{ip_address}:32400/diagnostics/logs/?X-Plex-Token={plex_token}
response = requests.get(plex_url)
print(response.text)
$response = Invoke-RestMethod 'http://{ip_address}:32400/diagnostics/logs/?X-Plex-Token={plex_token}' -Method 'GET'
Write-Output $response
Subscribe
Display