[英]How to export Azure Kubernetes logs to Storage account or view old pod logs from Applications insights?
In AKS, how to view a deleted pod logs for tracing purposes?在 AKS 中,如何查看已删除的 pod 日志以进行跟踪? Incase of failed logs too would like to store or export the logs.
万一失败的日志也想存储或导出日志。
I have application insights enabled but only the logs of pods currently running can be viewed from there.我启用了应用程序洞察,但只能从那里查看当前运行的 pod 的日志。
I am looking for something like exporting every pod log to a storage account我正在寻找类似将每个 pod 日志导出到存储帐户的东西
If this current configured Application Insights resource is a workspace-based resource already, you can use diagnostic settings for exporting telemetry.如果此当前配置的 Application Insights 资源已经是基于工作区的资源,则可以使用诊断设置来导出遥测数据。
Select Diagnostic settings > add diagnostic setting
from within your Application Insights resource. Select
Diagnostic settings > add diagnostic setting
。 You can select all tables, or a subset of tables to archive to a storage account, or to stream to an Azure Event Hub as convenient.您可以将 select 所有表或表的子集归档到存储帐户,或将 stream 归档到 Azure 事件中心。
However, if it is a classic Application Insights resource, you can export telemetry by creating a Continuous Export .但是,如果它是经典的 Application Insights 资源,则可以通过创建Continuous Export来导出遥测数据。 However, note that Continuous export has been deprecated and it is recommended to migrate to a workspace-based Application Insights resource to use diagnostic settings.
但是,请注意,连续导出已被弃用,建议迁移到基于工作区的 Application Insights 资源以使用诊断设置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.