You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -44,9 +44,9 @@ Sometimes the session affinity issues might occur when you forget to enable “C
44
44
45
45

46
46
47
-
4.Click **appGatewayBackendHttpSettings** on the right side to check whether you have selected **Enabled** for Cookie based affinity.
47
+
4.Select the HTTP setting, and on the **Add HTTP setting** page, check if **Cookie based affinity** is enabled.
48
48
49
-

49
+

50
50
51
51
52
52
@@ -105,53 +105,24 @@ You can collect additional logs and analyze them to troubleshoot the issues rela
105
105
106
106
To collect the Application Gateway logs, follow the instructions:
107
107
108
-
Enable logging through the Azure portal
108
+
Enable logging using the Azure portal.
109
109
110
-
1. In the [Azure portal](https://portal.azure.com/), find your resource and then click**Diagnostic logs**.
110
+
1. In the [Azure portal](https://portal.azure.com/), find your resource and then select**Diagnostic setting**.
111
111
112
-
For Application Gateway, three logs are available: Access log, Performance log, Firewall log
112
+
For Application Gateway, three logs are available: Access log, Performance log, and Firewall log.
113
113
114
-
2. To start to collect data, click**Turn on diagnostics**.
114
+
2. To start to collect data, select**Add diagnostic setting**.
115
115
116
-

116
+

117
117
118
-
3. The **Diagnostics settings**blade provides the settings for the diagnostic logs. In this example, Log Analytics stores the logs. Click **Configure** under **Log Analytics** to set your workspace. You can also use event hubs and a storage account to save the diagnostic logs.
118
+
3. The **Diagnostic setting**page provides the settings for the diagnostic logs. In this example, Log Analytics stores the logs. You can also use event hubs and a storage account to save the diagnostic logs.
119
119
120
120

121
121
122
-
4. Confirm the settings and then click**Save**.
122
+
4. Confirm the settings and then select**Save**.
123
123
124
-

125
124
126
-
#### View and analyze the Application Gateway access logs
127
125
128
-
1. In the Azure portal under the Application Gateway resource view, select **Diagnostics logs** in the **MONITORING** section .
129
-
130
-

131
-
132
-
2. On the right side, select “**ApplicationGatewayAccessLog**“ in the drop-down list under **Log categories.**
133
-
134
-

135
-
136
-
3. In the Application Gateway Access Log list, click the log you want to analyze and export, and then export the JSON file.
137
-
138
-
4. Convert the JSON file that you exported in step 3 to CSV file and view them in Excel, Power BI, or any other data-visualization tool.
139
-
140
-
5. Check the following data:
141
-
142
-
-**ClientIP**– This is the client IP address from the connecting client.
143
-
-**ClientPort** - This is the source port from the connecting client for the request.
144
-
-**RequestQuery** – This indicates the destination server that the request is received.
145
-
-**Server-Routed**: Back-end pool instance that the request is received.
146
-
-**X-AzureApplicationGateway-LOG-ID**: Correlation ID used for the request. It can be used to troubleshoot traffic issues on the back-end servers. For example: X-AzureApplicationGateway-CACHE-HIT=0&SERVER-ROUTED=10.0.2.4.
147
-
148
-
-**SERVER-STATUS**: HTTP response code that Application Gateway received from the back end.
149
-
150
-

151
-
152
-
If you see two items are coming from the same ClientIP and Client Port, and they are sent to the same back-end server, that means the Application Gateway configured correctly.
153
-
154
-
If you see two items are coming from the same ClientIP and Client Port, and they are sent to the different back-end servers, that means the request is bouncing between backend servers, select “**Application is using cookie-based affinity but requests still bouncing between back-end servers**” at the bottom to troubleshoot it.
155
126
156
127
### Use web debugger to capture and analyze the HTTP or HTTPS traffics
0 commit comments