+ Reply to Thread
Results 1 to 2 of 2

Thread: syslogd: how to redirect incoming logs

  1. #1
    Senior Member
    Join Date
    Apr 2002
    Posts
    417

    syslogd: how to redirect incoming logs

    Hi,

    If I set up my syslogd server to accept incoming logs, how can I specify what actions to take when logs come in from a specific host?

    like if PC1 sends me some mail logs then sends me some kernel logs,
    how can I hand each individual type log seperately?

    Thanks,

  2. #2
    Senior Member
    Join Date
    Sep 2002
    Posts
    421

    Re:syslogd: how to redirect incoming logs

    Use syslog-ng or something similar. It's amazing how incapable plain syslog on linux is. Not only does it transmit logs via udp to the loghost so if the network is congested you will lose log messages randomly. Sorting messages via the log facilities (auth, authpriv, cron, daemon, ftp, kern, lpr, mail, news, syslog, user, uucp, local0..local7) and log levels (debug, info, notice, warn, err, crit, alert, emerg) is just rediculously inflexible. Few programs let you actually specify what level or facility to use so that few files get cluttered with all sorts of different log messages. There are log parsers (logcheck comes to mind) that will sort through this mess and mail you detailed reports of things that have been happening but you might as well spend the time you need to configure such a program with setting up a decent syslogger like syslog-ng.

    This allows tcp connections to your loghost (using stunnel you can even encrypt the connection). Also the syslog-ng.conf file has a very straight-forward syntax for setting up filters that use reg expressions to sort the messages into various files, store them in a database, mail them out, send sms in case of an emergency or whatever you need it to do. The syslog-ng homepage has a short manual that gives you a good overview and should get you started quickly.

+ Reply to Thread

Similar Threads

  1. Syslog-ng unable to log Cisco Logs
    By Mohd Anis in forum Linux - Software, Applications & Programming
    Replies: 4
    Last Post: 09-19-2008, 08:18 AM
  2. adding squid logs to logrotate
    By -JhAzEr- in forum Linux - General Topics
    Replies: 7
    Last Post: 10-18-2002, 01:31 PM
  3. Red Hat Logs
    By Rukasboy in forum Linux - Software, Applications & Programming
    Replies: 2
    Last Post: 07-08-2002, 11:10 PM
  4. apache logs
    By agar in forum Linux - Hardware, Networking & Security
    Replies: 10
    Last Post: 01-19-2002, 03:21 AM

Bookmarks

Posting Permissions

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