우분투 rsyslog.conf 편집하기

경고: 로그인하지 않았습니다. 편집을 하면 IP 주소가 공개되게 됩니다. 로그인하거나 계정을 생성하면 편집자가 사용자 이름으로 기록되고, 다른 장점도 있습니다.

편집을 취소할 수 있습니다. 이 편집을 되돌리려면 아래의 바뀐 내용을 확인한 후 게시해주세요.

최신판 당신의 편집
1번째 줄: 1번째 줄:
==개요==
#넘겨주기 [[/etc/syslog.conf]]
;/etc/rsyslog.conf
* [[rsyslog]] 설정 파일
 
==우분투 16==
<syntaxhighlight lang='aconf'>
#  /etc/rsyslog.conf Configuration file for rsyslog.
#
# For more information see
# /usr/share/doc/rsyslog-doc/html/rsyslog_conf.html
#
#  Default logging rules can be found in /etc/rsyslog.d/50-default.conf
 
 
#################
#### MODULES ####
#################
 
module(load="imuxsock") # provides support for local system logging
module(load="imklog")  # provides kernel logging support
#module(load="immark")  # provides --MARK-- message capability
 
# provides UDP syslog reception
#module(load="imudp")
#input(type="imudp" port="514")
 
# provides TCP syslog reception
#module(load="imtcp")
#input(type="imtcp" port="514")
 
# Enable non-kernel facility klog messages
$KLogPermitNonKernelFacility on
 
###########################
#### GLOBAL DIRECTIVES ####
###########################
 
#
# Use traditional timestamp format.
# To enable high precision timestamps, comment out the following line.
#
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
 
# Filter duplicated messages
$RepeatedMsgReduction on
 
#
# Set the default permissions for all log files.
#
$FileOwner syslog
$FileGroup adm
$FileCreateMode 0640
$DirCreateMode 0755
$Umask 0022
$PrivDropToUser syslog
$PrivDropToGroup syslog
 
#
# Where to place spool and state files
#
$WorkDirectory /var/spool/rsyslog
 
#
# Include all config files in /etc/rsyslog.d/
#
$IncludeConfig /etc/rsyslog.d/*.conf
</syntaxhighlight>
 
==우분투 14==
<syntaxhighlight lang='aconf'>
#  /etc/rsyslog.conf Configuration file for rsyslog.
#
# For more information see
# /usr/share/doc/rsyslog-doc/html/rsyslog_conf.html
#
#  Default logging rules can be found in /etc/rsyslog.d/50-default.conf
 
 
#################
#### MODULES ####
#################
 
$ModLoad imuxsock # provides support for local system logging
$ModLoad imklog  # provides kernel logging support
#$ModLoad immark  # provides --MARK-- message capability
 
# provides UDP syslog reception
#$ModLoad imudp
#$UDPServerRun 514
 
# provides TCP syslog reception
#$ModLoad imtcp
#$InputTCPServerRun 514
 
# Enable non-kernel facility klog messages
$KLogPermitNonKernelFacility on
 
###########################
#### GLOBAL DIRECTIVES ####
###########################
 
#
# Use traditional timestamp format.
# To enable high precision timestamps, comment out the following line.
#
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
 
# Filter duplicated messages
$RepeatedMsgReduction on
 
#
# Set the default permissions for all log files.
#
$FileOwner syslog
$FileGroup adm
$FileCreateMode 0640
$DirCreateMode 0755
$Umask 0022
$PrivDropToUser syslog
$PrivDropToGroup syslog
 
#
# Where to place spool and state files
#
$WorkDirectory /var/spool/rsyslog
 
#
# Include all config files in /etc/rsyslog.d/
#
$IncludeConfig /etc/rsyslog.d/*.conf
</syntaxhighlight>
 
==같이 보기==
* [[CentOS rsyslog.conf]]
* [[우분투 rsyslog 서버 설정]]
* [[rsyslog]]
* [[syslog.conf, rsyslog.conf]]
 
[[분류: rsyslog]]
[[분류: /etc]]
[[분류: .conf]]

제타위키에서의 모든 기여는 크리에이티브 커먼즈 저작자표시-동일조건변경허락 3.0 라이선스로 배포된다는 점을 유의해 주세요(자세한 내용에 대해서는 제타위키:저작권 문서를 읽어주세요). 만약 여기에 동의하지 않는다면 문서를 저장하지 말아 주세요.
또한, 직접 작성했거나 퍼블릭 도메인과 같은 자유 문서에서 가져왔다는 것을 보증해야 합니다. 저작권이 있는 내용을 허가 없이 저장하지 마세요!

취소 편집 도움말 (새 창에서 열림)