2018年8月8日

開啟solr的 jetty request log

修改 solr-6.5.0/server/etc/jetty.xml

原本是mark的設定,拿掉mark,修正filename位置,改時區,重啟後生效
    <Ref id="Handlers">
      <Call name="addHandler">
        <Arg>
          <New id="RequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler">
            <Set name="requestLog">
              <New id="RequestLogImpl" class="org.eclipse.jetty.server.NCSARequestLog">
                <Set name="filename">
                   solr/logs/request.yyyy_mm_dd.log
                </Set>
                <Set name="filenameDateFormat">yyyy_MM_dd</Set>
                <Set name="retainDays">90</Set>
                <Set name="append">true</Set>
                <Set name="extended">false</Set>
                <Set name="logCookies">false</Set>
                <Set name="LogTimeZone">Asia/Taipei</Set>
              </New>
            </Set>
          </New>
        </Arg>
      </Call>
    </Ref>
   

沒有留言: