Missing Red5 log files, where are they?!

By default Red5 0.7.0 stores its logs into the log folder (/opt/red5/log/ on Linux or C:\Program Files\Red5\log\ on Windows) but unless you are running Red5 as a service on Windows you will never see any log files in that folder.

Here is what you need to do:

  • make sure the log folder mentioned above exists and it is writable. If you compile Red5 yourself the log folder is not created, you need to manually create it.
  • edit Red5/conf/logback.xml and change the path for the red5 general log from: ../log/red5.log to: log/red5.log (leave the path unchanged if you are running Red5 as a service on Windows)
  • edit Red5/conf/logback.xml and change the path for the error log from: ../log/error.log to: log/error.log (leave the path unchanged if you are running Red5 as a service on Windows )
  • edit Red5/conf/logback.xml and change the logging level for the org.red5.server.net.rtmp.RTMPHandler logger from OFF to DEBUG. This will ensure any errors that happen while a user is connecting to the Red5 server are properly logged in the log files.

There you go, you should now Restart the Red5 server and look for your newly created logs in Red5/log.

This file: Red5/conf/logback.xml controls the logging for the entire Red5 server, but Red5 applications might have their own logging configuration file. Such a file (if any ) should be located at Red5/webapps/application_name/WEB-INF/classes/logback.xml .

Things might change in future versions of Red5 so I will keep this post updated

Tags:

2 Responses to “Missing Red5 log files, where are they?!”

  1. Sunil Says:

    Thanks, Long back i also posted an article how can you forward Red5 log to a centralized log server.

    http://sunil-gupta.blogspot.com/2007/07/red5-log-forwarding-to-centralized-log.html

  2. Fabio Says:

    Didn’t worked for me i put the configs like you said so and restarted the service.
    Also my conf/log4j.properties is like this log4j.rootCategory=DEBUG, CONSOLE

    I created the log with 0777 and put the files like you said so but none file was created

Leave a Reply