简体   繁体   English

如何将 Azure Kubernetes 日志导出到存储帐户或从应用程序洞察力查看旧 pod 日志?

[英]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.

相关问题 如何将备份日志(1 年保留日志)从日志分析工作区移动到 azure 存储帐户 - How to move backup logs (1 year retention logs) from log analytics workspace to azure storage account Azure 存储帐户 - 如何从其他存储帐户诊断删除日志中识别生命周期管理删除操作日志 - Azure storage account - How to identify lifecycle management delete operation logs from other storage account diagnostic delete logs 如何自动上传AKS日志到Azure存储账户 - How to automate uploading AKS logs to Azure storage account 如何通过代码从 Azure 应用程序洞察中获取事务日志? - How to get transactional logs from Azure application insights via code? Azure 见解请求日志 - Azure Insights Request logs Azure 应用程序洞察日志 - Azure Application Insights logs Azure 存储帐户 SFTP 服务的日志? - Logs for Azure Storage account SFTP service? 存储在 Azure Sentinel 监控的存储帐户中的日志 - Logs stored in storage account monitored by Azure Sentinel ILogger如何记录到Azure Application Insights? - How does ILogger logs to Azure Application Insights? Auth0 错误日志导出到 Azure Application Insights - Auth0 error logs export to Azure Application Insights
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM