Hi,

We have upgraded our SOLR instances to 8.6.1, we are trying to change the
timeZone and enabling Response Time, below is our configuration, but the
change is not reflecting. <Set name="logLatency">true</Set> adding this
parameter throws exception.

File: server/etc/jetty_requestlog_xml

<Configure id="Server" class="org.eclipse.jetty.server.Server">
  <Set name="RequestLog">
    <New id="RequestLog" class="org.eclipse.jetty.server.CustomRequestLog">
      <!-- Writer -->
      <Arg>
        <New class="org.eclipse.jetty.server.AsyncRequestLogWriter">
          <Arg><Property name="solr.log.dir"
default="logs"/>/yyyy_mm_dd.request.log</Arg>
          <Set name="filenameDateFormat">yyyy_MM_dd</Set>
          <Set name="retainDays">90</Set>
          <Set name="append">true</Set>
          <Set name="timeZone">IST</Set>
        </New>
      </Arg>

      <!-- Format String -->
      <Arg><Get class="org.eclipse.jetty.server.CustomRequestLog"
name="NCSA_FORMAT"/></Arg>
    </New>
  </Set>
</Configure>

Sample Logs
0:0:0:0:0:0:0:1 - - [18/Sep/2020:07:53:11 +0000] "GET
/solr/admin/info/logging?_=1600414902762&since=0&wt=json HTTP/1.1" 200 802
0:0:0:0:0:0:0:1 - - [18/Sep/2020:07:53:22 +0000] "GET
/solr/admin/info/logging?_=1600414902762&since=0&wt=json HTTP/1.1" 200 802
0:0:0:0:0:0:0:1 - - [18/Sep/2020:07:53:33 +0000] "GET
/solr/admin/info/logging?_=1600414902762&since=0&wt=json HTTP/1.1" 200 802
0:0:0:0:0:0:0:1 - - [18/Sep/2020:07:53:44 +0000] "GET
/solr/admin/info/logging?_=1600414902762&since=0&wt=json HTTP/1.1" 200 802
0:0:0:0:0:0:0:1 - - [18/Sep/2020:07:53:55 +0000] "GET
/solr/admin/info/logging?_=1600414902762&since=0&wt=json HTTP/1.1" 200 802
0:0:0:0:0:0:0:1 - - [18/Sep/2020:07:54:06 +0000] "GET
/solr/admin/info/logging?_=1600414902762&since=0&wt=json HTTP/1.1" 200 802
0:0:0:0:0:0:0:1 - - [18/Sep/2020:07:54:17 +0000] "GET
/solr/admin/info/logging?_=1600414902762&since=0&wt=json HTTP/1.1" 200 802
0:0:0:0:0:0:0:1 - - [18/Sep/2020:07:54:28 +0000] "GET
/solr/admin/info/logging?_=1600414902762&since=0&wt=json HTTP/1.1" 200 802

Thanks.
Doss.

Reply via email to