mansonitefirefox
mansonitefirefox

Reputation: 177

Viewing web app logs stored in Azure blob storage

I have created a .Net Core 1.1 web app and hosted it in Azure with the logging concepts covered briefly in https://blogs.msdn.microsoft.com/webdev/2016/10/25/announcing-asp-net-core-1-1-preview-1/

I have then setup logs to write to an Azure blob storage which I can see working, however from what I can see, the only way to actually view these logs are by downloading individual files.

Is there a way to see all of these logs in a stream with date filtering etc or how to feed that data into a different Azure application that could provide a usable GUI like Kibana?

Upvotes: 3

Views: 2781

Answers (3)

Phillip Ngan
Phillip Ngan

Reputation: 16106

Microsoft have a desktop application to show the contents of various Azure storage containers. It is called the Azure Storage Explorer

Upvotes: 0

Amor
Amor

Reputation: 8491

Is there a way to see all of these logs in a stream with date filtering etc or how to feed that data into a different Azure application that could provide a usable GUI like Kibana?

The log file is grouped by date. If you want to view the log online, you could install a web site extension named Azure Web Site Logs Browser which could allow us to view all the logs(from blobs service and file system). You can also fork this project from GitHub and apply your own query on logs.

enter image description here

Steps to add Azure Web Site Logs Browser extension.

Azure portal -> Open your Web App -> Choose [Extensions] menu-> Click [Add] link-> Choose the extension you want to add.

enter image description here

Upvotes: 1

Mihir
Mihir

Reputation: 86

If you have enabled 'Application logging' under 'App service -> Diagnostics logs', you will be able to view real-time log information under 'App server -> Log Stream'.

For GUI filtering capabilities, checkout Azure OMS Log Analytics. It can do comprehensive log filtering and analytics.

For application specific details, you can check 'Application Insights'.

Hope that helps, Mihir

Upvotes: 0

Related Questions