35.2. Viewing Log Files

35.2. Viewing Log Files

Most log files are in plain text format. You can view them with any text editor such as Vi or Emacs. Some log files are readable by all users on the system; however, root privileges are required to read most log files.

To view system log files in an interactive, real-time application, use the System Log Viewer. To start the application, go to Applications (the main menu on the panel) => System => System Logs, or type the command gnome-system-log at a shell prompt.

The application only displays log files that exist; thus, the list might differ from the one shown in Figure 35.1, “System Log Viewer”.

System Log Viewer

Figure 35.1. System Log Viewer

To filter the contents of the selected log file, click on View from the menu and select Filter as illustrated below.

System Log Viewer - View Menu

Figure 35.2. System Log Viewer - View Menu

Selecting the Filter menu item will display the Filter text field where you can type the keywords you wish to use for your filter. To clear your filter click on the Clear button.The figure below illustrates a sample filter.

System Log Viewer - Filter

Figure 35.3. System Log Viewer - Filter

Note: This documentation is provided {and copyrighted} by Red Hat®, Inc. and is released via the Open Publication License. The copyright holder has added the further requirement that Distribution of substantively modified versions of this document is prohibited without the explicit permission of the copyright holder. The CentOS project redistributes these original works (in their unmodified form) as a reference for CentOS-5 because CentOS-5 is built from publicly available, open source SRPMS. The documentation is unmodified to be compliant with upstream distribution policy. Neither CentOS-5 nor the CentOS Project are in any way affiliated with or sponsored by Red Hat®, Inc.