Skip to content

Commit 357a92b

Browse files
authored
Merge pull request #79084 from winthrop28/patch-10
updating access log page for v2 differences
2 parents 4b7b184 + 5914613 commit 357a92b

File tree

1 file changed

+52
-1
lines changed

1 file changed

+52
-1
lines changed

articles/application-gateway/application-gateway-diagnostics.md

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,47 @@ Azure generates the activity log by default. The logs are preserved for 90 days
150150
151151
### Access log
152152
153-
The access log is generated only if you've enabled it on each Application Gateway instance, as detailed in the preceding steps. The data is stored in the storage account that you specified when you enabled the logging. Each access of Application Gateway is logged in JSON format, as shown in the following example:
153+
The access log is generated only if you've enabled it on each Application Gateway instance, as detailed in the preceding steps. The data is stored in the storage account that you specified when you enabled the logging. Each access of Application Gateway is logged in JSON format, as shown in the following example for v1:
154154
155+
|Value |Description |
156+
|---------|---------|
157+
|instanceId | Application Gateway instance that served the request. |
158+
|clientIP | Originating IP for the request. |
159+
|clientPort | Originating port for the request. |
160+
|httpMethod | HTTP method used by the request. |
161+
|requestUri | URI of the received request. |
162+
|RequestQuery | **Server-Routed**: Back-end pool instance that was sent the request.</br>**X-AzureApplicationGateway-LOG-ID**: Correlation ID used for the request. It can be used to troubleshoot traffic issues on the back-end servers. </br>**SERVER-STATUS**: HTTP response code that Application Gateway received from the back end. |
163+
|UserAgent | User agent from the HTTP request header. |
164+
|httpStatus | HTTP status code returned to the client from Application Gateway. |
165+
|httpVersion | HTTP version of the request. |
166+
|receivedBytes | Size of packet received, in bytes. |
167+
|sentBytes| Size of packet sent, in bytes.|
168+
|timeTaken| Length of time (in milliseconds) that it takes for a request to be processed and its response to be sent. This is calculated as the interval from the time when Application Gateway receives the first byte of an HTTP request to the time when the response send operation finishes. It's important to note that the Time-Taken field usually includes the time that the request and response packets are traveling over the network. |
169+
|sslEnabled| Whether communication to the back-end pools used SSL. Valid values are on and off.|
170+
```json
171+
{
172+
"resourceId": "/SUBSCRIPTIONS/{subscriptionId}/RESOURCEGROUPS/PEERINGTEST/PROVIDERS/MICROSOFT.NETWORK/APPLICATIONGATEWAYS/{applicationGatewayName}",
173+
"operationName": "ApplicationGatewayAccess",
174+
"time": "2017-04-26T19:27:38Z",
175+
"category": "ApplicationGatewayAccessLog",
176+
"properties": {
177+
"instanceId": "ApplicationGatewayRole_IN_0",
178+
"clientIP": "191.96.249.97",
179+
"clientPort": 46886,
180+
"httpMethod": "GET",
181+
"requestUri": "/phpmyadmin/scripts/setup.php",
182+
"requestQuery": "X-AzureApplicationGateway-CACHE-HIT=0&SERVER-ROUTED=10.4.0.4&X-AzureApplicationGateway-LOG-ID=874f1f0f-6807-41c9-b7bc-f3cfa74aa0b1&SERVER-STATUS=404",
183+
"userAgent": "-",
184+
"httpStatus": 404,
185+
"httpVersion": "HTTP/1.0",
186+
"receivedBytes": 65,
187+
"sentBytes": 553,
188+
"timeTaken": 205,
189+
"sslEnabled": "off"
190+
}
191+
}
192+
```
193+
For Application Gateway and WAF v2, the logs show a little more information:
155194

156195
|Value |Description |
157196
|---------|---------|
@@ -168,6 +207,12 @@ The access log is generated only if you've enabled it on each Application Gatewa
168207
|sentBytes| Size of packet sent, in bytes.|
169208
|timeTaken| Length of time (in milliseconds) that it takes for a request to be processed and its response to be sent. This is calculated as the interval from the time when Application Gateway receives the first byte of an HTTP request to the time when the response send operation finishes. It's important to note that the Time-Taken field usually includes the time that the request and response packets are traveling over the network. |
170209
|sslEnabled| Whether communication to the back-end pools used SSL. Valid values are on and off.|
210+
|sslCipher| Cipher suite being used for SSL communication (if SSL is enabled).|
211+
|sslProtocol| SSL protocol being used (if SSL is enabled).|
212+
|serverRouted| The backend server that application gateway routes the request to.|
213+
|serverStatus| HTTP status code of the backend server.|
214+
|serverResponseLatency| Latency of the response from the backend server.|
215+
|host| Address listed in the host header of the request.|
171216
```json
172217
{
173218
"resourceId": "/SUBSCRIPTIONS/{subscriptionId}/RESOURCEGROUPS/PEERINGTEST/PROVIDERS/MICROSOFT.NETWORK/APPLICATIONGATEWAYS/{applicationGatewayName}",
@@ -188,6 +233,12 @@ The access log is generated only if you've enabled it on each Application Gatewa
188233
"sentBytes": 553,
189234
"timeTaken": 205,
190235
"sslEnabled": "off"
236+
"sslCipher": "",
237+
"sslProtocol": "",
238+
"serverRouted": "104.41.114.59:80",
239+
"serverStatus": "200",
240+
"serverResponseLatency": "0.023",
241+
"host": "52.231.230.101"
191242
}
192243
}
193244
```

0 commit comments

Comments
 (0)