Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advice on dropping events #186

Open
sivarama-p-raju opened this issue Jun 17, 2024 · 0 comments
Open

Advice on dropping events #186

sivarama-p-raju opened this issue Jun 17, 2024 · 0 comments

Comments

@sivarama-p-raju
Copy link

Hi,

Please note that I have a requirement of dropping specific events and only dump the remaining events onto stdout.

Below is my configuration:

  route:
    routes:
      - match:
        - receiver: "dump"
        drop:
          - reason: "PolicyViolation"
          - reason: "PolicyApplied"
          - kind: "CronJob"
          - kind: "CertificateRequest"
          - kind: "Job"

With the above configuration, the events with reason as "PolicyViolation" and "PolicyApplied" are dropped.
However, the rest with "kind" are not dropped.

If I now add the below under "drop:", then all events are dropped and nothing appears on stdout

        - name: "mqtt-producer*"

Did I get this completely wrong ?

Is there some documentation that shows how to correctly drop specific events (also with wildcards) ? I searched for the same but could not find it.

Thanks a lot in advance.

Thanks and regards,
Sivarama Raju P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant