From b713b5d3fe502b2048738defe3980f9f4e3ca4da Mon Sep 17 00:00:00 2001 From: Patrik Segedy Date: Mon, 11 Dec 2023 14:36:38 +0100 Subject: [PATCH] RHINENG-6036: add cyndi filters --- deploy/clowdapp.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/deploy/clowdapp.yaml b/deploy/clowdapp.yaml index 88c37e9ef..9b1a2a074 100644 --- a/deploy/clowdapp.yaml +++ b/deploy/clowdapp.yaml @@ -505,6 +505,15 @@ objects: enabled: true appName: patch insightsOnly: true + additionalFilters: + - name: "nonCentOS" + type: "com.redhat.insights.kafka.connect.transforms.Filter" + if: "!record.headers().lastWithName('os_name').value().match(/centos/i)" + where: "COALESCE(system_profile_facts->'operating_system'->>'name', '') NOT ILIKE '%centos%'" + - name: "excludedReporters" + type: "com.redhat.insights.kafka.connect.transforms.Filter" + if: "!record.headers().lastWithName('reporter').value().match(/^(yupana|satellite|discovery|rhsm-conduit)$/i)" + where: "reporter NOT IN ('yupana', 'satellite', 'discovery', 'rhsm-conduit')" testing: iqePlugin: patchman