|
Viewing and Managing Log Files
|
로그 파일 보기와 관리
|
|
Locating Log Files
|
로그파일 찾기
|
|
Basic Configuration of Rsyslog
|
Rsyslog의 기본 구성
|
|
Filters
|
필터
|
|
Facility/Priority-based filters
|
시설/우선 순위-기반 필터
|
|
_FACILITY_._PRIORITY_
|
_시설_._우선순위_
|
|
where:
|
장소:
|
|
Facility/Priority-based Filters
|
Facility/우선순위-기반 필터
|
|
kern.*
|
kern.*
|
|
mail.crit
|
mail.crit
|
|
cron.!info,!debug
|
cron.!info,!debug
|
|
Property-based filters
|
속성-기반 필터
|
|
:pass:quotes[_PROPERTY_], [!]pass:quotes[_COMPARE_OPERATION_], "pass:quotes[_STRING_]"
|
:pass:quotes[_PROPERTY_], [!]pass:quotes[_COMPARE_OPERATION_], "pass:quotes[_STRING_]"
|
|
Property-based Filters
|
속성-기반 필터
|
|
:msg, contains, "error"
|
:msg, contains, "error"
|
|
if $programname == 'prog1' then { action(type="omfile" file="/var/log/prog1.log") if $msg contains 'test' then action(type="omfile" file="/var/log/prog1test.log") else action(type="omfile" file="/var/log/prog1notest.log") }
|
if $programname == 'prog1' then { action(type="omfile" file="/var/log/prog1.log") if $msg contains 'test' then action(type="omfile" file="/var/log/prog1test.log") else action(type="omfile" file="/var/log/prog1notest.log") }
|
|
Actions
|
동작
|
|
cron.* /var/log/cron.log
|
cron.* /var/log/cron.log
|
|
*.* @192.168.0.1
|
*.* @192.168.0.1
|
|
To forward messages to "example.com" using port 18 and the `TCP` protocol, use:
|
포트 18과 `TCP` 통신규약을 사용하여 "example.com"에 메시지를 전달 할 때에, 다음을 사용합니다:
|