jan_flanders

Untitled

Jun 22nd, 2012
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <Logger>   
  2.   <Access>
  3.     <!-- This section configures the server to send log msgs to a   -->
  4.     <!-- remote logging server. To enable this feature, set the     -->
  5.     <!-- "enable" attribute to true. You can choose the type of     -->
  6.     <!-- connection to use by specifying the "type" attribute which -->
  7.     <!-- can be set to either "udp" or "tcp". Default is udp.       -->
  8.     <LogServer enable="false" type="udp">
  9.         <!-- Specify the IP and port of the server to log to.       -->
  10.         <!-- For example,                                           -->
  11.         <!-- <HostPort>xxx.xxx.xxx.xxx:1234</HostPort>              -->
  12.         <HostPort></HostPort>
  13.        
  14.         <!-- This is an identifier used to identify the server that -->
  15.         <!-- the log came from. By default, this is the IP address  -->
  16.         <!-- of this server.                                        -->
  17.         <ServerID></ServerID>
  18.  
  19.         <!-- This specifies how many lines to log before including  -->
  20.         <!-- the fields header again.                               -->
  21.         <DisplayFieldsHeader>100</DisplayFieldsHeader>
  22.     </LogServer>
  23.  
  24.     <!-- Directory in which log files will be placed, by default they are       -->
  25.     <!-- placed in logs/ in the server installation directory.                  -->
  26.     <Directory>${LOGGER.LOGDIR}</Directory>
  27.  
  28.     <!-- Access log file name, everything inside the square brackets will be    -->
  29.     <!-- substituted.                                                           -->
  30.     <!-- Y represents Year, only YYYY is allowed                                -->
  31.     <!-- M represents Month, only M or MM are allowed                           -->
  32.     <!-- D represents Day, only D or DD are allowed                             -->
  33.     <!-- N represents Version, there is no limit on number of N                 -->
  34.     <!-- The number of each letter represents number of digits, for example     -->
  35.     <!-- April in M is 4 and in MM is 04                                        -->
  36.     <FileName>access.[NN].log</FileName>
  37.  
  38.     <!-- The time field in a log file can be either in utc or local time. The   -->
  39.     <!-- setting here can be used to override the server-wide configuration,    -->
  40.     <!-- see <Logging> in Server.xml.                                           -->
  41.     <Time></Time>
  42.  
  43.     <Rotation>
  44.       <!-- Maximum file size in kilobytes (1024 bytes)                          -->
  45.       <MaxSize>10240</MaxSize>
  46.  
  47.       <!-- Rotation Time, there are 2 types                                     -->
  48.       <!-- If type="daily", rotation only occurs every 24 hours, and the format -->
  49.       <!-- is hh:mm, for example 00:00 will rotates every midnight              -->
  50.       <!-- If type="duration", rotation occurs when the duration of the log     -->
  51.       <!-- exceed a certain length, duration takes a number in minutes          -->
  52.       <Schedule type="daily">00:00</Schedule>
  53.  
  54.       <!-- Max number of log files to keep, files will be named access.01.log,  -->
  55.       <!-- access.02.log, access.03.log etc.                                    -->
  56.       <History>5</History>
  57.  
  58.       <!-- When it is time to rotate the log files and Rename is set to true,   -->
  59.       <!-- access.00.log will be renamed to access.01.log and access.01.log     -->
  60.       <!-- will be renamed to access.02.log and so on until it reach the        -->
  61.       <!-- maximum history.  Therefore, log file with the highest version       -->
  62.       <!-- number keeps the oldest log history.                                 -->
  63.       <!-- If Rename is set to false, a new log file will be created with the   -->
  64.       <!-- next available version when rotation occurs.  Therefore, log file    -->
  65.       <!-- with the lowest version number keeps the oldest log history.         -->
  66.       <!-- Default is true.                                                     -->
  67.       <Rename>true</Rename>
  68.     </Rotation>
  69.  
  70.     <!-- The following describes which events to be logged. The various events  -->
  71.     <!-- are as follows,                                                        -->
  72.     <!--    Event Name                      Category                            -->
  73.     <!--    ==========                      ========                            -->
  74.     <!--    1. connect-pending              session                             -->
  75.     <!--    2. connect                      session                             -->
  76.     <!--    3. disconnect                   session                             -->
  77.     <!--    4. publish                      stream                              -->
  78.     <!--    5. unpublish                    stream                              -->
  79.     <!--    6. play                         stream                              -->
  80.     <!--    7. pause                        stream                              -->
  81.     <!--    8. unpause                      stream                              -->
  82.     <!--    9. seek                         stream                              -->
  83.     <!--   10. stop                         stream                              -->
  84.     <!--   11. record                       stream                              -->
  85.     <!--   12. recordstop                   stream                              -->
  86.     <!--   13. server-start                 server                              -->
  87.     <!--   14. server-stop                  server                              -->
  88.     <!--   15. vhost-start                  vhost                               -->
  89.     <!--   16. vhost-stop                   vhost                               -->
  90.     <!--   17. app-start                    application                         -->
  91.     <!--   18. app-stop                     application                         -->
  92.     <!-- The desired events are specified as a semi-colon separated list.       -->
  93.     <!-- Specifying * will log all events.                                      -->
  94.  
  95.     <Events>connect;disconnect;play;pause;unpause;stop</Events>
  96.  
  97.  
  98.     <!-- The following describes what information gets logged for each event.   -->
  99.     <!-- Not all fields make sense for all events in which case they will be    -->
  100.     <!-- empty in the log file. The possible fields are,                        -->
  101.       <!--    1. x-event          Type of event                                   -->
  102.       <!--    2. x-category       Event category                                  -->
  103.       <!--    3. date             Date at which the event occurred                -->
  104.       <!--    4. time             Time at which the event occurred                -->
  105.       <!--    5. tz               Time zone information                           -->
  106.       <!--    6. x-ctx            event dependant context information             -->
  107.       <!--    7. s-ip                 ip address[es] of the server                    -->
  108.       <!--    8. x-pid            server process id                               -->
  109.       <!--    9. x-cpu-load       cpu load                                        -->
  110.       <!--   10. x-mem-load       memory load (as reported in getServerStats)     -->
  111.       <!--   11. x-adaptor        adaptor name                                    -->
  112.       <!--   12. x-vhost          vhost name                                      -->
  113.       <!--   13. x-app            application name                                -->
  114.       <!--   14. x-appinst        application instance name                       -->
  115.       <!--   15. x-duration       duration of an event/session                    -->
  116.       <!--   16. x-status             status code                                               -->
  117.       <!--   17. c-ip             client ip address                               -->
  118.       <!--   18. c-proto          connection protocol - rtmp or rtmpt             -->
  119.       <!--   19. s-uri            uri of the fms application                      -->
  120.       <!--   20. cs-uri-stem      stem of s-uri                                   -->
  121.       <!--   21. cs-uri-query     query portion of s-uri                          -->
  122.       <!--   22. c-referrer       uri of the referrer                             -->
  123.       <!--   23. c-user-agent     user agent                                      -->
  124.       <!--   24. c-client-id      client id                                       -->
  125.       <!--   25. cs-bytes         bytes transferred from client to server         -->
  126.       <!--   26. sc-bytes         bytes transferred from server to client         -->
  127.       <!--   27. c-connect-type   type of connection received by the server       -->
  128.       <!--   28. x-sname          stream name                                     -->
  129.       <!--   29. x-sname-query    query portion of stream uri                     -->
  130.       <!--   30. x-suri-query         Same as x-sname-query                                     -->
  131.       <!--   31. x-suri-stem          cs-uri-stem + x-sname + x-file-ext                    -->
  132.       <!--   32. x-suri               x-suri-stem + x-suri-query                                  -->
  133.       <!--   33. x-file-name      Full file path of recorded stream               -->
  134.       <!--   34. x-file-ext       stream type (flv or mp3)                        -->
  135.       <!--   35. x-file-size      stream size in bytes                            -->
  136.       <!--   36. x-file-length    stream length in seconds                        -->
  137.       <!--   37. x-spos           stream position                                 -->
  138.       <!--   38. cs-stream-bytes  stream bytes transferred from client to server  -->
  139.       <!--   39. sc-stream-bytes  stream bytes transferred from server to client  -->
  140.       <!--   40. x-service-name   name of the service providing the connection    -->
  141.       <!--   41. x-sc-qos-bytes   bytes transferred from server to client for quality of service    -->
  142.       <!--   42. x-comment        Comments                                        -->
  143.       <!-- The field specification is a semi-colon separated list of one or more  -->
  144.     <!-- and the special key word * indicates that all fields are to be logged. -->
  145.     <!-- When customizing the fields to be logged, it is strongly recommended   -->
  146.     <!-- to always at least log the type, category, date and time fields.       -->
  147.  
  148.     <Fields>x-category;x-event;date;time;x-pid;c-ip;cs-bytes;sc-bytes;x-sname;sc-stream-bytes;x-file-size;x-file-length;x-status</Fields>
  149.  
  150.     <!-- Delimiter is used to separate between fields                           -->
  151.     <!-- Recommended: tab or ' '. If no delimiter is specified, default is tab  -->
  152.     <!-- Not Recommended: '#', because it is used as comment tag in W3C format  -->
  153.     <!-- Disallowed: ''', '"', '.', ':', '-', '\' and all alpha-numeric         -->
  154.     <!-- (a-z, A-Z, 0-9).  Character ':' and '-' are not allowed because ':' is -->
  155.     <!-- used in the time field and '-' is used in the date field and fields    -->
  156.     <!-- with empty value.                                                      -->
  157.     <Delimiter></Delimiter>
  158.  
  159.     <!-- This is an optional flag to control if the fields need to be quoted    -->
  160.     <!-- when space or delimiter are found in the fields.  It can be set to     -->
  161.     <!-- enable or disable.  By default, it is set to disable                   -->
  162.     <QuoteFields>disable</QuoteFields>
  163.  
  164.     <!-- This is an optional flag to control if the fields need to be escaped   -->
  165.     <!-- when unsafe characters are found in the fields.  It can be set to      -->
  166.     <!-- enable or disable.  By default, it is set to enable                   -->
  167.     <!-- Based on rfc1738, unsafe characters are space, <, >, ", #, %, {, }, |, -->
  168.     <!-- ^, ~, [, ], `                                                          -->
  169.     <EscapeFields>enable</EscapeFields>
  170.  
  171.   </Access>
  172.   <Diagnostic>
  173.     <!-- Directory in which log files will be placed, by default they are       -->
  174.     <!-- placed in logs/ in the server installation directory.                  -->
  175.     <Directory>${LOGGER.LOGDIR}</Directory>
  176.  
  177.     <!-- The time field in a log file can be either in utc or local time. The   -->
  178.     <!-- setting here can be used to override the server-wide configuration,    -->
  179.     <!-- see <Logging> in Server.xml.                                           -->
  180.     <Time></Time>
  181.  
  182.     <Rotation>
  183.       <!-- Maximum file size in kilobytes (1024 bytes)                          -->
  184.       <MaxSize>10240</MaxSize>
  185.  
  186.       <!-- Rotation Time, there are 2 types                                     -->
  187.       <!-- If type="daily", rotation only occurs every 24 hours, and the format -->
  188.       <!-- is hh:mm, for example 00:00 will rotates every midnight              -->
  189.       <!-- If type="duration", rotation occurs when the duration of the log     -->
  190.       <!-- exceed a certain length, duration takes a number in minutes          -->
  191.       <Schedule type="daily">00:00</Schedule>
  192.  
  193.       <!-- Max number of log files to keep, files will be named admin.01.log,   -->
  194.       <!-- admin.02.log, admin.03.log etc.                                      -->
  195.       <History>5</History>
  196.  
  197.       <!-- When it is time to rotate the log files and Rename is set to true,   -->
  198.       <!-- admin.00.log will be renamed to admin.01.log and admin.01.log        -->
  199.       <!-- will be renamed to admin.02.log and so on until it reach the         -->
  200.       <!-- maximum history.  Therefore, log file with the highest version       -->
  201.       <!-- number keeps the oldest log history.                                 -->
  202.       <!-- If Rename is set to false, a new log file will be created with the   -->
  203.       <!-- next available version when rotation occurs.  Therefore, log file    -->
  204.       <!-- with the lowest version number keeps the oldest log history.         -->
  205.       <!-- Default is true.                                                     -->
  206.       <Rename>true</Rename>
  207.     </Rotation>
  208.  
  209.     <core>
  210.         <!-- This section configures the server to send log msgs to a   -->
  211.         <!-- remote logging server. To enable this feature, set the     -->
  212.         <!-- "enable" attribute to true. You can choose the type of     -->
  213.         <!-- connection to use by specifying the "type" attribute which -->
  214.         <!-- can be set to either "udp" or "tcp". Default is udp.       -->
  215.         <LogServer enable="false" type="udp">
  216.             <!-- Specify the IP and port of the server to log to.       -->
  217.             <!-- For example,                                           -->
  218.             <!-- <HostPort>xxx.xxx.xxx.xxx:1234</HostPort>              -->
  219.             <HostPort></HostPort>
  220.            
  221.             <!-- This is an identifier used to identify the server that -->
  222.             <!-- the log came from. By default, this is the IP address  -->
  223.             <!-- of this server.                                        -->
  224.             <ServerID></ServerID>
  225.  
  226.             <!-- This specifies how many lines to log before including  -->
  227.             <!-- the fields header again.                               -->
  228.             <DisplayFieldsHeader>100</DisplayFieldsHeader>
  229.         </LogServer>
  230.     </core>
  231.  
  232.     <edge>
  233.         <!-- This section configures the server to send log msgs to a   -->
  234.         <!-- remote logging server. To enable this feature, set the     -->
  235.         <!-- "enable" attribute to true. You can choose the type of     -->
  236.         <!-- connection to use by specifying the "type" attribute which -->
  237.         <!-- can be set to either "udp" or "tcp". Default is udp.       -->
  238.         <LogServer enable="false" type="udp">
  239.             <!-- Specify the IP and port of the server to log to.       -->
  240.             <!-- For example,                                           -->
  241.             <!-- <HostPort>xxx.xxx.xxx.xxx:1234</HostPort>              -->
  242.             <HostPort></HostPort>
  243.            
  244.             <!-- This is an identifier used to identify the server that -->
  245.             <!-- the log came from. By default, this is the IP address  -->
  246.             <!-- of this server.                                        -->
  247.             <ServerID></ServerID>
  248.  
  249.             <!-- This specifies how many lines to log before including  -->
  250.             <!-- the fields header again.                               -->
  251.             <DisplayFieldsHeader>100</DisplayFieldsHeader>
  252.         </LogServer>
  253.     </edge>
  254.  
  255.     <master>
  256.         <!-- This section configures the server to send log msgs to a   -->
  257.         <!-- remote logging server. To enable this feature, set the     -->
  258.         <!-- "enable" attribute to true. You can choose the type of     -->
  259.         <!-- connection to use by specifying the "type" attribute which -->
  260.         <!-- can be set to either "udp" or "tcp". Default is udp.       -->
  261.         <LogServer enable="false" type="udp">
  262.             <!-- Specify the IP and port of the server to log to.       -->
  263.             <!-- For example,                                           -->
  264.             <!-- <HostPort>xxx.xxx.xxx.xxx:1234</HostPort>              -->
  265.             <HostPort></HostPort>
  266.            
  267.             <!-- This is an identifier used to identify the server that -->
  268.             <!-- the log came from. By default, this is the IP address  -->
  269.             <!-- of this server.                                        -->
  270.             <ServerID></ServerID>
  271.  
  272.             <!-- This specifies how many lines to log before including  -->
  273.             <!-- the fields header again.                               -->
  274.             <DisplayFieldsHeader>100</DisplayFieldsHeader>
  275.         </LogServer>
  276.     </master>
  277.  
  278.     <admin>
  279.         <!-- This section configures the server to send log msgs to a   -->
  280.         <!-- remote logging server. To enable this feature, set the     -->
  281.         <!-- "enable" attribute to true. You can choose the type of     -->
  282.         <!-- connection to use by specifying the "type" attribute which -->
  283.         <!-- can be set to either "udp" or "tcp". Default is udp.       -->
  284.         <LogServer enable="false" type="udp">
  285.             <!-- Specify the IP and port of the server to log to.       -->
  286.             <!-- For example,                                           -->
  287.             <!-- <HostPort>xxx.xxx.xxx.xxx:1234</HostPort>              -->
  288.             <HostPort></HostPort>
  289.            
  290.             <!-- This is an identifier used to identify the server that -->
  291.             <!-- the log came from. By default, this is the IP address  -->
  292.             <!-- of this server.                                        -->
  293.             <ServerID></ServerID>
  294.  
  295.             <!-- This specifies how many lines to log before including  -->
  296.             <!-- the fields header again.                               -->
  297.             <DisplayFieldsHeader>100</DisplayFieldsHeader>
  298.         </LogServer>
  299.     </admin>
  300.   </Diagnostic>
  301.   <Application>
  302.     <!-- This section configures the server to send log msgs to a   -->
  303.     <!-- remote logging server. To enable this feature, set the     -->
  304.     <!-- "enable" attribute to true. You can choose the type of     -->
  305.     <!-- connection to use by specifying the "type" attribute which -->
  306.     <!-- can be set to either "udp" or "tcp". Default is udp.       -->
  307.     <LogServer enable="false" type="udp">
  308.         <!-- Specify the IP and port of the server to log to.       -->
  309.         <!-- For example,                                           -->
  310.         <!-- <HostPort>xxx.xxx.xxx.xxx:1234</HostPort>              -->
  311.         <HostPort></HostPort>
  312.        
  313.         <!-- This is an identifier used to identify the server that -->
  314.         <!-- the log came from. By default, this is the IP address  -->
  315.         <!-- of this server.                                        -->
  316.         <ServerID></ServerID>
  317.  
  318.         <!-- This specifies how many lines to log before including  -->
  319.         <!-- the fields header again.                               -->
  320.         <DisplayFieldsHeader>100</DisplayFieldsHeader>
  321.     </LogServer>
  322.    
  323.     <!-- Directory in which log files will be placed, by default they are       -->
  324.     <!-- placed in logs/ in the server installation directory.                  -->
  325.     <Directory>${LOGGER.LOGDIR}</Directory>
  326.  
  327.     <!-- The time field in a log file can be either in utc or local time. The   -->
  328.     <!-- setting here can be used to override the server-wide configuration,    -->
  329.     <!-- see <Logging> in Server.xml.                                           -->
  330.     <Time></Time>
  331.  
  332.     <Rotation>
  333.       <!-- Maximum file size in kilobytes (1024 bytes)                          -->
  334.       <MaxSize>10240</MaxSize>
  335.  
  336.       <!-- Rotation Time, there are 2 types                                     -->
  337.       <!-- If type="daily", rotation only occurs every 24 hours, and the format -->
  338.       <!-- is hh:mm, for example 00:00 will rotates every midnight              -->
  339.       <!-- If type="duration", rotation occurs when the duration of the log     -->
  340.       <!-- exceed a certain length, duration takes a number in minutes          -->
  341.       <Schedule type="daily">00:00</Schedule>
  342.  
  343.       <!-- Max number of log files to keep, files will be named                 -->
  344.       <!-- application.01.log, application.02.log etc.                          -->
  345.       <History>5</History>
  346.  
  347.       <!-- When it is time to rotate the log files and Rename is set to true,   -->
  348.       <!-- application.00.log will be renamed to application.01.log and         -->
  349.           <!-- application.01.log will be renamed to application.02.log and         -->
  350.           <!-- so on until it reach the maximum history.  Therefore, log file with  -->
  351.           <!-- the highest version number keeps the oldest log history.             -->
  352.       <!-- If Rename is set to false, a new log file will be created with the   -->
  353.       <!-- next available version when rotation occurs.  Therefore, log file    -->
  354.       <!-- with the lowest version number keeps the oldest log history.         -->
  355.       <!-- Default is true.                                                     -->
  356.       <Rename>true</Rename>
  357.     </Rotation>
  358.   </Application>
  359.   <AuthEvent>
  360.     <!-- This section configures the server to send log msgs to a   -->
  361.     <!-- remote logging server. To enable this feature, set the     -->
  362.     <!-- "enable" attribute to true. You can choose the type of     -->
  363.     <!-- connection to use by specifying the "type" attribute which -->
  364.     <!-- can be set to either "udp" or "tcp". Default is udp.       -->
  365.     <LogServer enable="false" type="udp">
  366.         <!-- Specify the IP and port of the server to log to.       -->
  367.         <!-- For example,                                           -->
  368.         <!-- <HostPort>xxx.xxx.xxx.xxx:1234</HostPort>              -->
  369.         <HostPort></HostPort>
  370.        
  371.         <!-- This is an identifier used to identify the server that -->
  372.         <!-- the log came from. By default, this is the IP address  -->
  373.         <!-- of this server.                                        -->
  374.         <ServerID></ServerID>
  375.  
  376.         <!-- This specifies how many lines to log before including  -->
  377.         <!-- the fields header again.                               -->
  378.         <DisplayFieldsHeader>100</DisplayFieldsHeader>
  379.     </LogServer>
  380.  
  381.     <!-- Directory in which log files will be placed, by default they are       -->
  382.     <!-- placed in logs in the server installation directory.                  -->
  383.     <Directory>${LOGGER.LOGDIR}</Directory>
  384.  
  385.     <!-- AuthEvent log file name, everything inside the square brackets will be -->
  386.     <!-- substituted.                                                           -->
  387.     <!-- Y represents Year, only YYYY is allowed                                -->
  388.     <!-- M represents Month, only M or MM are allowed                           -->
  389.     <!-- D represents Day, only D or DD are allowed                             -->
  390.     <!-- N represents Version, there is no limit on number of N                 -->
  391.     <!-- The number of each letter represents number of digits, for example     -->
  392.     <!-- April in M is 4 and in MM is 04                                        -->
  393.     <FileName>authEvent.[NN].log</FileName>
  394.  
  395.     <!-- The time field in a log file can be either in utc or local time. The   -->
  396.     <!-- setting here can be used to override the server-wide configuration,    -->
  397.     <!-- see <Logging> in Server.xml.                                           -->
  398.     <Time></Time>
  399.  
  400.     <Rotation>
  401.       <!-- Maximum file size in kilobytes (1024 bytes)                          -->
  402.       <MaxSize>10240</MaxSize>
  403.  
  404.       <!-- Rotation Time, there are 2 types                                     -->
  405.       <!-- If type="daily", rotation only occurs every 24 hours, and the format -->
  406.       <!-- is hh:mm, for example 00:00 will rotates every midnight              -->
  407.       <!-- If type="duration", rotation occurs when the duration of the log     -->
  408.       <!-- exceed a certain length, duration takes a number in minutes          -->
  409.       <Schedule type="daily">00:00</Schedule>
  410.  
  411.       <!-- Max number of log files to keep, files will be named authEvent.01.log,  -->
  412.       <!-- authEvent.02.log, authEvent.03.log etc.                                 -->
  413.       <History>5</History>
  414.  
  415.       <!-- When it is time to rotate the log files and Rename is set to true,   -->
  416.       <!-- authEvent.00.log will be renamed to authEvent.01.log and             -->
  417.       <!-- authEvent.01.log will be renamed to authEvent.02.log and so on until -->
  418.       <!-- it reach the maximum history.  Therefore, log file with the highest  -->
  419.       <!-- version number keeps the oldest log history.                         -->
  420.       <!-- If Rename is set to false, a new log file will be created with the   -->
  421.       <!-- next available version when rotation occurs.  Therefore, log file    -->
  422.       <!-- with the lowest version number keeps the oldest log history.         -->
  423.       <!-- Default is true.                                                     -->
  424.       <Rename>true</Rename>
  425.     </Rotation>
  426.  
  427.     <!-- The following describes which events to be logged. The various events  -->
  428.     <!-- are as follows,                                                        -->
  429.     <!--    Event Name                      Category                            -->
  430.     <!--    ==========                      ========                            -->
  431.     <!--    1. connect                      session                             -->
  432.     <!--    2. disconnect                   session                             -->
  433.     <!--    3. publish                      stream                              -->
  434.     <!--    4. unpublish                    stream                              -->
  435.     <!--    5. play                         stream                              -->
  436.     <!--    6. pause                        stream                              -->
  437.     <!--    7. seek                         stream                              -->
  438.     <!--    8. stop                         stream                              -->
  439.     <!--    9. filenametransform            stream                              -->
  440.     <!--   10. loadsegment                  stream                              -->
  441.     <!--   11. app-start                    application                         -->
  442.     <!--   12. app-stop                     application                         -->
  443.     <!--   13. action                       authorization                       -->            
  444.     <!-- The desired events are specified as a semi-colon separated list.       -->
  445.     <!-- Specifying * will log all events.                                      -->
  446.  
  447.     <Events>app-start;connect;disconnect;play;pause;stop;filenametransform</Events>
  448.  
  449.  
  450.     <!-- The following describes what information gets logged for each event.   -->
  451.     <!-- Not all fields make sense for all events in which case they will be    -->
  452.     <!-- empty in the log file. The possible fields are,                        -->
  453.     <!--    1. x-event          Type of event                                   -->
  454.     <!--    2. x-category       Event category                                  -->
  455.     <!--    3. x-eid            Event id                                        -->
  456.     <!--    4. date             Date at which the event occurred                -->
  457.     <!--    5. time             Time at which the event occurred                -->
  458.     <!--    6. tz               Time zone information                           -->
  459.     <!--    7. x-ctx            event dependant context information             -->
  460.     <!--    8. x-pid            event id                                        -->
  461.     <!--    9. x-adaptor        dll adaptor name                                -->
  462.     <!--   10. x-vhost          vhost name                                      -->
  463.     <!--   11. x-app            application name                                -->
  464.     <!--   12. x-appinst        application instance name                       -->
  465.     <!--   13. c-ip             client ip address                               -->
  466.     <!--   14. c-proto          connection protocol - rtmp or rtmpt             -->
  467.     <!--   15. s-uri            uri of the fms application                      -->
  468.     <!--   16. c-referrer       uri of the referrer                             -->
  469.     <!--   17. c-user-agent     user agent                                      -->
  470.     <!--   18. c-client-id      client id                                       -->
  471.     <!--   19. cs-bytes         bytes transferred from client to server         -->
  472.     <!--   20. sc-bytes         bytes transferred from server to client         -->
  473.     <!--   21. x-sname          stream name                                     -->
  474.     <!--   22. x-file-size      stream size in bytes                            -->
  475.     <!--   23. x-file-length    stream length in seconds                        -->
  476.     <!--   24. x-spos           stream position                                 -->
  477.     <!--   25. cs-stream-bytes  stream reset param              -->
  478.     <!--   26. sc-stream-bytes  stream ignore param             -->
  479.     <!--   27. s-ip     ip address[es] of the server                    -->
  480.     <!--   28. x-duration   duration of an event/session                    -->
  481.     <!--   29. x-status     status code                 -->
  482.     <!--   30. cs-uri-stem      stem of s-uri                                   -->
  483.     <!--   31. cs-uri-query     query portion of s-uri                          -->
  484.     <!--   32. x-sname-query    query portion of stream uri                     -->
  485.     <!--   33. x-file-name      Fux-pidll file path of recorded stream          -->
  486.     <!--   34. x-file-ext       stream type (flv or mp3)                        -->
  487.     <!--   35. c-connect-type   type of connection received by the server       -->
  488.     <!--   36. x-service-name   name of the service providing the connection    -->
  489.     <!--   37. x-comment    Comments    -->
  490.     <!-- The field specification is a semi-colon separated list of one or more  -->
  491.     <!-- and the special key word * indicates that all fields are to be logged. -->
  492.     <!-- When customizing the fields to be logged, it is strongly recommended   -->
  493.     <!-- to always at least log the type, category, date and time fields.       -->
  494.      
  495.     <Fields>x-category;x-event;date;time;x-app;x-appinst;c-ip;x-pid;x-status;x-adaptor;x-sname;x-file-length;x-spos;cs-stream-bytes;
  496.     sc-stream-bytes;x-file-name;x-file-ext;x-file-size</Fields>
  497.  
  498.  
  499.     <!-- Delimiter is used to separate between fields                           -->
  500.     <!-- Recommended: tab or ' '. If no delimiter is specified, default is tab  -->
  501.     <!-- Not Recommended: '#', because it is used as comment tag in W3C format  -->
  502.     <!-- Disallowed: ''', '"', '.', ':', '-', '\' and all alpha-numeric         -->
  503.     <!-- (a-z, A-Z, 0-9).  Character ':' and '-' are not allowed because ':' is -->
  504.     <!-- used in the time field and '-' is used in the date field and fields    -->
  505.     <!-- with empty value.                                                      -->
  506.     <Delimiter></Delimiter>
  507.  
  508.     <!-- This is an optional flag to control if the fields need to be quoted    -->
  509.     <!-- when space or delimiter are found in the fields.  It can be set to     -->
  510.     <!-- enable or disable.  By default, it is set to disable                   -->
  511.     <QuoteFields>disable</QuoteFields>
  512.  
  513.     <!-- This is an optional flag to control if the fields need to be escaped   -->
  514.     <!-- when unsafe characters are found in the fields.  It can be set to      -->
  515.     <!-- enable or disable.  By default, it is set to enable                   -->
  516.     <!-- Based on rfc1738, unsafe characters are space, <, >, ", #, %, {, }, |, -->
  517.     <!-- ^, ~, [, ], `                                                          -->
  518.     <EscapeFields>enable</EscapeFields>
  519.  
  520.   </AuthEvent> 
  521.   <AuthMessage>
  522.     <!-- This section configures the server to send log msgs to a   -->
  523.     <!-- remote logging server. To enable this feature, set the     -->
  524.     <!-- "enable" attribute to true. You can choose the type of     -->
  525.     <!-- connection to use by specifying the "type" attribute which -->
  526.     <!-- can be set to either "udp" or "tcp". Default is udp.       -->
  527.     <LogServer enable="false" type="udp">
  528.         <!-- Specify the IP and port of the server to log to.       -->
  529.         <!-- For example,                                           -->
  530.         <!-- <HostPort>xxx.xxx.xxx.xxx:1234</HostPort>              -->
  531.         <HostPort></HostPort>
  532.        
  533.         <!-- This is an identifier used to identify the server that -->
  534.         <!-- the log came from. By default, this is the IP address  -->
  535.         <!-- of this server.                                        -->
  536.         <ServerID></ServerID>
  537.  
  538.         <!-- This specifies how many lines to log before including  -->
  539.         <!-- the fields header again.                               -->
  540.         <DisplayFieldsHeader>100</DisplayFieldsHeader>
  541.     </LogServer>
  542.  
  543.     <!-- Directory in which log files will be placed, by default they are       -->
  544.     <!-- placed in logs in the server installation directory.                  -->
  545.     <Directory>${LOGGER.LOGDIR}</Directory>
  546.  
  547.     <!-- The time field in a log file can be either in utc or local time. The   -->
  548.     <!-- setting here can be used to override the server-wide configuration,    -->
  549.     <!-- see <Logging> in Server.xml.                                           -->
  550.     <Time></Time>
  551.  
  552.     <Rotation>
  553.       <!-- Maximum file size in kilobytes (1024 bytes)                          -->
  554.       <MaxSize>10240</MaxSize>
  555.  
  556.       <!-- Rotation Time, there are 2 types                                     -->
  557.       <!-- If type="daily", rotation only occurs every 24 hours, and the format -->
  558.       <!-- is hh:mm, for example 00:00 will rotates every midnight              -->
  559.       <!-- If type="duration", rotation occurs when the duration of the log     -->
  560.       <!-- exceed a certain length, duration takes a number in minutes          -->
  561.       <Schedule type="daily">00:00</Schedule>
  562.  
  563.       <!-- Max number of log files to keep, files will be named                 -->
  564.       <!-- authMessage.01.log, authMessage.02.log etc.                          -->
  565.       <History>5</History>
  566.  
  567.       <!-- When it is time to rotate the log files and Rename is set to true,   -->
  568.       <!-- authMessage.00.log will be renamed to authMessage.01.log and         -->
  569.           <!-- authMessage.01.log will be renamed to authMessage.02.log and         -->
  570.           <!-- so on until it reach the maximum history.  Therefore, log file with  -->
  571.           <!-- the highest version number keeps the oldest log history.             -->
  572.       <!-- If Rename is set to false, a new log file will be created with the   -->
  573.       <!-- next available version when rotation occurs.  Therefore, log file    -->
  574.       <!-- with the lowest version number keeps the oldest log history.         -->
  575.       <!-- Default is true.                                                     -->
  576.       <Rename>true</Rename>
  577.     </Rotation>
  578.   </AuthMessage>
  579.   <FileIO>
  580.     <!-- This section configures the server to send log msgs to a   -->
  581.     <!-- remote logging server. To enable this feature, set the     -->
  582.     <!-- "enable" attribute to true. You can choose the type of     -->
  583.     <!-- connection to use by specifying the "type" attribute which -->
  584.     <!-- can be set to either "udp" or "tcp". Default is udp.       -->
  585.     <LogServer enable="false" type="udp">
  586.         <!-- Specify the IP and port of the server to log to.       -->
  587.         <!-- For example,                                           -->
  588.         <!-- <HostPort>xxx.xxx.xxx.xxx:1234</HostPort>              -->
  589.         <HostPort></HostPort>
  590.        
  591.         <!-- This is an identifier used to identify the server that -->
  592.         <!-- the log came from. By default, this is the IP address  -->
  593.         <!-- of this server.                                        -->
  594.         <ServerID></ServerID>
  595.  
  596.         <!-- This specifies how many lines to log before including  -->
  597.         <!-- the fields header again.                               -->
  598.         <DisplayFieldsHeader>100</DisplayFieldsHeader>
  599.     </LogServer>
  600.  
  601.     <!-- Directory in which log files will be placed, by default they are       -->
  602.     <!-- placed in logs in the server installation directory.                  -->
  603.     <Directory>${LOGGER.LOGDIR}</Directory>
  604.  
  605.     <!-- The time field in a log file can be either in utc or local time. The   -->
  606.     <!-- setting here can be used to override the server-wide configuration,    -->
  607.     <!-- see <Logging> in Server.xml.                                           -->
  608.     <Time></Time>
  609.  
  610.     <Rotation>
  611.       <!-- Maximum file size in kilobytes (1024 bytes)                          -->
  612.       <MaxSize>10240</MaxSize>
  613.  
  614.       <!-- Rotation Time, there are 2 types                                     -->
  615.       <!-- If type="daily", rotation only occurs every 24 hours, and the format -->
  616.       <!-- is hh:mm, for example 00:00 will rotates every midnight              -->
  617.       <!-- If type="duration", rotation occurs when the duration of the log     -->
  618.       <!-- exceed a certain length, duration takes a number in minutes          -->
  619.       <Schedule type="daily">00:00</Schedule>
  620.  
  621.       <!-- Max number of log files to keep, files will be named                 -->
  622.       <!-- fileMessage.01.log, fileMessage.02.log etc.                          -->
  623.       <History>5</History>
  624.  
  625.       <!-- When it is time to rotate the log files and Rename is set to true,   -->
  626.       <!-- fileMessage.00.log will be renamed to fileMessage.01.log and         -->
  627.           <!-- fileMessage.01.log will be renamed to fileMessage.02.log and         -->
  628.           <!-- so on until it reach the maximum history.  Therefore, log file with  -->
  629.           <!-- the highest version number keeps the oldest log history.             -->
  630.       <!-- If Rename is set to false, a new log file will be created with the   -->
  631.       <!-- next available version when rotation occurs.  Therefore, log file    -->
  632.       <!-- with the lowest version number keeps the oldest log history.         -->
  633.       <!-- Default is true.                                                     -->
  634.       <Rename>true</Rename>
  635.     </Rotation>
  636.   </FileIO>
  637. </Logger>
Advertisement
Add Comment
Please, Sign In to add comment