Wowza Community

how can change folder of wowza log files?

I, i need to change the folder of wowza log’s files. i have this files in /usr/local/WowzaMediaServer-3.0.5/logs. i need change that for /home/wowza_logs any help?

You can set the file location for each log file in their Appender in the /conf/log4j.properties file. For example the Access appender has this line:

log4j.appender.serverAccess.File=${com.wowza.wms.ConfigHome}/logs/wowzamediaserver_access.log

Change the path in that line, then restart Wowza.

Richard

Just enter the exact path, do not use the Wowza environment variables. Any local path should work. You do need the write permissions for user Wowza is run as to allow Wowza to write to that location.

Richard

Yes, looks right

Richard

Is it a permission problem? Do you see any log output in Wowza console if you start Wowza in stand-alone (/bin/startup.bat) mode?

Richard

cd /home/wowza_logs
ls -l

Compare to default location

Richard

In the logs? What does it say? Have you made changes to /conf/Server.xml?

Richard

Hi, i have a JMX config error. what is this?

I need more info. Where is this JMX error? What is going on when the above error occurs in the log? What is the result of this error?

What are you doing exactly, and what does not work?

Richard

Juan,

Please run Wowza from /[Wowza-folder]/bin/startup.sh. This is what was meant by “Wowza console”. When you run Wowza like this, you might see an error message regarding your log file location.

i need change the location for all log files in to this folder. i can do it?

thanks for your quickly answer Richard.

Richard, the new folder is in a different location to the path of wowza install. That is becouse i need put this logs files in another partiion of disk. becouse this files is very big.

Thanks. so, this line: log4j.appender.serverAccess.File=${com.wowza.wms.ConfigHome}/logs/wowzamediaserver_access.log

is: log4j.appender.serverAccess.File=/home/wowza_logs/wowzamediaserver_access.log

that’s right?

Richard, i changed this line and log file keep doing the same. not write in the new location.

this is the line: log4j.appender.serverAccess.File=/home/wowza_logs/wowzamediaserver_access.log

is alinux server, where can see that?

have files, but from another date.

Hi, i have a JMX config error. what is this?

Not. and the file is the original file.

Any can asnwer me? i continus with this error.

this is the conent to the Server.xml file

*

8083

Server,VHost,VHostItem,Application,ApplicationInstance,MediaCaster,Module,IdleWorker

true

localhost

localhost

8084

8085

true

${com.wowza.wms.ConfigHome}/conf/jmxremote.password

${com.wowza.wms.ConfigHome}/conf/jmxremote.access

false

Shockwave Flash|CFNetwork|MacNetwork/1.0 (Macintosh)

10

10

6970

false

Log file say:

#Version: 1.0

#Start-Date: 2012-10-03 22:03:08 CEST

#Software: Wowza Media Server 3.1.2 build1624

#Date: 2012-10-03

#Fields: x-severity x-category x-event date time c-client-id c-ip c-port cs-bytes sc-bytes x-duration x-sname x-stream-id x-spos sc-stream-bytes cs-stream-bytes x-file-size x-file-length x-ctx x-comment

#Version: 1.0

#Start-Date: 2012-10-03 22:03:09 CEST

#Software: Wowza Media Server 3.1.2 build1624

#Date: 2012-10-03

#Fields: x-severity x-category x-event date time c-client-id c-ip c-port cs-bytes sc-bytes x-duration x-sname x-stream-id x-spos sc-stream-bytes cs-stream-bytes x-file-size x-file-length x-ctx x-comment

ERROR server comment 2012-10-03 22:03:14 - - - - - 7.0 - - - - - - - - ModuleBase.sendStreamOnStatusError: java.lang.NullPointerException

ERROR server comment 2012-10-03 22:03:14 - - - - - 7.086 - - - - - - - - ModuleBase.sendStreamOnStatusError: java.lang.NullPointerException

ERROR server comment 2012-10-03 22:03:14 - - - - - 7.173 - - - - - - - - ModuleBase.sendStreamOnStatusError: java.lang.NullPointerException

ERROR server comment 2012-10-03 22:03:14 - - - - - 7.222 - - - - - - - - ModuleBase.sendStreamOnStatusError: java.lang.NullPointerException

ERROR server comment 2012-10-03 22:03:15 - - - - - 7.263 - - - - - - - - ModuleBase.sendStreamOnStatusError: java.lang.NullPointerException

ERROR server comment 2012-10-03 22:03:15 - - - - - 7.311 - - - - - - - - ModuleBase.sendStreamOnStatusError: java.lang.NullPointerException

ERROR server comment 2012-10-03 22:03:15 - - - - - 7.375 - - - - - - - - ModuleBase.sendStreamOnStatusError: java.lang.NullPointerException

ERROR server comment 2012-10-03 22:03:15 - - - - - 7.438 - - - - - - - - ModuleBase.sendStreamOnStatusError: java.lang.NullPointerException

ERROR server comment 2012-10-03 22:03:15 - - - - - 7.498 - - - - - - - - ModuleBase.sendStreamOnStatusError: java.lang.NullPointerException

ERROR server comment 2012-10-03 22:03:15 - - - - - 7.699 - - - - - - - - ModuleBase.sendStreamOnStatusError: java.lang.NullPointerException

ERROR server comment 2012-10-03 22:03:15 - - - - - 7.752 - - - - - - - - ModuleBase.sendStreamOnStatusError: java.lang.NullPointerException

ERROR server comment 2012-10-03 22:03:15 - - - - - 7.805 - - - - - - - - ModuleBase.sendStreamOnStatusError: java.lang.NullPointerException

ERROR server comment 2012-10-03 22:03:15 - - - - - 7.853 - - - - - - - - ModuleBase.sendStreamOnStatusError: java.lang.NullPointerException

ERROR server comment 2012-10-03 22:03:15 - - - - - 7.928 - - - - - - - - ModuleBase.sendStreamOnStatusError: java.lang.NullPointerException