Created
June 30, 2023 14:01
-
-
Save alces/c536c0d052b8ae29ca37adeee0d6f2e3 to your computer and use it in GitHub Desktop.
Looking for a pattern inside NiFi flowfiles on multiple clusters deployed atop of k8s
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PATTERN='for-example-a-kafka-topic-name-to-look-for' | |
for ns in $(kubectl get ns | awk '{if ($1 !~ /^NAME|kube-/) {print $1}}') | |
do | |
echo "Looking into $ns" | |
kubectl exec -n "$ns" -c nifi nifi-0 -- zgrep "$PATTERN" permanent_configs/flow.xml.gz 2>/dev/null | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment