4.6 Analyzing and Searching Recent Log Entries

Use the tfactl analyze command to analyze and search recent log entries.

To analyze and search recent log entries:

  1. To analyze all important recent log entries:
    tfactl analyze –since n[h|d]

    Specify the period of time to analyze in either hours or days.

    For example:
    tfactl analyze –since 14d

    The command output shows you a summary of errors found in the logs during the period specified.

  2. To search for all occurrences of a particular message or error code over a specified period of hours or days:
    tfactl analyze –search “message” –since n[h|d]
    For example:
    $ tfactl analyze -search "ORA-006" -since 14d