Using Log search console

The Log search console allows you to search logs.

Fix Pack 11
Important: You need to set the value of the max_result_window=10000 property in the restconfig.properties file property before you can use the Log search feature.

Proceed as follows to use the Log search console.

Click Utilities > Log search > Log search console. Update the following fields and click Search.

View by Specify the time interval for which you want to search logs.
Date
Click to specify a date.
Date and time range
Click to specify the date and time.
Period
Select an appropriate time interval. The valid values are:
  • Last n days
  • Last n weeks
  • Last n months
  • Last n year
Where, n is an integer for the time interval you specify.
Filters You can further filter the log search results by specifying the following filters.
Search log message
Specify a keyword from the log message using which you want to filter the search results. This keyword can have a maximum number of 3000 characters.
Service
Select a service from the list to view service-specific log files. The valid values are:
  • admin
  • appsvr
  • eventprocessor
  • indexer
  • pimcollector
  • queuemanager
  • restapi
  • scheduler
  • workflowengine
Log file
You can select either ipm.log to search for the application log files, or db.log for database log files.
You can also search custom log files under the ipm.log option, if you specify the value of the log_file parameter as follows in the log file pattern.

[log_file: IPM]

<RollingFile name="ROLLING_FILE_NAME" fileName="%LOG_DIR%/${svc_name}/ipm.log" append="true" filePattern="%LOG_DIR%/${svc_name}/ipm-%d{MM-dd-yyyy}-%i.log">
    <PatternLayout>
        <ScriptPatternSelector defaultPattern="%d{yyyy-MM-dd HH:mm:ss,SSS} ${svc_name} %-5level %logger{36} [%t] [log_file:IPM] [cmp:$${sys:cmpId:-NA}] %msg%n">
            <ScriptRef ref="decideLoggingPattern"/>
            <PatternMatch key="showIpAddressAndUserName" pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} ${svc_name} %-5level %logger{36} [%t]  [log_file:IPM] [cmp:$${sys:cmpId:-NA}] ip_address=[%X{loggedInUserIp}] user=[%X{UserName}] %msg%n"/>
        </ScriptPatternSelector>
    </PatternLayout>
    <Policies>
        <TimeBasedTriggeringPolicy />
        <SizeBasedTriggeringPolicy size="10 MB" />
    </Policies>
    <DefaultRolloverStrategy max="2" />
</RollingFile>
Note: This filter is not available for indexer and pimcollector log files.
Level
Specify a level of the log message. The valid values are:
  • Default
  • Trace
  • Error
  • Debug
  • Info
  • Warn
  • Fatal
Clear all filters Fix Pack 10Click to clear all the existing filters from the columns.
Note: This icon is disabled until you apply a filter.
Settings
Click Settings to open the Settings pop-up window.
  • To remove a column, clear the checkbox for the column.
  • To select all the columns, click Select all.
Note:
  • If you select Date as the View by option, only date is visible irrespective of the Left pane > Settings > Personal settings > Locale and date/time > Output format configuration.
  • If you select Date and time range as the View by option, both date and time are dependent on the Left pane > Settings > Personal settings > Locale and date/time > Output format configuration.
  • To view REST API logs in the Log search console, configure the following property in the $TOP/mdmui/dynamic/mdmrest/log4j2.xml file.
    <Property name="svc_name">restapi</Property>
  • Fix Pack 12To view pimcollector or indexer service logs, you need to select the service name in the Filters section.