mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00

- Log path's are generated in the scripting land now. The default Log stream ID to path string mapping works like this: - Notice::LOG -> "notice" - Notice::POLICY_LOG -> "notice_policy" - TestModule::LOG -> "test_module" - Logging streams updated across all of the shipped scripts to be more user friendly. Instead of the logging stream ID HTTP::HTTP, we now have HTTP::LOG, etc. - The priorities on some bro_init handlers have been adjusted to make the process of applying filters or disabling streams easier for users.
20 lines
837 B
Text
20 lines
837 B
Text
# A basic test of the known-hosts script's logging and asset_tracking options
|
|
|
|
# @TEST-EXEC: bro -r $TRACES/wikipedia.trace %INPUT Known::host_tracking=LOCAL_HOSTS
|
|
# @TEST-EXEC: mv known_hosts.log knownhosts-local.log
|
|
# @TEST-EXEC: btest-diff knownhosts-local.log
|
|
|
|
# @TEST-EXEC: bro -r $TRACES/wikipedia.trace %INPUT Known::host_tracking=REMOTE_HOSTS
|
|
# @TEST-EXEC: mv known_hosts.log knownhosts-remote.log
|
|
# @TEST-EXEC: btest-diff knownhosts-remote.log
|
|
|
|
# @TEST-EXEC: bro -r $TRACES/wikipedia.trace %INPUT Known::host_tracking=ALL_HOSTS
|
|
# @TEST-EXEC: mv known_hosts.log knownhosts-all.log
|
|
# @TEST-EXEC: btest-diff knownhosts-all.log
|
|
|
|
# @TEST-EXEC: bro -r $TRACES/wikipedia.trace %INPUT Known::host_tracking=NO_HOSTS
|
|
# @TEST-EXEC: test '!' -e known_hosts.log
|
|
|
|
@load protocols/conn/known-hosts
|
|
|
|
redef Site::local_nets += {141.142.0.0/16};
|