A community member has associated this post with a similar question:
Display custom container insights logs on asp.net website using c#

Only moderators can edit this content.

Display Container insights logs in c#

Pavani Kadambari 1 Reputation point
2022-05-13T11:17:08.217+00:00

I have requirement like i need to display logs for custom query in container logs(Kubernetes service) azure kub for c#

Please help me with any documentation or article. I can see documents on application insights but not on azure logs.

custom query like below

KubePodInventory
| where Namespace contains "monitor"
| join
(
ContainerLog
)
on ContainerID
| project TimeOfCommand, LogEntry, LogEntrySource, PodLabel, ContainerID, Namespace
| where LogEntry contains "keyword"
| order by TimeOfCommand desc

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,796 questions
Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
635 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,853 questions
{count} votes