Jump to content
crc_error

Syslog-ng triggers

Recommended Posts

I am looking for a way to get syslog-ng to trigger an event.

To be more specific: If I recieve a syslog-message with some speciel text e.g "thingy". I want the syslog-server to send an email.

Is this something that can be done using only syslog-ng and sendmail???

Share this post


Link to post
Share on other sites

I don't know if syslog-ng can do that or not. What i would do is write something in perl to parse the log file every 5-10 minutes and look for that keyword. If it is there, send the lines which contain it to an email account. If you need it i can write something for you to do just that.

Share this post


Link to post
Share on other sites
I don't know if syslog-ng can do that or not. What i would do is write something in perl to parse the log file every 5-10 minutes and look for that keyword. If it is there, send the lines which contain it to an email account. If you need it i can write something for you to do just that.

 

A perl-script might do the trick, however instant action when a message arrives is what I'm working on.

Share this post


Link to post
Share on other sites
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...