|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Subject: Re: [Snort-users] Mysql errors [plus possible fix?]
From: Jason Haar (Jason.Haar
trimble.co.nz)Date: Sun Nov 05 2000 - 21:25:28 CST
- Next message: Jed Pickel: "Re: [Snort-users] Mysql errors [plus possible fix?]"
- Previous message: Jed Pickel: "Re: [Snort-users] Mysql errors [plus possible fix?]"
- In reply to: Jed Pickel: "Re: [Snort-users] Mysql errors [plus possible fix?]"
- Next in thread: Jed Pickel: "Re: [Snort-users] Mysql errors [plus possible fix?]"
- Reply: Jason Haar: "Re: [Snort-users] Mysql errors [plus possible fix?]"
- Reply: Jed Pickel: "Re: [Snort-users] Mysql errors [plus possible fix?]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sun, Nov 05, 2000 at 09:33:14PM -0500, Jed Pickel wrote:
> Interesting. Can you reproduce this error? Has anyone else ever seen
> this one? The only cause I can think of is a fatal error (perhaps
Well it's happening right now :-)
My snort and mysqld daemons aren't restarting/crashing or the like, and what
I'm seeing is the same alert happening several times in one second.
> One of the early versions of this plugin worked like that. The problem
> you run into is concurrency when you have multiple sensors logging to
> the database. You can fix this with locking but taking that route
> turned out to be fairly expensive comparative to the current model.
I would have thought LAST_INSERT_ID() would have taken care of that - those
counters are all thread-based so each thread should be independent of the
others, right?
As in:
Snort1 Snort2
|_______________|
| |
| |
| |
| |
------
MySQL
Snort1 and Snort2 simultaneously insert new event via:
INSERT into event (1,,'xxx','2000-11-06 12:55:23');
INSERT into event (2,,'xxx','2000-11-06 12:55:23');
Snort1 and Snort2 then both do LAST_INSERT_ID() and get returned different
cid's which they then use for the rest of the transaction. Wouldn't that
work? As it is, with different sensors there shouldn't be any locking issues
anyway?
-- CheersJason Haar
Unix/Special Projects, Trimble NZ Phone: +64 3 9635 377 Fax: +64 3 9635 417 _______________________________________________ Snort-users mailing list Snort-users
lists.sourceforge.net http://lists.sourceforge.net/mailman/listinfo/snort-users
- Next message: Jed Pickel: "Re: [Snort-users] Mysql errors [plus possible fix?]"
- Previous message: Jed Pickel: "Re: [Snort-users] Mysql errors [plus possible fix?]"
- In reply to: Jed Pickel: "Re: [Snort-users] Mysql errors [plus possible fix?]"
- Next in thread: Jed Pickel: "Re: [Snort-users] Mysql errors [plus possible fix?]"
- Reply: Jason Haar: "Re: [Snort-users] Mysql errors [plus possible fix?]"
- Reply: Jed Pickel: "Re: [Snort-users] Mysql errors [plus possible fix?]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]