Need help sending syslog.conf files automatically and in real time from one linux box to another

Posted on 2006-05-26
Last Modified: 2010-04-20
I am new to Linux and just getting my feet wet in trying familiarize myself with using the OS.  One of the things I am trying to do right now is have all of my syslog.conf files from all of my servers sent to one central Linux server for collection.  I then have another piece of software that is supposed to allow me to analyze those collected logs.  Can anyone help me with the commands or script writing that it will take to get these logs from various Linux servers to automatically be sent to a centralized syslog.conf Linux collection server?  Any help would be great.
Question by:ltbuell
    LVL 16

    Expert Comment


    syslog allows you to send your logs to another server running syslog heres a good guide:

    read the section: Logging across the network
    LVL 38

    Accepted Solution

    1. define your loghost in /etc/hosts or DNS
    x.x.x.x    <hostname> loghost

    2. Add the following line into /etc/syslog.conf of all your servers.
    *.*                                                     @loghost
    (P.S. Make sure use "Tab" for the space between *.* and @loghost. syslog.conf only recognize "Tab", not space.)

    Then reload the syslog daemon on the server you change the syslog.conf.
    That's it.
    LVL 51

    Expert Comment


    Author Comment

    So, Wesly chen, whey I edit the /etc/hosts file, I am doing this on the servers that the logs are coming from, not the central server they are going to....correct?
    LVL 38

    Expert Comment

    >  I am doing this on the servers that the logs are coming from
    Yes, modify the /etc/syslog.conf on those servers that you want to forward the log the the "loghost", the central server.
    Replace the (Tab) with "Tab" key.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
    Join Greg Farro and Ethan Banks from Packet Pushers ( and Greg Ross from Paessler ( for a discussion about smart network …
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now