Skip to contentSkip to conversation

ulog2-mysql-schema

DISCUSSION Jan Engelhardt 3 participants 3 messages Nov 21, 2011 – Nov 22, 2011 1 message not in the archive netfilter

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Cc-forwarding to nf-dev, and Eric and Pablo, who do ulogd2.

Quoted 25 lines · marty

I use ulog2 to log syslog and packet data to mysql.
I parse the data for web display using cron scripts; mostly php. All work very reliably and I really love ulog2 despite it's beta... (but the latest beta was very broken for me. I use orig beta4.)

The example MySQL schemas with ulog2 are very complex and problematic, plus have errors and no guidance. Not being updated either...

I wrote my own sql to handle logging tcp/udp packets.
My schema is quite simple and works fine for me on Linux-3, so I took the time to add some complete tutorial stuff to that sql file.
Should make it easier to get ulog/mysql working.
I have attached my sql (zipped) to this message, as a donation. Please take a look.
If you think this is useful in the ulog docs dir feel free to push it with any filename you choose.
If you choose not, I won't feel hurt and you need not explain...

Best wishes,

Marty B.

#2 lore raw
Quoted 21 lines · Jan Engelhardt

Cc-forwarding to nf-dev, and Eric and Pablo, who do ulogd2.

Quoted 17 lines · marty

I use ulog2 to log syslog and packet data to mysql.
I parse the data for web display using cron scripts; mostly php. All work very reliably and I really love ulog2 despite it's beta... (but the latest beta was very broken for me. I use orig beta4.)

The example MySQL schemas with ulog2 are very complex and problematic, plus have errors and no guidance. Not being updated either...

I wrote my own sql to handle logging tcp/udp packets.
My schema is quite simple and works fine for me on Linux-3, so I took the time to add some complete tutorial stuff to that sql file.
Should make it easier to get ulog/mysql working.
I have attached my sql (zipped) to this message, as a donation. Please take a look.
If you think this is useful in the ulog docs dir feel free to push it with any filename you choose.
If you choose not, I won't feel hurt and you need not explain...

$ ls *.sql
mysql-ulogd2-flat.sql  pgsql-ulogd2-flat.sql
mysql-ulogd2.sql       pgsql-ulogd2.sql

I think mysql-ulogd2-flat.sql is what you want.

Please, use current ulogd2 git snapshot.

I need to find some spare to release final ulogd 2.0, it's ready for prime time since quite some time, blame me for not having done so before. I'll try to make it before end of this year.

#3 lore raw
In reply to Jan Engelhardt
Quoted 24 lines · Jan Engelhardt

Cc-forwarding to nf-dev, and Eric and Pablo, who do ulogd2.

Quoted 20 lines · marty

I use ulog2 to log syslog and packet data to mysql.
I parse the data for web display using cron scripts; mostly php. All work very reliably and I really love ulog2 despite it's beta... (but the latest beta was very broken for me. I use orig beta4.)

The example MySQL schemas with ulog2 are very complex and problematic, plus have errors and no guidance. Not being updated either...

I wrote my own sql to handle logging tcp/udp packets.
My schema is quite simple and works fine for me on Linux-3, so I took the time to add some complete tutorial stuff to that sql file.
Should make it easier to get ulog/mysql working.
I have attached my sql (zipped) to this message, as a donation. Please take a look.
If you think this is useful in the ulog docs dir feel free to push it with any filename you choose.
If you choose not, I won't feel hurt and you need not explain...

Best wishes,

Hi,

As Pablo said, I think the schema you want is the -flat one (with one table).

Your SQL schema was not attached in the forwarded mail from Jan, can you resend it (to the list, or directly to me if too big) ?

Pierre