Azure功能收集Linux应用的网络跟踪
我该怎么办?
tl; dr:当“收集网络跟踪”设施不可用时, TCP连接重置。要调试问题,我想捕获网络流量。
我已经看过在堆栈溢出上的另一个问题 提出同一问题。在这种情况下,接受的答案将是理想的(即诊断和解决问题 - >诊断工具 - >收集网络跟踪 - >选择持续时间来收集网络跟踪,然后单击“收集网络跟踪”。)。
但是,在我的情况下,我无法使用设施:
当数据包捕获设施不是一个选项时,我该怎么做才能捕获数据包?例如,我可以在其中运行TCPDUMP的某些上下文吗?
TL;DR: What can I do to capture packets when the "Collect Network Trace" facility is not available?
I have an Azure Function App running on a linux app service plan, which is seeing some issues with TCP connection resets. To debug the issue I would like to capture network traffic.
I have seen another question on stack overflow which asks this same question. In that case the accepted answer would be ideal (i.e. Diagnose and solve problems --> Diagnostic Tools --> Collect Network Trace --> Choose duration to collect the Network Trace and then click on "Collect Network Trace".)
However, in my case that facility is not available to me:
What can I do to capture packets when the packet capture facility is not an option? Is there some context in which I could run tcpdump, for example?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
似乎该功能不适用于Linux或任何容器,如门户网站
afaik,捕获数据时,捕获“收集网络”跟踪“设施不可用,我们可以使用自动 - 封装,因为在此
博客|通过Azure App Service在AutoHealing上收集网络跟踪
古普塔 。另外,您可以参考此 Microsoft文档 以获取更多信息。
It seems this feature is not available for linux or any container yet as shown in the portal
AFAIK, To capture packets when the "Collect Network Trace" facility is not available, We can use Auto-Healing as steps are provided in this
Blog|Collect Network Trace Via Autohealing on Azure App Service
by @Punnet Gupta.Alternatively you can refer this MICRSOFT DOCUMENTATION for more information.
我能找到的最好的解决方案是使用Azure Portal中的Web SSH Shell安装和运行
tcpdump
。[开发工具] - > [SSH] - > [去]
远非理想,但至少是东西!
The best solution I could find is to install and run
tcpdump
using the Web SSH shell in the Azure portal.[Development Tools] -> [SSH] -> [Go]
Far from ideal, but at least it's something!