We will use the ingestion control feature here to exclude these particular logs.
To exclude logs from specific pods, follow these steps:
-
Access the settings section from the left side menu.
-
Navigate to the ingestion control section.
-
You will see two options: select either Docker or Kubernetes based on your environment.
-
Choose Kubernetes, and then in the logs section, select your cluster name.
-
Next, choose the namespace, deployment, and pod that you want to exclude.
-
If you want to exclude additional pods or just want to show logs from a particular pod, you can toggle the “include” and “exclude” options according to your needs.
-
You have now successfully excluded the logs of the selected pod.