Setup data used by Azure Log Analytics with Azure Fucntions

╄→尐↘猪︶ㄣ 提交于 2019-12-13 03:18:01

问题


I have questions on setting up data used Azure Log Analytics for Azure Functions.

I cannot see options related to setting up Log Analytics or see information about it within Azure Functions.

But I can open Log Analytics where I can enter query to return data.

I created a Log Analytics Workspace, but am not sure if it is useful for Azure Functions with Log Analytics.

Questions

1 What data is Log Analytics based on by default?

2 Do I need to specify or turn on the logging data Log Analytics is based on?

Put it simply, how to setup for Log Analytics with Azure Functions.


回答1:


Microsoft recommends Application Insights for monitoring functions.

But if you persist using Log analytics, you can follow the steps below:

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.

3.In the new page, fill in the necessary field.



来源:https://stackoverflow.com/questions/55187593/setup-data-used-by-azure-log-analytics-with-azure-fucntions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!