diff --git a/src/plugin/kubearmor.go b/src/plugin/kubearmor.go index 3b3aa3ac..7999831b 100644 --- a/src/plugin/kubearmor.go +++ b/src/plugin/kubearmor.go @@ -293,7 +293,7 @@ func ConvertKubeArmorLogToKnoxSystemLog(relayLog *pb.Log) (types.KnoxSystemLog, knoxSystemLog.PodName = types.PolicyDiscoveryVMPodName } - if relayLog.Type == "ContainerLog" { + if relayLog.Type == "ContainerLog" && relayLog.NamespaceName == types.PolicyDiscoveryContainerNamespace { knoxSystemLog.ContainerName = relayLog.ContainerName knoxSystemLog.Namespace = types.PolicyDiscoveryContainerNamespace knoxSystemLog.PodName = types.PolicyDiscoveryContainerPodName