Snort mailing list archives
RE: Problems logging to syslog and mysql simultaneously
From: Frank Knobbe <fknobbe () knobbeits com>
Date: 21 Jun 2002 22:48:23 -0500
On Wed, 2002-06-19 at 19:38, Michael Steele wrote:
Don, Hummm... This is bizarre... I have 37k alerts in my Syslog, so I know it works. Are you sure you don't have some service turned off that is preventing the alerts from arriving? What version of Snort? Do you have alerts in the syslog? Can you send me your snort.conf?
Not at all bizarre. I think this affects only the Windows version.
Here's why. The syslog config in snort.conf is useless under Windows
machines since it does not specify an IP address of a syslog server.
Windows not have a native syslog thingy, so without specifying an IP
address, Snort doesn't log. Again, only under Windows. Under *nix, the
syslog config in snort.conf works fine.
If you specify a syslog server with -s in the command line, you enable
Snort-win32 to log to syslog. However, the command line option overrides
the snort.conf, so other outputs don't work.
The solution is to hack the code. You can have Snort accept the -s
option, and at the same time still use snort.conf outputs. So after the
hack, you can log to syslog and *SQL.
In snort.c, withing ParseCmdLine, you'll find:
#ifdef WIN32
case 'E': /* log alerts to Event Log */
pv.syslog_flag = 1;
pv.syslog_remote_flag = 0;
DebugMessage(DEBUG_INIT, "Logging alerts to Event
Log\n");
pv.alert_cmd_override = 1;
break;
#endif
Just remove the >pv.alert_cmd_override = 1;< and you can specify -s
without overriding the snort.conf.
Regards,
Frank
Attachment:
signature.asc
Description: This is a digitally signed message part
Current thread:
- Problems logging to syslog and mysql simultaneously dlpassport (Jun 19)
- RE: Problems logging to syslog and mysql simultaneously Michael Steele (Jun 19)
- <Possible follow-ups>
- RE: Problems logging to syslog and mysql simultaneously Michael Steele (Jun 19)
- RE: Problems logging to syslog and mysql simultaneously dlpassport (Jun 19)
- RE: Problems logging to syslog and mysql simultaneously Michael Steele (Jun 19)
- RE: Problems logging to syslog and mysql simultaneously Michael Steele (Jun 19)
- RE: Problems logging to syslog and mysql simultaneously Don (Jun 19)
- RE: Problems logging to syslog and mysql simultaneously Michael Steele (Jun 19)
- RE: Problems logging to syslog and mysql simultaneously Frank Knobbe (Jun 21)
- RE: Problems logging to syslog and mysqlsimultaneously Michael Steele (Jun 21)
- RE: Problems logging to syslog and mysqlsimultaneously Don (Jun 22)
- RE: Problems logging to syslog and mysql simultaneously Don (Jun 19)
