Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

download azure diagnostic logs?

Tags:

Does anyone know how to download the Azure diagnostic logs? From the control panel, it shows me an ftp link for the logs, but when I click it it prompts me for a username/password. Any username/password I try just results in a "530 User Cannot Login" error.

It looks like the same address that Vis Studio does it's publishing to, and that had a '$' before my username. I tried that as well, but no-go.

Just curious how to get the logs when you start having errors pop up in the application, or is there something else I should be doing to prepare my app for going on Azure?

Thanks, Mike

like image 825
Mike Avatar asked Jun 20 '12 03:06

Mike


People also ask

How do I download Azure logs?

On the new Azure Portal there's a new concept of site extensions there you can find an extension called Azure Website Log Browser which makes it extremly easy for you to access your website's logs (viewing and downloading them). You can read more about it here.

How do I collect diagnostic logs?

The Collect diagnostics remote action lets you collect and download Windows device logs without interrupting the user. Only non-user locations and file types can be accessed, so no personal information is collected. The diagnostic collection is stored for 28 days and then deleted.

How do I retrieve log data in Azure?

Use it to edit and run log queries and interactively analyze their results. You can then use those queries to support other features in Azure Monitor, such as log query alerts and workbooks. Access Log Analytics from the Logs option on the Azure Monitor menu or from most other services in the Azure portal.


2 Answers

You would need to use FTP client application to access to files instead of using the Webpage as it is designed to use a client app to display the files.

I have configured FileZilla as below to access my Windows Azure websites to access Diagnostics Logs as well as use the same client application to upload/download site specific files:

enter image description here

In my blog Windows Azure Website: Uploading/Downloading files over FTP and collecting Diagnostics logs, I have described all the steps.

like image 98
AvkashChauhan Avatar answered Dec 05 '22 13:12

AvkashChauhan


As an update as of December 2015 (New Azure Portal) Apparently the FTP Username and Password is not set by your publish settings or anything else that I can find.

The steps to first set up your FTP credentials are to go to your web app on the new portal. Click the settings icon at the top of the "blade". There's like 25-30 different links to settings there. The one we want is under Publishing and then Deployment Credentials.

I thought I had already set these up with my publish profile but those were not working. You should have the opportunity to enter your desired username and password now for FTP and git specifically.

Now go to the blade for Diagnostics (It was right above the publishing section) and you can copy the ftp url. I just copied the first one (ftp not ftps), went to FileZilla and used the ftp url, my new username and password, and port 21 and I was able to see all log files as expected.

This does NOT mess up or affect your publishing credentials in any way that I can see.

like image 23
Shaun314 Avatar answered Dec 05 '22 14:12

Shaun314