[Bro] how to append to file?

Seth Hall hall.692 at osu.edu
Wed Oct 29 07:29:27 PDT 2008

On Oct 29, 2008, at 7:49 AM, hossein talebi wrote:

> i have write scripts (inside a policy)
> i have write following line :
> "global result_file = open_log_file("result_file")"
> this led to create a new file with result_file in current directory
> i want to run my policy to multi file  and put output per file in  
> "result_file"
> but while i run my policy are create new file and overwrite to old  
> "result_file"

I'm not sure what you're asking here.

> how to append output to old "result_file" without create new  
> file(overwrite)

You can make appending the default behavior for all of your log files  
by loading the "log-append" script.


Seth Hall
Network Security - Office of the CIO
The Ohio State University
Phone: 614-292-9721

More information about the Bro mailing list