BlakeB9
BlakeB9

Reputation: 647

How can I access my Azure Functions' logs?

The logs in my log stream associated with my Azure Function App have changed and I believe the logs are going somewhere else where I'm not sure exactly how to access them. Here's a snapshot of the new messages I'm receiving:

enter image description here

Would anyone know why my logs changed to be like this and how/where I might be able to access my logs from my running function (seems to running fine)?

Upvotes: 17

Views: 56648

Answers (2)

Andrew Wiebe
Andrew Wiebe

Reputation: 221

It looks to me like Microsoft has since disabled log streaming on function apps as shown below.

enter image description here

The only way I have been able to see live logs is a log tail on the Azure CLI as below.

az webapp log tail --resource-group $RESOURCEGROUP --name $FUNCTIONNAME

Upvotes: 11

anon
anon

Reputation:

While running the Azure Function, you can see the File System Logs in the Logs Console of the Test/Run Page or Log Stream under Monitoring in the left index menu of the Function App.

AzF-FileSystemLogsRepro

File System Logs <- Log Stream <- Monitoring (Left Index Menu) of the Function App:

LogStreamMenu

All these File System Logs you can see in the Storage Account associated with that Azure Function App. Storage Account > File Shares (under Data Storage) > Your Function App > LogFiles > Application > Functions > Host

FileSystemLogFilesinHost

In the path of Storage Account > File Shares (under Data Storage) > Your Function App > LogFiles > Application > Functions > Function > Your Function Name > You can see the console result (Application Logs - Execution results/failed result/error data) of the function.

AppLogsinFunction

Same Files/Logs you can see in Kudu Explorer along with the traces (but it gives minimum information from your requests and response logs) as shown in the first Gif Image.

Upvotes: 26

Related Questions