azure-diagnostics

Logging from ASP.NET 5 application hosted as Azure Web App

感情迁移 提交于 2021-02-17 15:14:18
问题 I have an ASP.NET 5 Web API that I host in Azure as a Web App. I want to log messages from my code using Azure Diagnostics. There are multiple article including Azure docs that suggest that it should be as easy as System.Diagnostics.Trace.WriteLine once enabled. The logs should show up under LogsFiles/Application and in log stream in Azure. I enabled application logging for the web app: But the following calls produces no logs: System.Diagnostics.Trace.TraceError("TEST"); System.Diagnostics

Azure Diagnostics - WADLogs Table not created

≯℡__Kan透↙ 提交于 2020-01-14 18:54:33
问题 I am trying to log the information whenever user perform some operations in a WebRole in cloud environment. In emulator it will write the info in output window, but in azue portal I cant see the info anywhere. I have enabled the azure diagnostics and provided the azure storage credentials, but the azure WADLogs table not getting created. This how I write the log "Trace.TraceInformation("Policy started");". Also used TraceSource to write the info to the log,but no luck. Note: Iam using Azure

DiagnosticMonitor in Azure Web Site

放肆的年华 提交于 2020-01-14 09:56:28
问题 Can you use the Azure DiagnosticMonitor in an Azure Web Site (not a web role) ? Or does it need a compute role? 回答1: No, You can't use Windows Azure Diagnostics (DiagnosticsMonitor) in an Azure Website. You would need to use a compute role for that. 回答2: No, Azure DiagnosticsMonitor is only for Web/Worker Roles. Diagnostic in Azure WebSite is common as for any web application. As Azure WebSites use persistent storage, you can safely write a log file (having in mind you are using multi

Why aren't my IIS Logs being copied for my Azure web role?

流过昼夜 提交于 2020-01-01 19:54:29
问题 This is a follow up on this question. I used Cerebrata Diagnostics Manager Remote Diagnostics to try to turn on IIS logs. I hadn't deployed with it on. It seemed to work and a few files were copied. Then it never seemed to work again. I tweaked settings again. I tried deleting the iis related blob and table storage entries to see if that would get it to start over. Here is what the config looks like in the wad-control-container that shows that it seemed to be updated based on Cerebrata tool.

Monitor free disk space on Azure VM

让人想犯罪 __ 提交于 2020-01-01 08:34:26
问题 Is there some way how to monitor free disk space from the Azure Portal? I know that there are all kinds of diagnostics for I/O, memory, network, CPU, .NET, SQL, ASP.NET, IIS, etc. But is there some way to see how much free space there's on a disk attached to the VM? All I found was this third-party solution: http://cloudmonix.com/blog/how-to-monitor-free-disk-space-on-azure-vms/ But there should be some way how to see a basic metric like disk space without needing third-party SW, right? 回答1:

Querying Azure APIM Diagnostic Logs

我是研究僧i 提交于 2019-12-25 00:13:47
问题 I've enabled diagnostic logs for APIM which are being sent to log-analytics. Scenario All incoming requests to server have RequestTracking_Id header. All backend services use RequestTracking_Id header from the request in logs to track the request. But from in APIM logs, I'm not able to pull this header to query upon. Is there any way it is possible to have header information of incoming requests in APIM diagnostic logs? Query: AzureDiagnostics | where Type contains "Azure" and Resource

Can I use AzureTableTraceListener or AzureBlobTraceListener on a VM?

随声附和 提交于 2019-12-24 07:48:20
问题 I have web application installed on a VM in Azure (IAAS). Can I use one of the Azure Diagnostics listeners, such as one of the following AzureDriveTraceListener AzureTableTraceListener AzureBlobTraceListener or any other listener that will write to Azure Table storage or any other storage in Azure, that I can access using Azure Portal? How I can configure the connection strings? 回答1: After decompiled the Microsoft.WindowsAzure.WebSites.Diagnostics, I find we couldn't directly setting the

TraceSource.TraceEvent() fails logging when Exception message contains non-printable characters

﹥>﹥吖頭↗ 提交于 2019-12-23 18:05:52
问题 I have a call to TraceSource.TraceEvent() that is sometimes not writing to the Azure Diagnostics logs. public class WorkerRole : RoleEntryPoint { private TraceSource trace = new TraceSource( "ImportService", SourceLevels.Information); public override void Run() { ... try { ... } catch (Exception ex) { bool hasMsg = !string.IsNullOrEmpty(ex.Message); trace.TraceEvent(TraceEventType.Error, 0, "ex has message: " + hasMsg.ToString()); // this gets logged trace.TraceEvent(TraceEventType.Error, 0,

Trying to publish using Azure SDK 2.5 results in a null-ref (Object reference not set to an instance of an object) [closed]

巧了我就是萌 提交于 2019-12-23 14:54:59
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 4 years ago . We upgraded our azure deployment project from SDK 2.4 to SDK 2.5 . The project has two worker roles. Publishing the 2.4 project to a cloud service used to work fine but after upgrading to 2.4 we see publish failing with the following output in the Microsoft Azure Activity Log Window: 4:44:19 PM -

Trying to publish using Azure SDK 2.5 results in a null-ref (Object reference not set to an instance of an object) [closed]

爱⌒轻易说出口 提交于 2019-12-23 14:53:12
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 4 years ago . We upgraded our azure deployment project from SDK 2.4 to SDK 2.5 . The project has two worker roles. Publishing the 2.4 project to a cloud service used to work fine but after upgrading to 2.4 we see publish failing with the following output in the Microsoft Azure Activity Log Window: 4:44:19 PM -