This is a discussion on mysql calling ulogd, come in ulogd! within the Gentoo Linux Support forums, part of the Unix Operating Systems category; --> Hello. Would someone please tell me how to make ulogd feed data into a mysql database table? I used ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hello. Would someone please tell me how to make ulogd feed data into a mysql database table? I used the file 'mysql.table.ipaddr-as-string' that came with the ulogd package to create the database. I changed the name of the database to 'ulogdatabase' and the name of the table to 'ulogtable'. Afaict, mysql "sees" the table just fine: mysql> show databases; +--------------+ | Database | +--------------+ | menagerie | | mysql | | test | | ulogdatabase | +--------------+ 4 rows in set (0.03 sec) mysql> use ulogdatabase Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> show tables; +------------------------+ | Tables_in_ulogdatabase | +------------------------+ | ulogtable | +------------------------+ 1 row in set (0.00 sec) mysql> describe ulogtable; [..] | | pwsniff_user | varchar(30) | YES | | NULL | | | pwsniff_pass | varchar(30) | YES | | NULL | | | ahesp_spi | int(10) unsigned | YES | | NULL | | +---------------+----------------------+------+-----+---------+----------------+ 42 rows in set (0.00 sec) However, mysql> select * from ulogtable; Empty set (0.03 sec) I have added iptables -A FORWARD -j ULOG --ulog-nlgroup 32 --prefix foo to /etc/ppp/ip-up.local and in /etc/ulogd.conf I have put # # ulogd_MYSQL.so: optional logging into a MySQL database # # database information mysqldb ulogdatabase mysqltable ulogtable mysqluser mysql mysqlpass mysqlhost localhost # load the plugin (remove the '#' if you want to enable it) plugin /usr/lib/ulogd/ulogd_MYSQL.so What might be a necessary and sufficient sequence of steps that would persuade ulogd to feed data into my ulogdatabase? In particular, 1. How can I tell if ulogd even knows that mysql is running? 2. How can I tell if ulogd knows about my ulogdatabase and ulogtable? Thanks. -- |