|
| 1 | +--- |
| 2 | +title: Configure diagnostic settings and a workspace |
| 3 | +description: Learn how to configure diagnostic settings and a Log Analytics workspace to monitor Azure Data Factory. |
| 4 | +author: ukchrist |
| 5 | +ms.author: ulrichchrist |
| 6 | +ms.reviewer: jburchel |
| 7 | +ms.service: data-factory |
| 8 | +ms.subservice: monitoring |
| 9 | +ms.topic: conceptual |
| 10 | +ms.date: 07/20/2023 |
| 11 | +--- |
| 12 | + |
| 13 | +# Configure diagnostic settings and a workspace |
| 14 | + |
| 15 | +Create or add diagnostic settings for your data factory. |
| 16 | + |
| 17 | +1. In the Azure portal, navigate to your data factory and select **Diagnostics** on the left navigation pane to see the diagnostics settings. If there are existing settings on the data factory, you see a list of settings already configured. Select **Add diagnostic setting**. |
| 18 | + |
| 19 | + :::image type="content" source="media/data-factory-monitor-oms/add-diagnostic-setting.png" alt-text="Screenshot that shows adding a diagnostic setting if settings exist."::: |
| 20 | + |
| 21 | +1. Give your setting a name, select **Send to Log Analytics**, and then select a workspace from **Log Analytics workspace**. |
| 22 | + |
| 23 | + * In _Azure-Diagnostics_ mode, diagnostic logs flow into the _AzureDiagnostics_ table. |
| 24 | + * In _Resource-Specific_ mode, diagnostic logs from Azure Data Factory flow into the following tables: |
| 25 | + - _ADFActivityRun_ |
| 26 | + - _ADFPipelineRun_ |
| 27 | + - _ADFTriggerRun_ |
| 28 | + - _ADFSSISIntegrationRuntimeLogs_ |
| 29 | + - _ADFSSISPackageEventMessageContext_ |
| 30 | + - _ADFSSISPackageEventMessages_ |
| 31 | + - _ADFSSISPackageExecutableStatistics_ |
| 32 | + - _ADFSSISPackageExecutionComponentPhases_ |
| 33 | + - _ADFSSISPackageExecutionDataStatistics_ |
| 34 | + |
| 35 | + You can select various logs relevant to your workloads to send to Log Analytics tables. For example: |
| 36 | + - If you don't use SQL Server Integration Services (SSIS) at all, you don't need to select any SSIS logs. |
| 37 | + - If you want to log SSIS integration runtime (IR) start, stop, or maintenance operations, select SSIS IR logs. |
| 38 | + - If you invoke SSIS package executions via T-SQL on SQL Server Management Studio, SQL Server Agent, or other designated tools, select SSIS package logs. |
| 39 | + - If you invoke SSIS package executions via Execute SSIS Package activities in Data Factory pipelines, select all logs. |
| 40 | + |
| 41 | + * If you select _AllMetrics_, various Data Factory metrics are made available for you to monitor or raise alerts on. These metrics include the metrics for Data Factory activity, pipeline, and trigger runs, and for SSIS IR operations and SSIS package executions. |
| 42 | + |
| 43 | + :::image type="content" source="media/data-factory-monitor-oms/monitor-oms-image2.png" alt-text="Screenshot that shows naming your settings and selecting a Log Analytics workspace."::: |
| 44 | + |
| 45 | + > [!NOTE] |
| 46 | + > Because an Azure log table can't have more than 500 columns, we *highly recommend* that you select _Resource-Specific mode_. For more information, see [Azure diagnostics logs reference](/azure/azure-monitor/reference/tables/azurediagnostics). |
| 47 | +
|
| 48 | +1. Select **Save**. |
| 49 | + |
| 50 | +After a few moments, the new setting appears in your list of settings for this data factory. Diagnostic logs are streamed to that workspace as soon as new event data is generated. Up to 15 minutes might elapse between when an event is emitted and when it appears in Log Analytics. |
| 51 | + |
| 52 | +## Related content |
| 53 | + |
| 54 | +[Set up diagnostics logs via the Azure Monitor REST API](monitor-logs-rest.md) |
0 commit comments