How to Setup Rsyslog Client to Send Logs to Rsyslog Server in CentOS 7

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Matei Cezar

I'am a computer addicted guy, a fan of open source and linux based system software, have about 4 years experience with Linux distributions desktop, servers and bash scripting.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

6 Responses


    Please refer 11th point, You mentioned that on remote *syslog server* we need to make changes. But I think these changes are to be done on syslog client end (not on server end). By this client specifies that what logs to be sent to syslog server and on what port.

  2. Carlso mondree says:

    not working in Centos 7.4

  3. Otis Gospodnetic says:

    Rsyslog has been around for a really long time and lots of how-tos are old, so it’s good to see something fresh, Matei!

  4. Matei Cezar says:

    The point 5 code lines should look like this:

    $template RemoteLogs,”/var/log/%HOSTNAME%/%PROGRAMNAME%.log”
    *.* ?RemoteLogs

    and the next template:

    $template FromIp,”/var/log/%FROMHOST-IP%.log”
    *.* ?FromIp

  5. Jurgen Rastapopoulos says:

    Great! I may have spotted one typo though. At step 2, point 4, your first example of redirection is : *. * @ Should there really be a space between the dot and the second star?

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.