Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: wowzamediaserver_stats.log file empty

  1. #1

    Default wowzamediaserver_stats.log file empty

    http://www.wowza.com/forums/content.php?126
    Hi! I'm using a Wowza3/EC2 instance and have applied the Edit as discribed in this post but the new wowzamediaserver_stats.log file remains empty... so Sawmill does not recognize it. Any suggestions??Thanks - amgatr

  2. #2
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Did you restart Wowza? That is necessary after changes to log4j.properties file

    Richard

  3. #3

    Default

    Thanks for your quick reply
    Yes we did ...several times and this is the only data that is present for each restart even though we have generated some traffic.
    #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
    amgat

  4. #4
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Start Wowza in stand-alone mode (/bin/startup.bat) so you can see log output in the console.

    Is the access log still working?

    Show the whole log4j.properties file.

    Richard

  5. #5

    Default

    Yes, the access log and error logs are working and generating data.
    By "Show the whole log4j.properties file" ...do you mean un-hash (#) all the properties?
    FYI we are using Vhosts but still want to collect all the data in wowzamediaserver_stats.log not in the individual Vhost log folder
    Thanks
    amgat

  6. #6
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    I meant paste in the text of whole file so we can see what you have.

    Do you have the stats appender commented out still?

    Show us the file with your changes, as it was when you tested.

    Richard

  7. #7

    Default

    Ok - thanks for your ongoing support

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

    # 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
    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.168.15.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

    # 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
    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 ####

  8. #8
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    This worked in my test. I see access, stats and error log files generated using this log4j.properties file

    Richard

  9. #9

    Default

    Hi Richard, I am still experiencing the same problem. My wowzamediaserver_access.log & wowzamediaserver_error.log files are being written with a new file each day but my wowzamediaserver_stats.log file isn’t and the file remains empty of data with the exception of the restarts logs like this:
    #Start-Date: 2012-01-18 20:59:03 UTC
    #Software: Wowza Media Server 3.0.3.07 build942
    #Date: 2012-01-18
    #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
    Can you help me further in pointing me in a direction where I can solve this as I find myself at a roadblock.
    Thanks
    amgatr

  10. #10

    Default

    Partial success! after doing some further tests on the latest 3.3.12WMS/EC2 instance (ami-43003f37) I have found that the wowzamediaserver_stats.log file is written correctly at first… BUT if I add Vhosts, then there is no more data written to that log file with the exception of the restart. I have tried to un-comment #### VHOST LEVEL LOGGING CONFIG - START #### in the log4j.properties file with no further success. I would appreciate any help or suggestions.
    Thanks
    amgatr

Page 1 of 2 12 LastLast

Similar Threads

  1. wowza constantly writes to log when it publishes empty stream
    By misha.nesterenko in forum Server-side Modules and Code Samples Discussion
    Replies: 6
    Last Post: 08-19-2013, 06:50 AM
  2. Create just the first file and the others are empty (130bytes)
    By tacoberu in forum Server-side Modules and Code Samples Discussion
    Replies: 2
    Last Post: 02-29-2012, 03:21 PM
  3. audioCodecIdmissing=true ngrp: not working (error log attached) medialist is empty
    By mindman in forum Live Streaming and Encoder Discussion
    Replies: 5
    Last Post: 01-20-2012, 07:51 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
  •