Difference between revisions of "Installing rsyslog from yum repository"

From Notes_Wiki
m
m
Line 20: Line 20:
##::$UDPServerRun 514
##::$UDPServerRun 514
##:</pre>
##:</pre>
#<tt>service rsyslog start</tt>
#<tt>chkconfig rsyslog on</tt>


After this to configure remote machines to send logs to rsyslog server use:
After this to configure remote machines to send logs to rsyslog server use:
Line 27: Line 29:
#:: *.* @&lt;server&gt;:&lt;port&gt;
#:: *.* @&lt;server&gt;:&lt;port&gt;
#:</pre>
#:</pre>
 
#<tt>service rsyslog start</tt>
 
#<tt>chkconfig rsyslog on</tt>




Steps learned from http://tecadmin.net/setup-centralized-logging-server-using-rsyslogd/  and contributed by Kiran Kollipara
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:34, 11 February 2015

<yambe:breadcrumb self="Installing from source">Rsyslog configuration</yambe:breadcrumb>

Installing rsyslog server in CentOS

To install rsyslog use following steps:

  1. Setup repositories rpmfusion, rpmforge and epel
  2. yum -y install rsyslog
  3. Disable SELinux
  4. Enable incoming UDP port 514 packets
  5. Edit '/etc/rsyslog.conf' file as follows:
    1. Append following lines
      $template TmplAuth, "/var/log/%HOSTNAME%/%PROGRAMNAME%.log"
      authpriv.* ?TmplAuth
      • .info,mail.none,authpriv.none,cron.none ?TmplMsg
    2. Uncomment following lines:
      $ModLoad imudp
      $UDPServerRun 514
  6. service rsyslog start
  7. chkconfig rsyslog on

After this to configure remote machines to send logs to rsyslog server use:

  1. Install rsyslog same as in case of server
  2. Edit '/etc/rsyslog.conf' file and append following configuration:
    *.* @<server>:<port>
  3. service rsyslog start
  4. chkconfig rsyslog on


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>