Created
April 13, 2015 11:42
-
-
Save grigorescu/f759843fafd8758a6b70 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@load base/utils/site | |
event bro_init() | |
{ | |
# First remove the default filter. | |
Log::remove_default_filter(HTTP::LOG); | |
# Add the filter to direct logs to the appropriate file name. | |
Log::add_filter(HTTP::LOG, [$name = "http-directions", | |
$path_func(id: Log::ID, path: string, rec: HTTP::Info) = { | |
return (Site::is_local_addr(rec$id$orig_h) ? "http_outbound" : "http_inbound"); | |
}]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment