정보보안기사

[정보기 23회 실기 복기] Var log 5개 영역 분석

멋쟁이천재사자 2023. 8. 6. 20:15

2023년 7월 29일 실기 첫번째 도전인 23회 시험에서 망했습니다. 23회 문제를 복기(전체 목록 : https://it-freelancer.tistory.com/1402)하고 공부하면서 11월 25일에 있을 다음 시험을 준비하려고 합니다.

 

문제

/var/log/messages 샘플이이다.

Jul 31 19:37:27 centos systemd: Started Session 3 of user root.
Jul 31 19:37:27 centos systemd-logind: New session 3 of user root.
Jul 31 19:37:27 centos systemd: Started Session 4 of user root.
Jul 31 19:37:27 centos systemd-logind: New session 4 of user root.
Jul 31 19:37:27(1) centos(2) dbus(3)[682](4): [system] Activating service name='org.freedesktop.problems' ..(5)
Jul 31 19:37:27 centos dbus[682]: [system] Successfully activated service 'org.freedesktop.problems'
Jul 31 19:38:06 centos systemd: Stopping The Apache HTTP Server...

3,4,5 번째 영역에 대해 설명하라

 

제출 답안

1.프로세스
2.요청 상세 내용
3.요청 처리 결과

 

후기

로그들을 보고 유추해본 것인데 1번에 해당하는 3번째 부분은 통일된 포맷인데 4,5 번째는 포맷이 일관되지 않아 ..

 

개선 답안(정답 또는 모범 답안 아님 주의)

1. 메시지를 생성한 프로그램 (the program that generated the message)

2. 메시지를 생성한 프로그램의 프로세스 번호 (the process number (enclosed in square brackets) of the program that generated the message.)

3. 상세 로그 메시지 (the actual log message.)

 

 

 

 

 

Study 이력 [2023-08-07]

② 시스템 로그 (/var/log/messages)
    - 주로 접속 시 인증에 관한 것과 메일에 관한 내용, 시스템에 관한 변경사항 등 시스템에 관한 전반적인 로그를 기록하는 파일 이다.
    - timestamp, 호스트명, 데몬명, 메시지 내용 등이 기록 된다.
 
 

https://geek-university.com/var-log-messages-file/

 

/var/log/messages file | Linux#

This article describes the /var/log/messages file, the most important log file in Linux.

geek-university.com

 
The lines are divided into five parts:
the date and time of the message.
the name of the hosst from which the message came from.
the program that generated the message.
the process number (enclosed in square brackets) of the program that generated the message.
the actual log message.
4번째 항목이 내 생각과 달랐다. 괄호로 감싸진 것이었다.
 

문제

정리 필요

개선 답안

1. 메시지를 생성한 프로그램 (the program that generated the message)

2. 메시지를 생성한 프로그램의 프로세스 번호 (the process number (enclosed in square brackets) of the program that generated the message.)

3. 상세 로그 메시지 (the actual log message.)