Hello @Akeem Rajifuja,
Thank you for reaching out to the Microsoft Q&A platform.
Your query looks good and should return results for the specified errors in the KubePodInventory table. However, you can also try the following queries to identify errors in logs related to an AKS cluster:
To identify OOMKilled errors in the ContainerLog table:
ContainerLog | where LogEntry contains "OOMKilled"
To identify errors in the StorageFileLogs table:
StorageFileLogs | where LogEntry contains "Error"
To identify Unknown errors in the AzureDiagnostics table:
AzureDiagnostics | where Category == "kube-system" and Message contains "Unknown"
To identify CrashLoopBackOff errors in the KubePodInventory table:
KubePodInventory | where ContainerStatus contains "CrashLoopBackOff"
You can also combine these queries to create a single query that searches across all tables.
For example:
union KubePodInventory, ContainerLog, StorageFileLogs, AzureDiagnostics | where ContainerLastStatus has_any("Error", "Unknown", "OOMKilled", "CrashLoopBackOff", "DeadlineExceeded")
Reference : https://learn.microsoft.com/en-us/azure/aks/monitor-aks-reference
https://learn.microsoft.com/en-us/azure/azure-monitor/containers/container-insights-log-query
https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/azurediagnostics
https://learn.microsoft.com/en-us/azure/storage/files/storage-files-monitoring
https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/storagefilelogs
https://learn.microsoft.com/en-us/azure/azure-monitor/logs/scope
Hope this helps!
If I have answered your query, please click "Accept as answer" as a token of appreciation