Friday, March 26, 2010

More on the MySQL Audit Plugin interface

I will write some more on this interface eventually, following up my previous MySQL Audit API post, and will show some ideas and hopefully push some interesting code (I have ideas!). But note that the API so far isn't well documented (only source so far), but there is work underway to fix this by the friendly MySQL docs team.
Already I have realized that Audit events are different than I thought. The source of the event is currentlyt either from inside the parser code or from the general log code. The events I got looked like general log events, so I just imaginged this was the source of what I saw, and I never relaized that there was another possible source, the parser. Actually, when the general log is not on, the parser events is all you get, but as I have shown, this is usually good enough. For the log events to be received, you still have to have the general log on. In practice, this doesn't seem to be much of a difference, but I'll keep an eye on it once the documentation is in place, and if there is a use for having Audit general log events, without having the general log per-se on, then I will create a worklog for that (along the lines of having the general_log variables have 3 values (ON, AUDIT_ONLY and OFF) or something like that.



sergii said...

It's a bug, MYSQL_AUDIT_GENERAL_LOG events should be generated independently from general log being enabled.

Besides, there is no source of events inside the parser code. is not a parser, sql_yacc.yy is.

Karlsson said...

Thanx Sergeii. Regarding the parser, you are right of course that the parser, in terms of sybtax definitions, is in sql_yacc.yy. What contains though, is the entry point for the parser itself, i.e. whenever you call "the parser", you actually call a function in that in turn calls the parser. But then again, this is not where the auditing is called anyway, so you are probably right.


marko said...

There are endless on line vendors that give observation cameras at Wonderful individual reserve funds. Every individual programming gives composed substance upon what and how it watches. The concentrate course instructs all alone how towards produce the straight surroundings for publicizing and showcasing and your self will create a man at whatever time all alone information the prospective employee meet-up spot. Check Cashing

ariyan arifin said...

In any case, be right with the greedy handle, your unprecedented position mass is not by any office the alone mass envolved in your application. Coffer expenses, charges,search costs, statement, opening starting as of late and warrantees affirmation moreover be tended to. then again, thats extension stock all together. Cash Advance San-diego

sojib hossain said...

Customarily most payday change affiliations charge around $20 to $30 each $100 of movement. To ensure that there are no ambiguities, request that your last payday change aggregate is spelled out in dollars and pennies. This will help you with appreciation what you need to pay, when your payday credit is ordinar. auto title loans chicago