Results 1 to 2 of 2

Thread: YYYY_MM_DD.trace.log and access_log.YYYY-MM-DD

  1. #1
    Join Date
    Mar 2011
    Posts
    57
    Rep Power
    4

    Default YYYY_MM_DD.trace.log and access_log.YYYY-MM-DD

    Hi everybody, we have discovered that our /opt/zimbra/log folder is weighted by two log files:

    YYYY_MM_DD.trace.log
    access_log.YYYY-MM-DD

    That are created every day, but not compressed, so about 280Mb are occupied every day.
    There is a bug report about this ( https://bugzilla.zimbra.com/show_bug.cgi?id=63661 ), that says that those files are created by jetty and not affected by logrotate (in fact there are no references to those log files in /etc/logrotate.d/zimbra) but their creation is ruled by /opt/zimbra/jetty/etc/jetty.xml, that does not specify compression or rotation. Does anybody know how to normally rotate those logs? An user on that bug reporting just suggests to add two crontab rules as a workaround.

  2. #2
    Join Date
    Mar 2011
    Posts
    57
    Rep Power
    4

    Default

    Has anyone tried to edit jetty.xml file?

    Code:
     <!-- =========================================================== -->    <!-- Configure Request Log                                       -->
        <!-- Request logs  may be configured for the entire server here, -->
        <!-- or they can be configured for a specific web app in a       -->
        <!-- contexts configuration (see $(jetty.home)/contexts/test.xml -->
        <!-- for an example).                                            -->
        <!-- =========================================================== -->
        <Ref id="RequestLog">
          <Set name="requestLog">
            <New id="RequestLogImpl" class="org.mortbay.jetty.NCSARequestLog">
              <Arg><SystemProperty name="jetty.home" default="."/>/../log/access_log.yyyy_mm_dd</Arg>
              <Set name="logDateFormat">dd/MMM/yyyy:HH:mm:ss Z</Set>
              <Set name="retainDays">30</Set>
              <Set name="append">true</Set>
              <Set name="extended">true</Set>
              <Set name="filenameDateFormat">yyyy-MM-dd</Set>
              <Set name="preferProxiedForAddress">true</Set>
            </New>
          </Set>
        </Ref>
    
    
        <!-- DEBUGBEGIN %%comment VAR:zimbraHttpDebugHandlerEnabled,-->%%
        <Get id="oldhandler" name="handler"/>
        <Set name="handler">
          <New id="DebugHandler" class="org.mortbay.jetty.handler.DebugHandler">
            <Set name="handler"><Ref id="oldhandler"/></Set>
            <Set name="outputStream">
              <New class="org.mortbay.util.RolloverFileOutputStream">
                <Arg type="String"><SystemProperty name="jetty.home" default="."/>/../log/yyyy_mm_dd.trace.log</Arg>
                <Arg type="boolean">true</Arg>
                <Arg type="int">10</Arg>
              </New>
            </Set>
          </New>
        </Set>
        %%comment VAR:zimbraHttpDebugHandlerEnabled,<!--%% DEBUGEND -->
    Maybe <Set name="extended"> could be set to "false"
    In zimbra.web.xml.in there is also

    Code:
    <param-name>logVerbosityLevel</param-name>  
    <param-value>DEBUG</param-value>
    that maybe can be reduced to WARN...

Similar Threads

  1. Replies: 0
    Last Post: 01-03-2013, 07:35 AM
  2. date.trace.log
    By adambmedent in forum Administrators
    Replies: 0
    Last Post: 09-19-2012, 11:28 AM
  3. http 500 (Internal Server Error) codes in access_log
    By mattg1 in forum Administrators
    Replies: 4
    Last Post: 11-17-2011, 08:28 AM
  4. Jetty access_log off by 10 hours
    By pixelplumber in forum Administrators
    Replies: 2
    Last Post: 12-02-2010, 06:44 PM
  5. [SOLVED] Calendar date format change to dd/mm/yyyy
    By amitbiswas in forum Administrators
    Replies: 2
    Last Post: 03-14-2008, 10:18 PM

Tags for this Thread

Posting Permissions

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