mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00

This is a script-only change that unrolls File::Info records into multiple files.log entries if the same file was seen over different connections by single worker. Consequently, the File::Info record gets the commonly used uid and id fields added. These fields are optional for File::Info - a file may be analyzed without relation to a network connection (e.g by using Input::add_analysis()). The existing tx_hosts, rx_hosts and conn_uids fields of Files::Info are not meaningful after this change and removed by default. Therefore, files.log will have them removed, too. The tx_hosts, rx_hosts and conn_uids fields can be revived by using the policy script frameworks/files/deprecated-txhosts-rxhosts-connuids.zeek included in the distribution. However, with v6.1 this script will be removed.
15 lines
862 B
Text
15 lines
862 B
Text
# @TEST-DOC: The pcap contains 3 connections with range requests for the same file. We expect 3 files.log entries all with the same fuid, but different uids. With the deprecated fields, we expect tx_hosts, rx_hosts and conn_uuids to agree with the uid and id fields.
|
|
# @TEST-EXEC: zeek -b -r $TRACES/http/concurrent-range-requests.pcap %INPUT 2>&1 > out
|
|
# @TEST-EXEC: mv files.log files.log.new
|
|
# @TEST-EXEC: mv out out.new
|
|
# @TEST-EXEC: btest-diff out.new
|
|
# @TEST-EXEC: btest-diff files.log.new
|
|
|
|
# @TEST-EXEC: zeek -b -r $TRACES/http/concurrent-range-requests.pcap %INPUT frameworks/files/deprecated-txhosts-rxhosts-connuids 2>&1 > out
|
|
# @TEST-EXEC: mv files.log files.log.deprecated
|
|
# @TEST-EXEC: mv out out.deprecated
|
|
# @TEST-EXEC: btest-diff out.deprecated
|
|
# @TEST-EXEC: btest-diff files.log.deprecated
|
|
|
|
@load base/frameworks/files
|
|
@load base/protocols/http
|