Hi, people!
Thank you, Vivek, you put me to the right way :)
So, some digging in source code gives me idea look to the
ftlib.h, where i found everything what i need.
Later, when I try to get flow-export working with PostgreSQL, I
found several mistakes in functions format5() and fmt_xfields_val().
In format5() was a mistake in pointer name (db_tmp instead of
db_port).
In fmt_xfields_val() some values for SQL request was ?quoted?
with (") symbol, but must be with ('). If in requst use (') MySQL
will work too.
So I made patch for flow-export.c, look in attachment.
Now export to PostgreSQL working :)
And some questions:
Can I hope that this cahnges will be conformed to release?
Are you have Bugzilla, CVS or SVN ? I think that this tools will
make life match better for developers and users :)
Sorry for poor English, studying...
Bye :)
Vivek Ramachandran wrote:
Please check out the function int
fmt_xfields_type(char *buf, u_int64 xfield) in
flow-export.c.
The table structure depends upon what information is
available in the records file. To know this at runtime
you can print out the fields[1024] in the
format5(struct ftio *ftio, struct options *opt)
function.
Hello!
I'm interested in export data to my Postgres
database, in manual
page i found that this posible with option -f 5 -m
"<field list>"
, but no mention about table structure (field names,
field
datatypes).
>>
...skip...
Can anyone explain the requirements to table
structure for flow
exporting?
--
Artem Hodlevskyy
Mail: [EMAIL PROTECTED]
WWW: http://lca.lviv.ua/
Phone: +380677768626
_______________________________________________
Flow-tools mailing list
[EMAIL PROTECTED]
http://mailman.splintered.net/mailman/listinfo/flow-tools