And it seem that in frameworks/logging/man.bro. Everytime it create stream.
function add_default_filter(id: ID) : bool
{
return add_filter(id, [$name="default"]);
}
this line auto create a Log::WRITER_ASCII to stream.
I am looking for a scripts-method to disable ascii log and enable
other writer. ( don't want change any c++ file in bro)
Does I need comment this line. If in this way every time I install
new bro, I should change it .
The reason why you are seeing the packet_filter.log is
because it gets created before you remove its default filter.
To prevent the log file from being created, try removing the
"&priority=-5" on your bro_init event handler.
The reason why you are seeing those other files is because they
are not created by the logging framework (e.g., stdout.log/stderr.log
are created by broctl).