Skip to content
This repository was archived by the owner on Nov 16, 2026. It is now read-only.

Latest commit

 

History

History
65 lines (42 loc) · 2.49 KB

AzureMLLogging.md

File metadata and controls

65 lines (42 loc) · 2.49 KB

Azure Machine Learning Logging

This document illustrates logging design for Azure ML.

Where to log What to log (examples) Where from
Local (on demand) Execution (console) logs during running pipeline Python script for each step (if any)
Azure DevOps - Execution (console) logs during building and publishing pipeline Azure ML pipeline build script
Azure ML - Execution (console) logs during running pipeline
- Result of model performance testing
Azure ML pipeline step scripts
Azure App Insights - Additional information to identify the detail of pipeline run
- Result of model performance testing
- Pipeline run duration and status
Azure ML pipeline step scripts
Azure Function *1

*1 We cannot get run duration detail from each step, therefore we use Azure Function to query run duration and status results when each step completed/failed, which is triggered by EventGrid.

Logs pattern code example

[logging.formatter]

    - Default:
        "%(asctime)s - %(name)s - %(levelname)s - %(message)s"

    e.g. 2020-11-30 05:57:14,574 - __main__ - INFO - prune parameter: 0 2

Where to query logs

  • Azure DevOps azureml-logging-01.png
  • Azure ML You can find logs on "Outputs + logs" pane under "Experiments" on Azure ML studio.
  • Azure storage

Azure ML output log automatically store in Azure ML blob storages.

Since logs from Python wrapper are already logged in Azure ML it would be better to log only additional information to Azure App Insights. The difference from logs in Azure ML is to send only required logs by reducing the amount of info.

Send logs to Azure App Insights and query with Kusto

There is a sample demonstrates how to send logs to Azure App Insights by using Function App and query with Kusto. See pipeline monitor sample for more detail.

Create a Dashboard

Dashboard is useful to centralize logs and status easily. See Azure Dashboard document for more detail.