The following Lua scripts are the examples are from my MySQL Proxy @ OSCON 08 presentation.
Requires MySQL Proxy Logging Module.
What is released is the Version for MySQL 5.0. A generic version for all MySQL versions is not yet released.
This script is part of the standard MySQL Proxy examples.
Additional Lua scripts from MySQL forge are available here.