mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
17 lines
445 B
Text
17 lines
445 B
Text
##! Extracts and logs variables from the requested URI in the default HTTP
|
|
##! logging stream.
|
|
|
|
@load base/protocols/http
|
|
|
|
module HTTP;
|
|
|
|
redef record Info += {
|
|
## Variable names from the URI.
|
|
uri_vars: vector of string &optional &log;
|
|
};
|
|
|
|
event http_request(c: connection, method: string, original_URI: string,
|
|
unescaped_URI: string, version: string) &priority=2
|
|
{
|
|
c$http$uri_vars = extract_keys(original_URI, /&/);
|
|
}
|