{"id":4336,"date":"2021-12-28T16:09:00","date_gmt":"2021-12-28T22:09:00","guid":{"rendered":"https:\/\/www.incredigeek.com\/home\/?p=4336"},"modified":"2024-03-06T16:44:48","modified_gmt":"2024-03-06T22:44:48","slug":"enable-remote-syslog-on-linux-debian-ubuntu-centos-fedora","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/enable-remote-syslog-on-linux-debian-ubuntu-centos-fedora\/","title":{"rendered":"Enable Remote Logging in Rsyslog on Linux (Debian, Ubuntu, CentOS, Fedora)"},"content":{"rendered":"\n<p>Edit the rsyslog file<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo vi \/etc\/rsyslog.conf<\/pre>\n\n\n\n<p>add the following.  Change out the IP address for your remote syslog server IP address.<\/p>\n\n\n\n<p><em>The syntax for this has changes.  Newer recommended way is<\/em><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">*.*  action(type=\"omfwd\" target=\"192.0.10.5\" port=\"514\" protocol=\"tcp\"<\/pre>\n\n\n\n<p>Old Syntax<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">## rsyslog Server\n*.*     @10.0.10.5:514<\/pre>\n\n\n\n<p><a href=\"https:\/\/www.rsyslog.com\/sending-messages-to-a-remote-syslog-server\/\">https:\/\/www.rsyslog.com\/sending-messages-to-a-remote-syslog-server\/<\/a><\/p>\n\n\n\n<p>Restart the rsyslog service and check your remote log server.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">systemctl restart rsyslog<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>If you are having issues viewing logs in LibreNMS, try adding the hostname in the \/etc\/rsyslog.conf file<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$LocalHostName server.hostname.com<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Edit the rsyslog file sudo vi \/etc\/rsyslog.conf add the following. Change out the IP address for your remote syslog server IP address. The syntax for this has changes. Newer recommended way is *.* action(type=&#8221;omfwd&#8221; target=&#8221;192.0.10.5&#8243; port=&#8221;514&#8243; protocol=&#8221;tcp&#8221; Old Syntax ## &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/enable-remote-syslog-on-linux-debian-ubuntu-centos-fedora\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[7,125,1250,134,1277,565],"class_list":["post-4336","post","type-post","status-publish","format-standard","hentry","category-linux","tag-linux-2","tag-linux-monitoring","tag-logging","tag-monitoring","tag-remote-monitoring","tag-rsyslog"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/4336","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=4336"}],"version-history":[{"count":6,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/4336\/revisions"}],"predecessor-version":[{"id":5754,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/4336\/revisions\/5754"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=4336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=4336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=4336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}