Tips for finding and searching log files

These tips might help you in finding and searching log files.

  • Log file names can have lowercase letters (such as logfile.log) or mixed case letters (such as logFile.log).
  • For Linux®, AIX®, and Linux on System z® operating systems, use the less, grep, and vi commands for searching logs.

    If you install Cygwin, you can use the less, grep, and vi commands on Windows systems.

  • Start at the end of the file, and search backwards.
  • Filter the DiscoverManager.log file using the following methods:
    • The DiscoverManager.log file can be large.
      • Divide the file into pieces using the split command, which is available on UNIX platforms.
      • Use the grep command to search for specific strings, and pipe the results into another file.
    • If the result is verbose and you want additional filtering, use the Target or Thread commands.
    • If you are reviewing the entire file, start by finding the target and sensor that you are working with. For example, search for IpDeviceSensor-9.3.5.184. After you search for the target and sensor, use the Find-next function for the Thread ID. For example, DiscoverWorker-10.
    • If you are searching a filtered log and find something that you are looking for, note the time stamp. For example, 2007-08-29 21:42:16,747. Look at the complete log for the lines near that time stamp.