microsoft / OMS-docker

Docker image for OMS (Operations Management Suite) Linux agent.
Other
79 stars 135 forks source link

No Results in ContainerLog #442

Closed JamesRoepe closed 1 year ago

JamesRoepe commented 1 year ago

I am trying to use the docker OMS agent to get logs from my on-premises Kubernetes cluster into Azure Log Analytics. The OMS Agent has been successfully installed and I can see information from my nodes in my Log Analytics workspace under the following locations:

Operation Heartbeat Perf ContainerNodeInventory_CL KubePodInventory_CL KubeEvents_CL ContainerProcess_CL AzureNetworkAnalytics_CL

I however do not see anything under ContainerLog in the Azure portal. I have also tried creating a custom log an inputting the log locations but that hasn't worked either.

Some additional information:

I've spent hours looking at documentation and forums trying to figure it out, not sure if this is a bug or something I'm doing wrong.

JamesRoepe commented 1 year ago

I was able to get it figured out. I added the Azure Monitor Containers solution to my log analytics workspace by following this page: https://learn.microsoft.com/en-us/azure/azure-monitor/containers/container-insights-hybrid-setup#enable-monitoring then after a few minutes I was able to see logs in the ContainerLog table.