[Bro-Dev] Multiple logs in one SQLite database
johanna at icir.org
Wed Nov 4 15:43:20 PST 2015
this is a known bug at the moment - tracked in
At the moment there is no workaround to this, besides writing to
separate sqlite database files -- sorry.
On 5 Nov 2015, at 7:03, Jakub S. Paulovic wrote:
> I am trying to setup Bro to log all the events to a SQLite database.
> In my
> local.bro file, I have added an event bro_init() with filters
> the writer to be WRITER_SQLITE like this:
> local filter_conn: Log::Filter =
> $config=table(["tablename"] = "conn"),
> Log::add_filter(Conn::LOG, filter_conn);
> local filter_notice: Log::Filter =
> $config=table(["tablename"] = "notice"),
> Log::add_filter(Notice::LOG, filter_notice);
> ... + other filters for http, dhcp and weird set accordingly.
> I want the logs to be written to separate tables in one SQLite
> However, when I run bro with this configuration, I almost immediately
> SQLite errors:
> error: /root/bakalarka/capture/bro/sql/log/Log::WRITER_SQLITE: SQLite
> failed: database is locked
> error: /root/bakalarka/capture/bro/sql/log/Log::WRITER_SQLITE:
> After that, nothing else is written to affected table. Please can You
> suggest me what should I do to achieve logging to one database with
> multiple tables?
> bro-dev mailing list
> bro-dev at bro.org
More information about the bro-dev