{"id":816,"date":"2014-12-03T22:38:15","date_gmt":"2014-12-03T22:38:15","guid":{"rendered":"http:\/\/shivdev.com\/blog\/?p=816"},"modified":"2014-12-03T22:38:15","modified_gmt":"2014-12-03T22:38:15","slug":"rsyslog-the-basics","status":"publish","type":"post","link":"http:\/\/shivdev.com\/blog\/2014\/12\/03\/rsyslog-the-basics\/","title":{"rendered":"RSyslog &#8211; The Basics"},"content":{"rendered":"<p>Honestly, I found syslog-ng simpler to use once I knew <a href=\"http:\/\/shivdev.com\/blog\/2014\/10\/22\/syslogng-the-basics\/\">The Basics<\/a>. However, I also needed to do some testing with rsyslog and hence needed to dig in.<\/p>\n<p>Setup and configure the Host Machine where you will receive the syslog messages.<\/p>\n<blockquote><p># 1. Install rsyslog<br \/>\n$ sudo apt-get install rsyslog<\/p>\n<p># 2. Backup the config file syslog-ng.conf<br \/>\n$ sudo cp \/etc\/rsyslog.conf \/etc\/rsyslog.conf.orig<\/p>\n<p># 3. Edit the config file<br \/>\n$ sudo vi \/etc\/rsyslog.conf<\/p>\n<p># 4. Enable TCP\/UDP by Uncommenting the following<br \/>\n# provides UDP syslog reception<br \/>\n$ModLoad imudp<br \/>\n$UDPServerRun 514<\/p>\n<p># provides TCP syslog reception<br \/>\n$ModLoad imtcp<br \/>\n$InputTCPServerRun 514<\/p>\n<p># Add a file that will be the destination for your Syslog<br \/>\nlocal5.* \/var\/log\/my_rsyslog.log<\/p>\n<p># 5. Restart rsyslog<br \/>\n$ sudo service rsyslog restart<\/p><\/blockquote>\n<p>When you configure your Appliance to forward syslog to your Host at <em>local5<\/em>, you will see the logs in &#8220;\/var\/log\/my_rsyslog.log&#8221;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Honestly, I found syslog-ng simpler to use once I knew The Basics. However, I also needed to do some testing with rsyslog and hence needed to dig in. Setup and configure the Host Machine where you will receive the syslog messages. # 1. Install rsyslog $ sudo apt-get install rsyslog # 2. Backup the config [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[],"_links":{"self":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts\/816"}],"collection":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/comments?post=816"}],"version-history":[{"count":1,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts\/816\/revisions"}],"predecessor-version":[{"id":817,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/posts\/816\/revisions\/817"}],"wp:attachment":[{"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/media?parent=816"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/categories?post=816"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/shivdev.com\/blog\/wp-json\/wp\/v2\/tags?post=816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}