Unable to import Kubernetes Audit Logs from a Log Analytics Workspace to Prisma Cloud.

Unable to import Kubernetes Audit Logs from a Log Analytics Workspace to Prisma Cloud.

407
Created On 03/14/24 09:15 AM - Last Modified 08/07/25 16:10 PM


Symptom


  • Customer has enabled Kubernetes auditing in Prisma Cloud. They have completed all necessary configurations on both Azure and Prisma.
image.png
  • Customer setup includes a Log Analytics workspace that successfully hosts AKS audit logs, and this workspace has been correctly configured in Prisma under the Kubernetes auditing section.
image.png
  • They also set up a custom rule in Prisma to trigger alerts for "privileged pod creation."
image.png
 
  • However, despite the creation of a privileged pod, no alerts are appearing under the Kubernetes auditing events. 
image.png
$ kubectl apply -f priv-pod.yaml
image.png
 


Environment


  • Prisma Cloud Compute Edition
  • Azure
  • Kubernetes


Cause


This issue can be caused by the following:

  • column log_s doesn't exist in the Log Analytics Workspace
  • Incorrect Destination table set in Azure Diagnostic settings


Resolution


  • Please run the query below in Log Analytics workspace to check if the column log_s exists.
AzureDiagnostics
                    | project ResourceGroup, SubscriptionId, Resource, ResourceType, log_s, Category
                    | where ResourceType == "MANAGEDCLUSTERS" and Category == "kube-audit"
                    | where log_s has "ResponseComplete" and (log_s has "Request" or log_s has "RequestResponse")
  • Expected output in Logs workspace below from the query above:

image.png

  • Destination table should be set as Azure Diagnostics, not Resource specific, as shown on screenshot below.

image.png

 


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA14u0000008XZ4CAM&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail