Results 1 to 3 of 3

Thread: Wowza log not updating on separate text file(on daily basis)

  1. #1
    Join Date
    Jan 2013
    Posts
    27

    Default Wowza log not updating on separate text file(on daily basis)

    Hi,
    Am using wowza 3.6.2 version. I have runned the service and daily i used to get the log file updated on a separate txt file every day, but suddenly one day i saw that the log file has been updated in a single file itself without any separation of dates. I checked the log4j properties there were no changes and there was no error in the log file too. I couldn't guess what would have caused this issue? Can anyone help me? What should i do to get the log files updated everyday ? Here is my log4j properties,



    log4j.rootCategory=INFO, stdout, serverAccess, serverError, serverStats,serverAccessUDP

    # The logging context is
    #log4j.logger.[vhost].[application].[appInstance]

    # Field list
    #date,time,tz,x-event,x-category,x-severity,x-status,x-ctx,x-comment,x-vhost,x-app,x-appinst,x-duration,s-ip,s-port,s-uri,c-ip,c-proto,c-referrer,c-user-agent,c-client-id,cs-bytes,sc-bytes,x-stream-id,x-spos,cs-stream-bytes,sc-stream-bytes,x-sname,x-sname-query,x-file-name,x-file-ext,x-file-size,x-file-length,x-suri,x-suri-stem,x-suri-query,cs-uri-stem,cs-uri-query

    # Category list
    #server,vhost,application,session,stream,rtsp

    # Event list
    #connect-pending,connect,disconnect,publish,unpublish,play,pause,setbuffertime,create,destroy,setstreamtype,u npause,seek,stop,record,recordstop,server-start,server-stop,vhost-start,vhost-stop,app-start,app-stop,comment,announce

    # To force UTF-8 encoding of log values add the following property to the appender definition (where [appender] is the name of the appender such as "stdout" or "R")
    #log4j.appender.[appender].encoding=UTF-8

    # Console appender
    log4j.appender.stdout=org.apache.log4j.ConsoleAppender
    log4j.appender.stdout.layout=com.wowza.wms.logging.ECLFPatternLayout
    log4j.appender.stdout.layout.Fields=x-severity,x-category,x-event,x-ctx,x-comment,x-sname-query,x-suri-query
    log4j.appender.stdout.layout.OutputHeader=false
    log4j.appender.stdout.layout.QuoteFields=false
    log4j.appender.stdout.layout.Delimeter=space

    # Access appender
    log4j.appender.serverAccess=org.apache.log4j.DailyRollingFileAppender
    log4j.appender.serverAccess.DatePattern='.'yyyy-MM-dd
    log4j.appender.serverAccess.File=${com.wowza.wms.ConfigHome}/logs/wowzamediaserver_access.log
    log4j.appender.serverAccess.layout=com.wowza.wms.logging.ECLFPatternLayout
    #log4j.appender.serverAccess.layout.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
    log4j.appender.serverAccess.layout.Fields=date,time,tz,x-event,x-category,x-severity,x-status,x-ctx,x-comment,x-vhost,x-app,x-appinst,x-duration,s-ip,s-port,s-uri,c-ip,c-proto,c-referrer,c-user-agent,c-client-id,cs-bytes,sc-bytes,x-stream-id,x-spos,cs-stream-bytes,sc-stream-bytes,x-sname,x-sname-query,x-file-name,x-file-ext,x-file-size,x-file-length,x-suri,x-suri-stem,x-suri-query,cs-uri-stem,cs-uri-query
    log4j.appender.serverAccess.layout.OutputHeader=true
    log4j.appender.serverAccess.layout.QuoteFields=false
    log4j.appender.serverAccess.layout.Delimeter=tab

    # Access appender (UDP) - uncomment and add to rootCategory list on first line
    #log4j.appender.serverAccessUDP=com.wowza.wms.logging.UDPAppender
    #log4j.appender.serverAccessUDP.remoteHost=192.123.00.255
    #log4j.appender.serverAccessUDP.port=8881
    #log4j.appender.serverAccessUDP.layout=com.wowza.wms.logging.ECLFPatternLayout
    #log4j.appender.serverAccessUDP.layout.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
    #log4j.appender.serverAccessUDP.layout.OutputHeader=true
    #log4j.appender.serverAccessUDP.layout.QuoteFields=false
    #log4j.appender.serverAccessUDP.layout.Delimeter=tab
    #log4j.appender.serverAccessUDP.layout.CategoryInclude=session,stream
    #log4j.appender.serverAccessUDP.layout.EventExclude=comment
    # Error appender
    log4j.appender.serverError=org.apache.log4j.DailyRollingFileAppender
    log4j.appender.serverError.DatePattern='.'yyyy-MM-dd
    log4j.appender.serverError.File=${com.wowza.wms.ConfigHome}/logs/wowzamediaserver_error.log
    log4j.appender.serverError.layout=com.wowza.wms.logging.ECLFPatternLayout
    log4j.appender.serverError.layout.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
    log4j.appender.serverError.layout.OutputHeader=true
    log4j.appender.serverError.layout.QuoteFields=false
    log4j.appender.serverError.layout.Delimeter=tab
    log4j.appender.serverError.Threshold=WARN

    # Statistics appender (to use this appender add "serverStats" to the list of appenders in the first line of this file)
    log4j.appender.serverStats=org.apache.log4j.DailyRollingFileAppender
    log4j.appender.serverStats.DatePattern='.'yyyy-MM-dd
    log4j.appender.serverStats.File=${com.wowza.wms.ConfigHome}/logs/wowzamediaserver_stats.log
    log4j.appender.serverStats.layout=com.wowza.wms.logging.ECLFPatternLayout
    log4j.appender.serverStats.layout.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,x-sname-query,x-suri-query
    log4j.appender.serverStats.layout.OutputHeader=true
    log4j.appender.serverStats.layout.QuoteFields=false
    log4j.appender.serverStats.layout.Delimeter=tab
    log4j.appender.serverStats.layout.CategoryInclude=session,stream
    log4j.appender.serverStats.layout.EventExclude=comment

    # Below are logging definitions for dynamic log file generation on a per application basis.
    # To use these logging appender, uncomment each of the lines below. It will generate log files
    # using the following directory/file structure:
    #
    # [install-dir]/logs/[vhost]/[application]/wowzamediaserver_access.log
    # [install-dir]/logs/[vhost]/[application]/wowzamediaserver_error.log
    # [install-dir]/logs/[vhost]/[application]/wowzamediaserver_stats.log

    #### APPLICATION LEVEL LOGGING CONFIG - START ####
    #log4j.logger.${com.wowza.wms.context.VHost}.${com.wowza.wms.context.Application}=INFO, ${com.wowza.wms.context.VHost}_${com.wowza.wms.context.Application}_access, ${com.wowza.wms.context.VHost}_${com.wowza.wms.context.Application}_error, ${com.wowza.wms.context.VHost}_${com.wowza.wms.context.Application}_stats

    #log4j.appender.${com.wowza.wms.context.VHost}_${com.wowza.wms.context.Application}_access=org.apach e.log4j.DailyRollingFileAppender
    #log4j.appender.${com.wowza.wms.context.VHost}_${com.wowza.wms.context.Application}_access.DatePatte rn='.'yyyy-MM-dd
    #log4j.appender.${com.wowza.wms.context.VHost}_${com.wowza.wms.context.Application}_access.File=${co m.wowza.wms.ConfigHome}/logs/${com.wowza.wms.context.VHost}/${com.wowza.wms.context.Application}/wowzamediaserver_access.log
    #log4j.appender.${com.wowza.wms.context.VHost}_${com.wowza.wms.context.Application}_access.layout=co m.wowza.wms.logging.ECLFPatternLayout
    #log4j.appender.${com.wowza.wms.context.VHost}_${com.wowza.wms.context.Application}_access.layout.Fi elds=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
    #log4j.appender.${com.wowza.wms.context.VHost}_${com.wowza.wms.context.Application}_access.layout.Ou tputHeader=true
    #log4j.appender.${com.wowza.wms.context.VHost}_${com.wowza.wms.context.Application}_access.layout.Qu oteFields=false
    #log4j.appender.${com.wowza.wms.context.VHost}_${com.wowza.wms.context.Application}_access.layout.De limeter=tab

    #log4j.appender.${com.wowza.wms.context.VHost}_${com.wowza.wms.context.Application}_error=org.apache .log4j.DailyRollingFileAppender
    #log4j.appender.${com.wowza.wms.context.VHost}_${com.wowza.wms.context.Application}_error.DatePatter n='.'yyyy-MM-dd
    #log4j.appender.${com.wowza.wms.context.VHost}_${com.wowza.wms.context.Application}_error.File=${com .wowza.wms.ConfigHome}/logs/${com.wowza.wms.context.VHost}/${com.wowza.wms.context.Application}/wowzamediaserver_error.log
    #log4j.appender.${com.wowza.wms.context.VHost}_${com.wowza.wms.context.Application}_error.layout=com .wowza.wms.logging.ECLFPatternLayout
    #log4j.appender.${com.wowza.wms.context.VHost}_${com.wowza.wms.context.Application}_error.layout.Fie lds=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
    #log4j.appender.${com.wowza.wms.context.VHost}_${com.wowza.wms.context.Application}_error.layout.Out putHeader=true
    #log4j.appender.${com.wowza.wms.context.VHost}_${com.wowza.wms.context.Application}_error.layout.Quo teFields=false
    #log4j.appender.${com.wowza.wms.context.VHost}_${com.wowza.wms.context.Application}_error.layout.Del imeter=tab
    #log4j.appender.${com.wowza.wms.context.VHost}_${com.wowza.wms.context.Application}_error.Threshold= WARN

    #log4j.appender.${com.wowza.wms.context.VHost}_${com.wowza.wms.context.Application}_stats=org.apache .log4j.DailyRollingFileAppender
    #log4j.appender.${com.wowza.wms.context.VHost}_${com.wowza.wms.context.Application}_stats.DatePatter n='.'yyyy-MM-dd
    #log4j.appender.${com.wowza.wms.context.VHost}_${com.wowza.wms.context.Application}_stats.File=${com .wowza.wms.ConfigHome}/logs/${com.wowza.wms.context.VHost}/${com.wowza.wms.context.Application}/wowzamediaserver_stats.log
    #log4j.appender.${com.wowza.wms.context.VHost}_${com.wowza.wms.context.Application}_stats.layout=com .wowza.wms.logging.ECLFPatternLayout
    #log4j.appender.${com.wowza.wms.context.VHost}_${com.wowza.wms.context.Application}_stats.layout.Fie lds=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
    #log4j.appender.${com.wowza.wms.context.VHost}_${com.wowza.wms.context.Application}_stats.layout.Out putHeader=true
    #log4j.appender.${com.wowza.wms.context.VHost}_${com.wowza.wms.context.Application}_stats.layout.Quo teFields=false
    #log4j.appender.${com.wowza.wms.context.VHost}_${com.wowza.wms.context.Application}_stats.layout.Del imeter=tab
    #log4j.appender.${com.wowza.wms.context.VHost}_${com.wowza.wms.context.Application}_stats.layout.Cat egoryInclude=session,stream
    #log4j.appender.${com.wowza.wms.context.VHost}_${com.wowza.wms.context.Application}_stats.layout.Eve ntExclude=comment
    #### APPLICATION LEVEL LOGGING CONFIG - STOP ####


    # Below are logging definitions for dynamic log file generation on a per virtual host basis.
    # To use these logging appender, uncomment each of the lines below. It will generate log files
    # using the following directory/file structure:
    #
    # [install-dir]/logs/[vhost]/wowzamediaserver_access.log
    # [install-dir]/logs/[vhost]/wowzamediaserver_error.log
    # [install-dir]/logs/[vhost]/wowzamediaserver_stats.log

    #### VHOST LEVEL LOGGING CONFIG - START ####
    #log4j.logger.${com.wowza.wms.context.VHost}=INFO, ${com.wowza.wms.context.VHost}_access, ${com.wowza.wms.context.VHost}_error, ${com.wowza.wms.context.VHost}_stats

    #log4j.appender.${com.wowza.wms.context.VHost}_access=org.apache.log4j.DailyRollingFileAppender
    #log4j.appender.${com.wowza.wms.context.VHost}_access.DatePattern='.'yyyy-MM-dd
    #log4j.appender.${com.wowza.wms.context.VHost}_access.File=${com.wowza.wms.ConfigHome}/logs/${com.wowza.wms.context.VHost}/wowzamediaserver_access.log
    #log4j.appender.${com.wowza.wms.context.VHost}_access.layout=com.wowza.wms.logging.ECLFPatternLayout
    #log4j.appender.${com.wowza.wms.context.VHost}_access.layout.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
    #log4j.appender.${com.wowza.wms.context.VHost}_access.layout.OutputHeader=true
    #log4j.appender.${com.wowza.wms.context.VHost}_access.layout.QuoteFields=false
    #log4j.appender.${com.wowza.wms.context.VHost}_access.layout.Delimeter=tab

    #log4j.appender.${com.wowza.wms.context.VHost}_error=org.apache.log4j.DailyRollingFileAppender
    #log4j.appender.${com.wowza.wms.context.VHost}_error.DatePattern='.'yyyy-MM-dd
    #log4j.appender.${com.wowza.wms.context.VHost}_error.File=${com.wowza.wms.ConfigHome}/logs/${com.wowza.wms.context.VHost}/wowzamediaserver_error.log
    #log4j.appender.${com.wowza.wms.context.VHost}_error.layout=com.wowza.wms.logging.ECLFPatternLayout
    #log4j.appender.${com.wowza.wms.context.VHost}_error.layout.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
    #log4j.appender.${com.wowza.wms.context.VHost}_error.layout.OutputHeader=true
    #log4j.appender.${com.wowza.wms.context.VHost}_error.layout.QuoteFields=false
    #log4j.appender.${com.wowza.wms.context.VHost}_error.layout.Delimeter=tab
    #log4j.appender.${com.wowza.wms.context.VHost}_error.Threshold=WARN

    #log4j.appender.${com.wowza.wms.context.VHost}_stats=org.apache.log4j.DailyRollingFileAppender
    #log4j.appender.${com.wowza.wms.context.VHost}_stats.DatePattern='.'yyyy-MM-dd
    #log4j.appender.${com.wowza.wms.context.VHost}_stats.File=${com.wowza.wms.ConfigHome}/logs/${com.wowza.wms.context.VHost}/wowzamediaserver_stats.log
    #log4j.appender.${com.wowza.wms.context.VHost}_stats.layout=com.wowza.wms.logging.ECLFPatternLayout
    #log4j.appender.${com.wowza.wms.context.VHost}_stats.layout.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
    #log4j.appender.${com.wowza.wms.context.VHost}_stats.layout.OutputHeader=true
    #log4j.appender.${com.wowza.wms.context.VHost}_stats.layout.QuoteFields=false
    #log4j.appender.${com.wowza.wms.context.VHost}_stats.layout.Delimeter=tab
    #log4j.appender.${com.wowza.wms.context.VHost}_stats.layout.CategoryInclude=session,stream
    #log4j.appender.${com.wowza.wms.context.VHost}_stats.layout.EventExclude=comment
    #### VHOST LEVEL LOGGING CONFIG - STOP ####

  2. #2

    Default

    It may be that restarting Wowza will correct this issue. I would try that first.

    Another suggestion if the restart does not work, would be to get a new log4j.properties file from a fresh Wowza installation and restart the server.

    If these do not work, you should open a ticket with the support team by sending an email to support@wowza.com. Please zip /conf and/logs folders and send them along with the email, as well as a link to this forum post as a reference.

    One last thought, is it possible that there could have been a system date/time change?

    Salvadore

  3. #3
    Join Date
    Jan 2013
    Posts
    27

    Default

    Thank you Salvadore!
    Since wowza is running on a production server i just can't restart now.

    I dont think so that there will be problem in log4j.properties because the same file is running on 2 more wowza servers without any problem.

    But I will try to restart the server first and let you know.

Similar Threads

  1. Extracting audio as a separate mp3 file from live stream
    By Ovais Ashraf in forum Live Streaming and Encoder Discussion
    Replies: 4
    Last Post: 06-06-2012, 11:37 PM
  2. wowza error in log file
    By bizkit1 in forum General Forum
    Replies: 1
    Last Post: 05-16-2012, 08:31 AM
  3. wowza log file -udp appender
    By nathiya in forum General Forum
    Replies: 1
    Last Post: 10-15-2011, 09:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •