The translation is temporarily closed for contributions due to maintenance, please come back later.
English Korean
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 기능/우선순위-기반 필터
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_]"
where: 장소:
Property-based Filters 속성-기반 필터
:msg, contains, "error"
:msg, contains, "error"
where: 장소:
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