Article - CS331339

How to enable HTTP request logging for Jetty servlet engine of Windchill Index Search Server release 11.x

Modified: 25-Sep-2021   


Applies To

  • Windchill PDMLink 11.0 to 11.2

Description

  • How to enable HTTP request logging for Jetty servlet engine of Windchill Index Search Server
  • As Solr is a web application, it is accessed from the client via a HTTP server that is embedded in Jetty
  • There is a logging framework specified in <SolrServer>/solr/server/etc/jetty.xml that records access requests (similar to the access.log in Apache), but this is disabled in the out-of-the-box configuration
    <!-- =========================================================== -->
    <!-- Configure Request Log                                       -->
    <!-- =========================================================== -->
    <!--
    <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">
                   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">UTC</Set>
              </New>
            </Set>
          </New>
        </Arg>
      </Call>
    </Ref>
    -->

 
This is a printer-friendly version of Article 331339 and may be out of date. For the latest version click CS331339