Log Access
NOTE: Log access is granted only if the property debug.logaccess
is true in the Stream Manager red5-web.properties
file.
List logs
Description
Lists all log files on the server.
REQUEST
- URI:
http://{host}:{port}/streammanager/api/4.0/admin/log?accessToken=<acccessToken>
- Method: GET
RESPONSE
- Failure: HTTP CODE
400
or404
- Data:
- Success: HTTP CODE
200
- Data:
Example
REQUEST
- URI:
http://{host}:{port}/streammanager/api/4.0/admin/log?accessToken=xyz123
- Method : GET
RESPONSE
- Success: HTTP CODE
200
- Data:
Get log
Description
Allows access to a log file by name by making it temporarily accessible via the Red5 Pro web server. A temporary path is generated to enable the download. You can download the file by using the server address, the path provided in the response, and the filename. After a limited time, the file is removed and the temporary path is deleted (for security).
REQUEST
- URI:
http://{host}:{port}/streammanager/api/4.0/admin/log/{logfilename}?accessToken=<accessToken>
- Method: GET
RESPONSE
- Failure: HTTP CODE
400
or404
- Data :
- Success: HTTP CODE
200
- Data:
The log file can then be downloaded using the url: http(s)://{host}:{port}/
/{logfilename}
The download is auto expired and removed after a set limit by thelogAccessManager
.
Example
REQUEST
- URI:
http://{host}:{port}/streammanager/api/4.0/admin/log/red5.log?accessToken=xyz123
- Method : GET
RESPONSE
- Success: HTTP CODE
200
- Data:
The log file can then be downloaded using the URL
http://streammanager-ip:5080/tmplogs/yFFFbTch/red5.log