Suraj Nellikar (snellika)
2009-Jun-16 01:26 UTC
[netflow-tools] flowinsert.pl tool gives an error
Hi, I am trying to store the binary flows from logfile into a sqlite DB. When I run "./flowinsert.pl ../logfile" command, it gives the following error:- DBD::SQLite::db do failed: file is encrypted or is not a database at ./flowinsert.pl If I am right, we have to pass the logfile (which has the flows in binary format) into flowinsert.pl and it will store it in the DB, right? Could you let me know why there is this error? Thanks, Suraj.N -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mindrot.org/pipermail/netflow-tools/attachments/20090615/562f2257/attachment.html>
On Mon, 15 Jun 2009, Suraj Nellikar (snellika) wrote:> > Hi, > > I am trying to store the binary flows from logfile into a sqlite DB. When I > run ?./flowinsert.pl ../logfile? command, it gives the following error:- > > DBD::SQLite::db do failed: file is encrypted or is not a database at > ./flowinsert.pl > > If I am right, we have to pass the logfile (which has the flows in binary > format) into flowinsert.pl and it will store it in the DB, right? > > Could you let me know why there is this error?It has been some time since I used flowinsert.pl, but I expect the error indicates that you need to give the tool a pre-initialised sqlite database. Use the "flows.sql" schema to prepare the SQLite database. -d