Snort mailing list archives

Re: messages to syslog at startup.


From: Martin Roesch <roesch () sourcefire com>
Date: Sat, 17 Jan 2004 15:09:53 -0500

The startup messages are generated by calling LogMessage from util.c, the function is below. Looks like LOG_DAEMON and LOG_NOTICE are being used judging by the syslog() call in there.


void LogMessage(const char *format,...)
{
    char buf[STD_BUF+1];
    va_list ap;

    if(pv.quiet_flag && !pv.daemon_flag)
        return;

    va_start(ap, format);

    if(pv.daemon_flag)
    {
        vsnprintf(buf, STD_BUF, format, ap);
        syslog(LOG_DAEMON | LOG_NOTICE, "%s", buf);
    }
    else
    {
        vfprintf(stderr, format, ap);
    }
    va_end(ap);
}


     -Marty


On Jan 16, 2004, at 3:24 PM, Dave Randolph wrote:

Hi all.
What logging facility does snort use to log out the messages that are output when it starts in daemon mode? I need to filter these out so that they don't get processed by logsurfer & mailed home.
thanks!!

Dave Randolph              Northstar Bank of Texas
Master Geek                400 N. Carroll
drandolph () nstarbank com    Denton, Tx 76201
                           940 591 1200

####################################################################### ##############

This email has been scanned by MailMarshal, an email content filter.
Please contact Administrator () nstarbank com if you have any questions or
comments. Thank you.
####################################################################### ##############


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Snort-users mailing list
Snort-users () lists sourceforge net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/listinfo/snort-users
Snort-users list archive:
http://www.geocrawler.com/redir-sf.php3?list=snort-users


--
Martin Roesch - Founder/CTO, Sourcefire Inc. - (410)290-1616
Sourcefire: Intelligent Security Monitoring
roesch () sourcefire com - http://www.sourcefire.com
Snort: Open Source Network IDS - http://www.snort.org



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Snort-users mailing list
Snort-users () lists sourceforge net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/listinfo/snort-users
Snort-users list archive:
http://www.geocrawler.com/redir-sf.php3?list=snort-users


Current thread: