Linux 로그를 살펴볼 때의 키워드

Linux 시스템 문제를 해결하려면 문제를 효과적으로 식별하기 위해 로그를 살펴봐야 하는 경우가 많습니다. 검색할 올바른 키워드를 알면 문제를 빠르게 좁힐 수 있습니다. 이 가이드는 일반적인 문제를 분류하고 클라우드 환경과 온프레미스 환경 모두에서 Linux 시스템에 대한 관련 키워드와 로그 파일 제안을 제공합니다.


1. 인증 및 액세스 문제

키워드:

  • Failed password, authentication failure, pam_unix, sudo, sshd, login, access denied

확인할 로그:

  • /var/log/auth.log
  • /var/log/secure
  • /var/log/messages
  • /var/log/syslog

2. 네트워크 문제

키워드:

  • Network, eth, interface, timeout, unreachable, connection refused, connection reset, no route to host

확인할 로그:

  • /var/log/messages
  • /var/log/syslog
  • dmesg

3. 디스크 및 파일 시스템 문제

키워드:

  • I/O error, disk full, read-only file system, quota exceeded, no space left on device, mount, unmount, ext4, xfs

확인할 로그:

  • /var/log/messages
  • /var/log/syslog
  • /var/log/kern.log
  • dmesg

4. 프로세스 및 애플리케이션 충돌

키워드:

  • Segfault, core dumped, oom-killer, killed process, crash, panic, out of memory

확인할 로그:

  • /var/log/messages
  • /var/log/syslog
  • /var/log/kern.log
  • dmesg

5. 서비스 및 데몬 장애

키워드:

  • Failed to start, stopped, service unavailable, service failed, inactive, error starting, failed service

확인할 로그:

  • /var/log/syslog
  • /var/log/messages
  • /var/log/systemd
  • /var/log/journal
  • /var/log/service-name.log

6. 하드웨어 및 커널 문제

키워드:

  • Kernel, hardware error, driver, irq, firmware, acpi, temperature, overheating

확인할 로그:

  • /var/log/kern.log
  • dmesg
  • /var/log/messages

7. 보안 및 방화벽 문제

키워드:

  • Firewall, iptables, denied, blocked, dropped packet, unauthorized access, security

확인할 로그:

  • /var/log/firewalld
  • /var/log/syslog
  • /var/log/messages

8. 부팅 및 종료 문제

키워드:

  • Boot, shutdown, init, failed to mount, grub, timeout during boot, emergency mode

확인할 로그:

  • /var/log/boot.log
  • /var/log/syslog
  • /var/log/messages
  • dmesg

9. 소프트웨어 설치 및 업데이트 문제

키워드:

  • Yum, apt, zypper, failed dependency, package not found, installation failed, update error

확인할 로그:

  • /var/log/yum.log
  • /var/log/apt/history.log
  • /var/log/zypper.log
  • /var/log/messages

10. 시스템 리소스 문제

키워드:

  • High CPU, load average, memory usage, disk I/O, swap usage, out of resources

확인할 로그:

  • /var/log/syslog
  • /var/log/messages
  • dmesg

로그를 효율적으로 검색하기 위한 팁

다음과 같은 도구를 사용하세요:

  • grep: 로그에서 특정 키워드를 검색합니다.
  • journalctl: systemd 로그를 보고 필터링합니다.
  • tail: 로그를 실시간으로 모니터링합니다.

이러한 도구를 사용하면 Linux 로그 내에서 특정 문제를 빠르게 검색할 수 있습니다.

댓글 남기기