简体   繁体   English

找不到Azure应用服务诊断日志应用程序日志记录Blob存储URL 404

[英]Azure App Service Diagnostics Logs Application Logging Blob Storage URL Not Found 404

In my Azure App Service, I enabled Diagnostics Logs > Application Logging (Blob) and pointed to a Blob Storage Account. 在我的Azure App Service中,我启用了“诊断日志”>“应用程序日志记录(Blob)”,并指向一个Blob存储帐户。 Like below. 像下面。

在此处输入图片说明

And I also enabled Application Insight logging in the same App Service. 我还在同一App Service中启用了Application Insight日志记录。 But, in the application insight logging, I am seeing some error. 但是,在应用程序洞察日志记录中,我看到了一些错误。 It looks like below. 如下图所示。

在此处输入图片说明

It seems, sometimes writing data from App Service to the Azure Blob Storage failed because it can't find the URL, hence it sends 404. The actual request / command showed in the image is: 似乎有时将数据从App Service写入Azure Blob存储失败,因为它找不到URL,因此发送404。图像中显示的实际请求/命令是:

https://myqalogs.blob.core.windows.net:443/my-qa-api-applogs/my-qa-api/2017/08/18/04/fc0efb-4524.applicationLog.csv?se=2037-08-16T11%3A32%3A01Z&sp=rwdl&sr=c&sv=2015-04-05&sig=QgSajcdke6PSzbqYizwJdCRuK2V37Jk2dA0v49hiBrs%3D&api-version=2014-02-14&comp=blocklist&blocklisttype=Committed https://myqalogs.blob.core.windows.net:443/my-qa-api-applogs/my-qa-api/2017/08/18/04/fc0efb-4524.applicationLog.csv?se=2037- 08-16T11%3A32%3A01Z& SP =&RWDL SR = C&SV = 2015年4月5日&SIG = QgSajcdke6PSzbqYizwJdCRuK2V37Jk2dA0v49hiBrs%3D&API-版本= 2014年2月14日&排版=块列表&blocklisttype =所犯

But, the content is there. 但是,内容在那里。 在此处输入图片说明

I am not sure where to check and how to solve these errors. 我不确定在哪里检查以及如何解决这些错误。 Any help is highly appreciated. 非常感谢您的帮助。

I have also created a test demo on my side. 我还创建了一个测试演示。 I have reproduced this issue. 我已经转载了这个问题。

I guess this is related with how the azure Diagnostics logs works. 我想这与天蓝色的诊断日志的工作方式有关。

If the azure Diagnostics logs wants to log something to the azure blob. 如果天蓝色的诊断日志希望将某些内容记录到天蓝色的blob中。

It will firstly send a get request to get the blob file, then it will send a put request to put the logs to azure blob storage. 它将首先发送获取请求以获取Blob文件,然后将发送放置请求以将日志放入Azure Blob存储中。

You could find the method the azure Diagnostics used is get not put. 您会发现没有使用“天蓝色诊断程序”的方法。

So I think this will not affect your log details information just the azure Diagnostics logs check system. 因此,我认为这不会影响您的日志详细信息,而只会影响Azure诊断日志检查系统。

Like this image: 喜欢这张图片:

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将 Azure 应用服务的 stdout 和 stderr 日志存储到 Azure Blob 存储中 - Store stdout and stderr logs of Azure App Service into Azure Blob Storage Azure Blob 存储从 Azure 应用服务返回 404 - Azure Blob Storage Returns 404 from Azure App Service Azure 应用服务诊断 blob 未记录基于 nlog 的日志 - Azure app service diagnostic blob not logging nlog based logs Azure Diagnostics不会将IIS日志传输到Blob存储 - Azure Diagnostics doesnt transfer IIS logs to blob storage 部署为app服务的node.js的Azure应用程序日志记录(blob) - Azure application logging(blob) for node.js deployed as app service Azure WebApp不将应用程序日志发送到Blob存储 - Azure WebApp Not Sending Application Logs to Blob Storage 打开应用服务日志中的选项后,Azure WebJobs 日志是否应该在日志 Stream 和 Blob 存储中可见? - Should Azure WebJobs logs be visible in Log Stream & Blob Storage after turning on the options in App Service Logs? 从 Azure 应用服务访问 Blob 存储 - Blob storage access from Azure App Service Azure Service Fabric记录到Azure Diagnostics无效 - Azure Service Fabric logging to Azure Diagnostics is not working Azure 应用服务应用服务日志 blob 保留不起作用 - Azure App Service app service logs blob retention not working
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM