°Ô½Ã¹° 260°Ç
   
[Redhat] syslog ( rsyslog ) ¼³Á¤
±Û¾´ÀÌ : theko ³¯Â¥ : 2014-04-17 (¸ñ) 13:25 Á¶È¸ : 10436

1. ¼­¹ö Á¤º¸

- ÇÁ¶ô½Ã ¼­¹ö(proxy) : 192.168.0.52        OS : centOS5.3

- ·Î±× ¼­¹ö(redhat) : 192.168.0.92         OS : Redhat6.2

1) ÇÁ¶ô½Ã ¼­¹ö ¼³Á¤

# vi /etc/hosts

192.168.0.92    redhat

# vi /etc/syslog.conf
user.*  @redhat

# /etc/init.d/syslog restart



2) ·Î±× ¼­¹ö(redhat) ¼³Á¤

# vi /etc/sysconfig/rsyslog

#SYSLOGD_OPTIonS="-c 4 -r -m"   // ±âÁ¸ ³»¿ªÀ» ÁÖ¼®Ã³¸® ÇÏ°í

SYSLOGD_OPTIonS="-m 0 –r       // ÀÌ¿Í °°ÀÌ ¼öÁ¤ ȤÀº ÀÔ·Â


-  rsyslog.conf ¼öÁ¤

$ModLoad imudp.so 

$UDPServerRun 514 ±âÁ¸ ÁÖ¼®Ã³¸® Á¦°Å


# /etc/init.d/rsyslog restart



·Î±×¼­¹ö¿¡¼­ tail -f /var/log/messages ¿¡ µ¿½Ã¿¡ ½×ÀÓ


À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com