Difference between revisions of "Installing rsyslog from yum repository"
From Notes_Wiki
m |
m |
||
Line 2: | Line 2: | ||
=Installing rsyslog server in CentOS= | =Installing rsyslog server in CentOS= | ||
To install rsyslog | To install rsyslog use following steps: | ||
#Setup repositories rpmfusion, rpmforge and epel | |||
#<tt>yum -y install rsyslog</tt> | |||
#Disable SELinux | |||
#Enable incoming UDP port 514 packets | |||
#Edit '<tt>/etc/rsyslog.conf</tt>' file as follows: | |||
##Append following lines | |||
##:<pre> | |||
##::$template TmplAuth, "/var/log/%HOSTNAME%/%PROGRAMNAME%.log" | |||
##:: | |||
##::authpriv.* ?TmplAuth | |||
##::*.info,mail.none,authpriv.none,cron.none ?TmplMsg | |||
##::</pre> | |||
##Uncomment following lines: | |||
##:<pre> | |||
##::$ModLoad imudp | |||
##::$UDPServerRun 514 | |||
##:</pre> | |||
After this to configure remote machines to send logs to rsyslog server use: | |||
#Install rsyslog same as in case of server | |||
#Edit '<tt>/etc/rsyslog.conf</tt>' file and append following configuration: | |||
#:<pre> | |||
#:: *.* @<server>:<port> | |||
#:</pre> | |||
* | |||
*: | |||
Steps learned from http://tecadmin.net/setup-centralized-logging-server-using-rsyslogd/ and contributed by Kiran Kollipara | |||
<yambe:breadcrumb self="Installing from source">Rsyslog configuration</yambe:breadcrumb> | <yambe:breadcrumb self="Installing from source">Rsyslog configuration</yambe:breadcrumb> |
Revision as of 06:32, 11 February 2015
<yambe:breadcrumb self="Installing from source">Rsyslog configuration</yambe:breadcrumb>
Installing rsyslog server in CentOS
To install rsyslog use following steps:
- Setup repositories rpmfusion, rpmforge and epel
- yum -y install rsyslog
- Disable SELinux
- Enable incoming UDP port 514 packets
- Edit '/etc/rsyslog.conf' file as follows:
- Append following lines
- $template TmplAuth, "/var/log/%HOSTNAME%/%PROGRAMNAME%.log"
- authpriv.* ?TmplAuth
- .info,mail.none,authpriv.none,cron.none ?TmplMsg
- Uncomment following lines:
- $ModLoad imudp
- $UDPServerRun 514
- Append following lines
After this to configure remote machines to send logs to rsyslog server use:
- Install rsyslog same as in case of server
- Edit '/etc/rsyslog.conf' file and append following configuration:
- *.* @<server>:<port>
Steps learned from http://tecadmin.net/setup-centralized-logging-server-using-rsyslogd/ and contributed by Kiran Kollipara
<yambe:breadcrumb self="Installing from source">Rsyslog configuration</yambe:breadcrumb>