Search code examples
azureazure-functionsazure-log-analyticsazure-analytics

Error setting up Azure Function within Azure Resource under Log Analytics Workspace


I have error setting up Azure Function within Azure Resource under Log Analytics Workspace.

When only AllMetrics is checked, it works. But whenever FunctionExecutionLogs is checked, error occurs like below:

enter image description here

1.Nav to your log analytics workspace in azure portal.

2.in the left blade, select Workspace Data Sources -> Azure Resources, then click your azure function there.

  1. Check FunctionExecutionLogs and error occurs.

Any idea?

Setup data used by Azure Log Analytics with Azure Fucntions

Update

We would like to understand more on Application InSights and Log Analytics, and use the best tool for us.


Solution

  • 'FunctionExecutionLogs' for azure function/web app in azure log analytics will not be supported any more.

    So application insights is a better choice for monitoring azure function.

    The following is the feedback from MS log analytics team:

    Several months ago, App Service/Functions team on-boarded to Azure Monitor diagnostic logs but they don't actually emit log data.

    Basically there are thousands of diagnostic setting registrations which are no-ops and don't actually do anything.

    Recently in the past few weeks, we've been in discussion with App Service to release this feature in the next few weeks as a private preview feature.

    This unfortunately is a breaking change as only private preview customers can turn on diagnostic logs for App Service. Please note -- There is no actual customer impact as whatever customers turned on previously never worked to begin with.

    To fix the deployment script, we should ask customers to update their template to only turn on metric export and not logs --- this won't have any actual customer impact.

    So, from our Log Analytics side, this is a scenario we are not support from our Log Analytics team which has declared by our Production Group any more.