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.
GET http://[IP address]:32400/diagnostics/logs/?X-Plex-Token=[PlexToken]
|IP address||The IP address of the Plex Media server.|
|PlexToken||The temporary authentication Plex token.|
|200||Success - The request was successful.|
|401||Unauthorized - The Plex token provided was not valid.|
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.
Download a compressed copy of the Plex log files from the Plex Media Server located at the IP address of 192.168.1.4: