Results 1 to 2 of 2

Thread: How can customize the access, error and stats logs to log in Apache access log format

  1. #1
    Join Date
    Jul 2010
    Posts
    14

    Default How can customize the access, error and stats logs to log in Apache access log format

    How can customize the access, error and stats logs to log in Apache access log format?

    We would like to log the access and stats log in Apache access log format. Is it possible?

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

    Default

    You can re-arrange log fields by changing the layout.Fields line in an Appender in the /conf/log4j.properties file. For example this line in the Access Appender

    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
    Note the commented out Field list at the top of this file that shows all the built-in log fields, which are not all included by default.

    To add fields, take a look the ILogNotify api in the ServerSide API, there is an example.
    http://www.wowza.com/resources/Wowza...verSideAPI.pdf

    Richard

Similar Threads

  1. Missing values in log fields in stats log
    By solidx in forum Wowza Streaming Server Java API
    Replies: 3
    Last Post: 12-23-2014, 02:49 AM
  2. How to understand access.log?
    By gabrielhn in forum Live Streaming and Encoder Discussion
    Replies: 3
    Last Post: 04-23-2012, 08:10 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
  •