mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
Include timestamp in default extracted file names.
And add a policy script to extract all files. BIT-1335 #close
This commit is contained in:
parent
6fbceb6a98
commit
0b957cbe75
8 changed files with 40 additions and 14 deletions
|
@ -53,7 +53,8 @@ function set_limit(f: fa_file, args: Files::AnalyzerArgs, n: count): bool
|
|||
function on_add(f: fa_file, args: Files::AnalyzerArgs)
|
||||
{
|
||||
if ( ! args?$extract_filename )
|
||||
args$extract_filename = cat("extract-", f$source, "-", f$id);
|
||||
args$extract_filename = cat("extract-", f$last_active, "-", f$source,
|
||||
"-", f$id);
|
||||
|
||||
f$info$extracted = args$extract_filename;
|
||||
args$extract_filename = build_path_compressed(prefix, args$extract_filename);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue