+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2003
    Location
    Petaling Jaya, Selangor, Malaysia.
    Posts
    276
    Rep Power
    12

    Default Some help needed on syslog.conf syntax on remote syslog box

    I've gotten remote syslog to work by logging to my linux box.
    a) configured & activated 'remote syslog' on StarOS box
    b) configured 'syslogd' on my linux box with 'syslogd -r -m 0'
    c) syslog.conf syntax as following:-
    Code:
    # Log anything (except mail) of level info or higher.
    # Don't log private authentication messages!
    *.info;mail.none;authpriv.none;cron.none                /var/log/messages
    However, this means everything is being logged to /var/log/messages
    How do I configure syslog.conf so that when the 'remote syslog' of the StarOS server sends info its logged into a separate file? (eg. /var/log/staros1-messages)

    Thanks!

  2. #2
    Join Date
    Jan 2003
    Location
    Florence, OR
    Posts
    285
    Rep Power
    12

    Default

    I could've sworn I saw someone ask something similar, so it might be answered elsewhere. But here is how we do it (/etc/syslog.conf on FreeBSD 4.9-Release):

    +RemoteSyslog1
    *.* /var/log/syslog/servers/RemoteSyslog1/RemoteSyslog1.log
    # The above will send ALL output from the remote machine to the file mentioned

    +* #End of Host-Specific Tag

    +RemoteSyslog2
    *.* /var/log/syslog/servers/RemoteSyslog2/RemoteSyslog2.log
    +*

    etc


    If I were you, I'd start making subdirectories and put each servers' logs into thier own space. It'll make specific logs easier to find later. But you can do it however you like.

    Also, depending on your os (And the version of syslog included), there are other arguments you can use. I'd recommend at least using -s, and then adding arguments for which servers can talk to it.

    Alternatively, you can setup a packetfilter/firewall to block all syslog traffic to the machine except from machines you specify.

    Michael

  3. #3
    Join Date
    Jul 2003
    Location
    USA, Texas
    Posts
    114
    Rep Power
    12

    Default

    If you are not familiar with unix:

    www.kiwisyslog.com
    James Taylor
    903-793-1956

  4. #4
    Join Date
    Feb 2003
    Location
    Petaling Jaya, Selangor, Malaysia.
    Posts
    276
    Rep Power
    12

    Default

    Well, this was my first post on this topic which was later answered in the StarOS section of the forums (http://forums.star-os.com/viewtopic....;postorder=asc)

    However, the answer in that post has been FreeBSD syslog specific as is this posts's answer.
    I was hoping to find an answer for syslog on a Linux Server.

    Thanks anyways

    - Szern

Similar Threads

  1. Syslog
    By titan_wireless in forum Support
    Replies: 0
    Last Post: 03-31-2005, 11:18 PM
  2. Syslog-NG Gentoo Remote Syslog Configuration
    By mmc1800 in forum Support
    Replies: 1
    Last Post: 02-04-2005, 05:21 AM
  3. configuring remote syslog
    By ldvaden in forum Support
    Replies: 8
    Last Post: 11-28-2004, 10:08 PM
  4. syslog
    By georgew in forum Support
    Replies: 9
    Last Post: 01-09-2003, 08:03 PM
  5. Somebody can help me with SYSLOG SYNTAX?
    By netrosas in forum Support
    Replies: 3
    Last Post: 12-12-2002, 07:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts