WAF 3.0 log field changes
Updated at:
Alibaba Cloud plans to adjust and update Simple Log Service (SLS)-related log fields in Web Application Firewall (WAF) 3.0. Review the changes below to determine whether your log queries or parsing pipelines need updating.
New required fields
The following five fields are added to WAF 3.0 logs and are present in every log entry.
| Field | Description |
|---|---|
src_ip | The IP address of the connection to WAF. Without a Layer 7 proxy in front of WAF, this is the client IP address. With a Layer 7 proxy (such as Alibaba Cloud CDN), this is the proxy IP address. |
src_port | The port of the connection to WAF. Without a Layer 7 proxy in front of WAF, this is the client port. With a Layer 7 proxy (such as Alibaba Cloud CDN), this is the proxy port. |
dst_port | The destination port of the request. |
request_uri | The Uniform Resource Identifier (URI) of the request, including both the request path and request parameters. |
start_time | The time the client request was initiated. Unit: seconds. |
New optional fields
The following five fields are changing to optional. They are selected by default — clear any fields that your use case does not require.
| Field | Description |
|---|---|
remote_addr | The IP address of the connection to WAF. Without a Layer 7 proxy in front of WAF, this is the client IP address. With a Layer 7 proxy (such as Alibaba Cloud CDN), this is the proxy IP address. |
remote_port | The port of the connection to WAF. Without a Layer 7 proxy in front of WAF, this is the client port. With a Layer 7 proxy (such as Alibaba Cloud CDN), this is the proxy port. |
server_port | The destination port of the request. |
request_path | The relative path of the request — the part of the URL between the domain name and the question mark (?). Does not include the query string. |
querystring | The query string of the request — the part of the URL after the question mark (?). |
Is this page helpful?