이 콘텐츠는 선택한 언어로 제공되지 않습니다.

Chapter 25. Viewing and Managing Log Files


Log files are files that contain messages about the system, including the kernel, services, and applications running on it. There are different log files for different information. For example, there is a default system log file, a log file just for security messages, and a log file for cron tasks.
Log files can be very useful when trying to troubleshoot a problem with the system such as trying to load a kernel driver or when looking for unauthorized login attempts to the system. This chapter discusses where to find log files, how to view log files, and what to look for in log files.
Some log files are controlled by a daemon called rsyslogd. The rsyslogd daemon is an enhanced replacement for previous sysklogd, and provides extended filtering, encryption protected relaying of messages, various configuration options, input and output modules, support for transportation via the TCP or UDP protocols. Note that rsyslog is compatible with sysklogd.

25.1. Installing rsyslog

Version 5 of rsyslog, provided in the rsyslog package, is installed by default in Red Hat Enterprise Linux 6. If required, to ensure that it is, issue the following command as root: Copy to Clipboard Toggle word wrap
~]# yum install rsyslog
Loaded plugins: product-id, refresh-packagekit, subscription-manager
Package rsyslog-5.8.10-10.el6_6.i686 already installed and latest version
Nothing to do

25.1.1. Upgrading to rsyslog version 7

Version 7 of rsyslog, provided in the rsyslog7 package, is available in Red Hat Enterprise Linux 6. It provides a number of enhancements over version 5, in particular higher processing performance and support for more plug-ins. If required, to change to version 7, make use of the yum shell utility as described below.

Procedure 25.1. Upgrading to rsyslog 7

To upgrade from rsyslog version 5 to rsyslog version 7, it is necessary to install and remove the relevant packages simultaneously. This can be accomplished using the yum shell utility.
  1. Enter the following command as root to start the yum shell: Copy to Clipboard Toggle word wrap
    ~]# yum shell
    Loaded plugins: product-id, refresh-packagekit, subscription-manager
    >
    The yum shell prompt appears.
  2. Enter the following commands to install the rsyslog7 package and remove the rsyslog package. Copy to Clipboard Toggle word wrap
    > install rsyslog7
    > remove rsyslog
  3. Enter run to start the process: Copy to Clipboard Toggle word wrap
    > run
    --> Running transaction check
    ---> Package rsyslog.i686 0:5.8.10-10.el6_6 will be erased
    ---> Package rsyslog7.i686 0:7.4.10-3.el6_6 will be installed
    --> Finished Dependency Resolution
    
    ============================================================================
     Package        Arch     Version           Repository                  Size
    ============================================================================
    Installing:                                                          
     rsyslog7       i686     7.4.10-3.el6_6    rhel-6-workstation-rpms    1.3 M
    Removing:                                                            
     rsyslog        i686     5.8.10-10.el6_6   @rhel-6-workstation-rpms   2.1 M
                                                                         
    Transaction Summary                                                 
    ============================================================================
    Install  1 Package
    Remove   1 Package
    
    Total download size: 1.3 M
    Is this ok [y/d/N]:y
  4. Enter y when prompted to start the upgrade.
  5. When the upgrade is completed, the yum shell prompt is displayed. Enter quit or exit to exit the shell: Copy to Clipboard Toggle word wrap
    Finished Transaction
    > quit
    Leaving Shell
    ~]#
For information on using the new syntax provided by rsyslog version 7, see Section 25.4, “Using the New Configuration Format”.
맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat, Inc.