mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
17 lines
No EOL
352 B
Text
17 lines
No EOL
352 B
Text
##! Extract and include the headers used for each request in the log.
|
|
|
|
@load http/base
|
|
|
|
module HTTP;
|
|
|
|
redef record State += {
|
|
headers: vector of string &log &default=vector("");
|
|
};
|
|
|
|
event http_header(c: connection, is_orig: bool, name: string, value: string) &priority=4
|
|
{
|
|
if ( ! is_orig )
|
|
return;
|
|
|
|
c$http$headers[|c$http$headers|+1] = name;
|
|
} |