Results 1 to 4 of 4

Thread: syslog-ng log alert email

  1. #1

    Default syslog-ng log alert email

    I am using syslog-ng in my logserver - logs are collected in separate files for each server, all the files are rotated once a week. Is there any program I can use to send me an email warning end of every day for [kern.err] and [kern.warn]?

    Thanks for any suggestions.

  2. #2
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: syslog-ng log alert email

    How do you mean? Email you the contents of those files? Maybe a cron job?

  3. #3

    Default Re: syslog-ng log alert email

    Quote Originally Posted by ken_yap View Post
    How do you mean? Email you the contents of those files? Maybe a cron job?
    No, emailing the total log content would be too much information. I am looking for something that could send out an alert. I could write my own but wondering if there is something already available.

    Thanks.

  4. #4
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: syslog-ng log alert email

    So you want an email each day if there have been any log messages in those categories? Sounds like a job to do a grep then email would do what you want.

    You could get syslog-ng to send those two categories to a socket destination and the listening process would make an email of any input, but that would be even more complicated.

Posting Permissions

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