Skip to main content Skip to complementary content

Log and Logging of Search Queries

One may turn on the logging of popular search queries as executed into a log file using log4j. This file may then be used to perform statistical reporting on the types of search queries executed.

Steps

To enable the logging of search queries:

  1. Open the file "$MM_HOME/tomcat/conf/log4j2.xml" in the installation folders.
  2. Change the lines near the end of the file:
Information note

<Logger name="search" level="off" additivity="false">

<AppenderRef ref="SEARCH"/>

</Logger>

to:

Information note

<Logger name="search" level="all" additivity="false">

<AppenderRef ref="SEARCH"/>

</Logger>

3. Restart the application server.

Information note

A search.log file can be found under the "$MM_HOME/data/logs/search" directory in the installation folders.

Information note

The log contains the following search query details: time, thread, username, context, text.

To disable the logging of search queries, simply change the lines back and restart.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!