diff --git a/userspace/falco/app_actions/init_falco_engine.cpp b/userspace/falco/app_actions/init_falco_engine.cpp index 3eebe79d6b5..8b1b8c81008 100644 --- a/userspace/falco/app_actions/init_falco_engine.cpp +++ b/userspace/falco/app_actions/init_falco_engine.cpp @@ -29,11 +29,21 @@ void application::configure_output_format() output_format = "container=%container.name (id=%container.id)"; replace_container_info = true; } + else if(m_options.print_additional == "cg" || m_options.print_additional == "container-gvisor") + { + output_format = "container=%container.name (id=%container.id) vpid=%proc.vpid vtid=%thread.vtid"; + replace_container_info = true; + } else if(m_options.print_additional == "k" || m_options.print_additional == "kubernetes") { output_format = "k8s.ns=%k8s.ns.name k8s.pod=%k8s.pod.name container=%container.id"; replace_container_info = true; } + else if(m_options.print_additional == "kg" || m_options.print_additional == "kubernetes-gvisor") + { + output_format = "k8s.ns=%k8s.ns.name k8s.pod=%k8s.pod.name container=%container.id vpid=%proc.vpid vtid=%thread.vtid"; + replace_container_info = true; + } else if(m_options.print_additional == "m" || m_options.print_additional == "mesos") { output_format = "task=%mesos.task.name container=%container.id"; @@ -44,11 +54,6 @@ void application::configure_output_format() output_format = m_options.print_additional; replace_container_info = false; } - else if(m_options.gvisor_config != "") - { - output_format = "container=%container.name (id=%container.id) vpid=%proc.vpid vtid=%thread.vtid"; - replace_container_info = true; - } if(!output_format.empty()) {