mysqltail

September 19th, 2006

I’ve hacked together a little PHP script which allows to filter mysql log files for sql statements issued by specific users.

Basic usage:

php mysqltail.php /var/log/mysql.log userToFilter [orOtherUser]

It can also be used to pipe an existing logfile:

cat mysql.log | php mysqltail.php - userToFilter

Download: http://markus.fischer.name/lab/php/mysqltail.php.txt

Entry Filed under: PHP

Leave a Comment

hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

September 2006
M T W T F S S
« Jul   Oct »
 123
45678910
11121314151617
18192021222324
252627282930  

Most Recent Posts