To Filter Displayed Log Records

Before You Begin

Ensure that you are viewing log files for the domain administration server (DAS), a clustered GlassFish Server instance, or a standalone instance. For more information, see the following topics:

  1. In the Search Criteria area, filter the records by content, time period, and log level.

    1. To display only records that contain specific text, in the Text Search field, type the text.

      The search is case sensitive.

    2. To select the period of time for which log records are displayed, use the Timestamp option.

      • To view the most recent messages, select Most Recent (default).

      • To view messages only from a certain period of time, select Specific Range and type date and time values in the From and To fields that appear.

        The Date value must take the following form:

        MM/DD/YY
        

        MM is an integer in the range 1-12 for the month number, for example, 1 for January or 10 for October. DD is an integer in the range 1-31 for the day of the month. YY are the last two digits of the year, for example, 11 for the year 2011.

        For example, to specify the date February 1st, 2011, type 2/1/11 in the Date field.

        The Time value must take the following form:

        hh:mm:ss.SSS
        

        hh is an integer in the range 0-23 to represent the hour. For times in the afternoon, use integers in the range 12-23, for example, 14 to represent 2 PM. mm is an integer in the range 0-59 for the number of minutes past the hour. ss is an integer in the range 0-59 for the number of seconds. SSS is a three-digit integer, with leading zeroes if necessary, in the range 000-999 for the number of milliseconds.

        For example, to specify the time 5.10 PM, type 17:10:00.000 in the Time field.

        If the From value is later than the To value, an error message appears.

    3. Filter messages by log level.

      To ensure that the messages that you want to view appear in the server log, first set the appropriate log levels on the Module Log Levels page. See To Configure Log Levels for instructions.

      If you choose to filter log messages by log level, only messages that match the specified filter criteria are shown. However, this filtering does not affect which messages are logged to the server log.

      1. From the Log Level drop-down list, select the log level.

      2. To display messages at only the selected level, select the Do Not Include More Severe Messages option.

        By default, all messages in the server log at the chosen log level and more severe levels are displayed.

  2. In the Advanced Search area, filter records by logger namespace and select the amount of information that is displayed.

    1. Click the Advanced Search link.

      The Advanced Search area is added to the Log Viewer window.

    2. To filter by module, from the Logger drop-down list, select one or more namespaces.

      Use Shift-click or Control-click to choose multiple namespaces.

      Selecting a namespace at a higher level selects all the namespaces below it. For example, selecting javax.enterprise.system also selects the loggers for all the modules under that namespace, such as javax.enterprise.system.core, javax.enterprise.system.tools.admin, and so forth.

    3. To view messages from loggers for a particular application, in the Custom Logger field, type the name of each logger on a separate line.

      If the application has several modules, you can view any module or all modules. For example, an application might have the following loggers:

      com.example.myapp.module1
      com.example.myapp.module2
      com.example.myapp.module3
      

      To view messages from all modules in the application, type com.mycompany.myapp. To view messages from module2 only, type com.example.myapp.module2.

      When you specify one or more custom loggers, messages from GlassFish Server modules appear only if you specify them explicitly in the Logger area.

    4. From the Display drop-down list, select the number of messages to display.

      The default number of messages displayed is 40. Other choices are 100, 250, and 1000.

    5. To view stack traces, deselect the Limit Excessively Long Messages option.

      By default, stack traces do not appear in the viewer. To view stack traces, click the (details) link for a message.

    6. To hide the Advanced Search area, click the Basic Search link.

  3. To specify the instance and associated log file that you want to view, use the Modify Search area.

  4. In the Search Results area, customize the display of log messages.

    The Search Results area displays the 40 most recent entries in the server log, with the settings from the Logging Settings page and Log Levels page.

See Also
Copyright © 2005, 2017, Oracle and/or its affiliates. All rights reserved. Legal Notices