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
Copy file name to clipboardExpand all lines: content/en/serverless/azure_app_services/azure_app_services_container.md
+12-5
Original file line number
Diff line number
Diff line change
@@ -198,12 +198,17 @@ To set up logging in your application, see [Node.js Log Collection][3]. To set u
198
198
199
199
### Application settings
200
200
201
-
In your **App settings** in Azure, set the following environment variables:
201
+
In your **App settings** in Azure, set the following environment variables on both your main container and the sidecar container. Alternatively, set these variables on your main container and enable the **Allow access to all app settings** option.
202
+
203
+
{{< img src="serverless/azure_app_service/app_settings.png" alt="In Azure, an Environment Variables section. An 'Allow access to all app settings' option is enabled with a checkbox." >}}
202
204
203
205
-`DD_API_KEY`: Your [Datadog API key][3]
204
206
-`DD_SERVICE`: How you want to tag your service. For example, `sidecar-azure`
205
207
-`DD_ENV`: How you want to tag your env. For example, `prod`
206
208
-`DD_SERVERLESS_LOG_PATH`: Where you write your logs. For example, `/home/LogFiles/*.log` or `/home/LogFiles/myapp/*.log`
209
+
-`DD_AAS_INSTANCE_LOGGING_ENABLED`: When `true`, log collection is automatically configured for an additional file path: `/home/LogFiles/*$COMPUTERNAME*.log`
210
+
211
+
<divclass="alert alert-info">If your application has multiple instances, make sure that your application's log filename includes the <code>$COMPUTERNAME</code> variable. This ensures that log tailing does not create duplicated logs from multiple instances reading the same file.</div>
0 commit comments