收集在App Service上运行的自定义Docker linux映像的HTTP日志 [英] Gather HTTP Logs for custom Docker linux image running on App Service

查看:119
本文介绍了收集在App Service上运行的自定义Docker linux映像的HTTP日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

推荐答案

谢谢您提出的问题Pierre.在不知道您使用的确切堆栈/框架的情况下,我们确实为您提供一些基本建议.

Thank you for your question Pierre. Without knowing the exact stack/framework you are using, we do have some basic recommendations for you.

如您所见,Linux Web Apps仍然是新的,我们正在研究功能奇偶校验.这意味着默认情况下,当前支持Web服务器日志或Application Insights支持之类的项目.

As you discovered, Linux Web Apps is still new and we are working on feature parity. This means items like web server logs or Application Insights support are supported by default at this time.

我们的建议是为您的Web服务器启用http日志记录,然后将其符号链接到/home/Logfiles.然后,您可以通过KUDU/FTP访问文件.确保您已将

Our suggestion would be to enable http logging for your web server and then symlink it to /home/Logfiles. You could then access the files through KUDU/FTP. Make sure you have WEBSITES_ENABLE_APP_SERVICE_STORAGE as an application setting for your app, otherwise the files will be dumped into the container.

来源:

Source: https://github.com/Azure-App-Service/php/blob/master/7.2.11-apache/DockerfileLastly, we would suggest you incorporate AppInsights SDK into your code. This might take some time but ultimately would provide you with the level of detail you are looking for.

我们希望这能使您朝正确的方向前进.

We hope this gets you going in the right direction.


这篇关于收集在App Service上运行的自定义Docker linux映像的HTTP日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆