Skip to main content
removed unnecessary thanks
Source Link
Zelda
  • 6.4k
  • 1
  • 24
  • 28

I am using Cygwin in Windows 7. I am trying to make my syslog-ng daemon send a ssh log via email to me when ever someone tries to log into my computer. I tried using the code below (entered into /etc/syslog-ng/syslog-ng.conf but the smtp driver is not recognized. Is there a way to get it to work? Thanks

filter f_ssh {
        program("sshd"); };
    
    destination d_email_notification {
        smtp(
            host("localhost") port(25)
            from("syslog notification" "syslog@localhost")
            reply_to("syslog" "syslog@localhost")
            to("User" "[email protected]")
            subject("[syslog notification]: ssh message")
            body("Syslog received:\n$MSG")
            );
    };
    
    log {
        source(s_local);
        filter(f_ssh);
        destination(d_email_notification);
    };

I am using Cygwin in Windows 7. I am trying to make my syslog-ng daemon send a ssh log via email to me when ever someone tries to log into my computer. I tried using the code below (entered into /etc/syslog-ng/syslog-ng.conf but the smtp driver is not recognized. Is there a way to get it to work? Thanks

filter f_ssh {
        program("sshd"); };
    
    destination d_email_notification {
        smtp(
            host("localhost") port(25)
            from("syslog notification" "syslog@localhost")
            reply_to("syslog" "syslog@localhost")
            to("User" "[email protected]")
            subject("[syslog notification]: ssh message")
            body("Syslog received:\n$MSG")
            );
    };
    
    log {
        source(s_local);
        filter(f_ssh);
        destination(d_email_notification);
    };

I am using Cygwin in Windows 7. I am trying to make my syslog-ng daemon send a ssh log via email to me when ever someone tries to log into my computer. I tried using the code below (entered into /etc/syslog-ng/syslog-ng.conf but the smtp driver is not recognized. Is there a way to get it to work?

filter f_ssh {
        program("sshd"); };
    
    destination d_email_notification {
        smtp(
            host("localhost") port(25)
            from("syslog notification" "syslog@localhost")
            reply_to("syslog" "syslog@localhost")
            to("User" "[email protected]")
            subject("[syslog notification]: ssh message")
            body("Syslog received:\n$MSG")
            );
    };
    
    log {
        source(s_local);
        filter(f_ssh);
        destination(d_email_notification);
    };
Post Migrated Here from serverfault.com (revisions)
Source Link
synthesis
  • 163
  • 1
  • 2
  • 10

ssh log sent to email in Cygwin

I am using Cygwin in Windows 7. I am trying to make my syslog-ng daemon send a ssh log via email to me when ever someone tries to log into my computer. I tried using the code below (entered into /etc/syslog-ng/syslog-ng.conf but the smtp driver is not recognized. Is there a way to get it to work? Thanks

filter f_ssh {
        program("sshd"); };
    
    destination d_email_notification {
        smtp(
            host("localhost") port(25)
            from("syslog notification" "syslog@localhost")
            reply_to("syslog" "syslog@localhost")
            to("User" "[email protected]")
            subject("[syslog notification]: ssh message")
            body("Syslog received:\n$MSG")
            );
    };
    
    log {
        source(s_local);
        filter(f_ssh);
        destination(d_email_notification);
    };