Skip to content

grep filter: If you want to filter multiple apps or filter according to multiple rules, how should you write the configuration #6245

Closed

Description

@changdongkai

{
"log": "something",
"kubernetes": {
"pod_name": "myapp-0",
"namespace_name": "default",
"pod_id": "216cd7ae-1c7e-11e8-bb40-000c298df552",
"labels": {
"app": "myapp"
},
"host": "minikube",
"container_name": "myapp",
"docker_id": "370face382c7603fdd309d8c6aaaf434fd98b92421ce"
}
}

[FILTER]
Name grep
Match *
Exclude $kubernetes['labels']['app'] myapp

Activity

  1. locked and limited conversation to collaborators on Oct 20, 2022
  2. converted this issue into a discussion #6248 on Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions