Azure功能收集Linux应用的网络跟踪

发布于 2025-01-24 12:08:29 字数 611 浏览 2 评论 0原文

我该怎么办?

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:

Azure dashboard showing limited diagnostic tools available

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

梦途 2025-01-31 12:08:29

似乎该功能不适用于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

enter image description here

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.

爱情眠于流年 2025-01-31 12:08:29

我能找到的最好的解决方案是使用Azure Portal中的Web SSH Shell安装和运行tcpdump

[开发工具] - > [SSH] - > [去]

apt-get update
apt-get -y install tcpdump
tcpdump --version

远非理想,但至少是东西!

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]

apt-get update
apt-get -y install tcpdump
tcpdump --version

Far from ideal, but at least it's something!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文