CHANGE: Replace req_id with query and fragment fields
- Remove req_id field (r->log_id) from JSON output - Add query field (r->parsed_uri.query) - query string without '?' - Add fragment field (r->parsed_uri.fragment) - fragment without '#' - Update architecture.yml documentation - Bump version to 1.0.9 Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
@ -101,12 +101,6 @@ module:
|
||||
Note: apr_time_now() returns microseconds with microsecond precision.
|
||||
The nanosecond representation is for API compatibility only.
|
||||
example: 1708948770000000000
|
||||
- name: req_id
|
||||
type: string
|
||||
description: >
|
||||
Unique request identifier generated by Apache 2.4 (r->log_id).
|
||||
Useful for cross-referencing this log with standard access and error logs.
|
||||
example: "Yj2x-abcd-1234"
|
||||
- name: scheme
|
||||
type: string
|
||||
description: Connection scheme evaluated via ap_http_scheme(r).
|
||||
@ -136,12 +130,19 @@ module:
|
||||
type: string
|
||||
description: Cleaned and normalized path (r->parsed_uri.path).
|
||||
example: "/api/users"
|
||||
- name: args
|
||||
- name: query
|
||||
type: string
|
||||
description: >
|
||||
Query string parameters from the URL (r->args).
|
||||
Allows detection of payloads like SQLi or XSS passed in GET requests.
|
||||
Query string component from the parsed URI (r->parsed_uri.query).
|
||||
Does not include the leading '?'. Allows detection of payloads like
|
||||
SQLi or XSS passed in GET requests.
|
||||
example: "id=1%20UNION%20SELECT"
|
||||
- name: fragment
|
||||
type: string
|
||||
description: >
|
||||
Fragment component from the parsed URI (r->parsed_uri.fragment).
|
||||
Does not include the leading '#'.
|
||||
example: "section1"
|
||||
- name: host
|
||||
type: string
|
||||
example: "example.com"
|
||||
@ -173,7 +174,7 @@ module:
|
||||
header_X-Request-Id: "abcd-1234"
|
||||
header_User-Agent: "curl/7.70.0"
|
||||
example_full: |
|
||||
{"time":"2026-02-26T11:59:30Z","timestamp":1708948770000000000,"req_id":"Yj2x-abcd-1234","scheme":"https","src_ip":"192.0.2.10","src_port":45678,"dst_ip":"198.51.100.5","dst_port":443,"method":"GET","unparsed_uri":"//api/users?id=1","path":"/api/users","args":"id=1","host":"example.com","http_version":"HTTP/1.1","keepalives":0,"content_length":0,"header_X-Request-Id":"abcd-1234","header_User-Agent":"curl/7.70.0"}
|
||||
{"time":"2026-02-26T11:59:30Z","timestamp":1708948770000000000,"scheme":"https","src_ip":"192.0.2.10","src_port":45678,"dst_ip":"198.51.100.5","dst_port":443,"method":"GET","unparsed_uri":"//api/users?id=1#section","path":"/api/users","query":"id=1","fragment":"section","host":"example.com","http_version":"HTTP/1.1","keepalives":0,"content_length":0,"header_X-Request-Id":"abcd-1234","header_User-Agent":"curl/7.70.0"}
|
||||
|
||||
configuration:
|
||||
scope: global
|
||||
|
||||
Reference in New Issue
Block a user