Skip to content

Instantly share code, notes, and snippets.

@JustinAzoff
Created May 18, 2016 14:42
Show Gist options
  • Save JustinAzoff/d562f6fb3389d06ec27e75676d136a8c to your computer and use it in GitHub Desktop.
Save JustinAzoff/d562f6fb3389d06ec27e75676d136a8c to your computer and use it in GitHub Desktop.
event bro_init()
{
Log::remove_default_filter(Files::LOG);
Log::add_filter(Files::LOG, [
$name = "files-split",
$path_func(id: Log::ID, path: string, rec: Files::Info) = {
if (rec?$mime_type && rec$mime_type == "application/pkix-cert")
return "files_certs";
return "files";
}
]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment