Hey folks sorry for spamming the slack with questi...
# fluent-operator
m
Hey folks sorry for spamming the slack with questions but I'm trying to use the namespaced CRDs (Output) and I notice that they add a rewrite_tag filter to the pipeline but it's not picking anything up any logs. Am I missing something, is there a specific way I'm suppose to configure my input for this? I couldn't find anything in the docs on the repo or the walkthrough specifically for fluent bit namespaced CRDs.
Copy code
[Service]
  Parsers_File  /fluent-bit/etc/parsers.conf
[Input]
  Name  tail
  Path  /var/log/containers/*.log
  Read_from_Head  false
  Refresh_Interval  5
  Skip_Long_Lines  true
  DB  /fluent-bit/tail/test.db
  DB.Sync  Normal
  Mem_Buf_Limit  100MB
  Parser  cri
  Tag  kube.*
  storage.type  memory
[Filter]
  Name  rewrite_tag
  Match  kube.*
  Rule  $kubernetes['namespace_name'] ^(argocd)$ c673f1e144a42bef9dab959465e5a0e8.$TAG false
  Emitter_Name  re_emitted_c673f1e144a42bef9dab959465e5a0e8
[Output]
  Name  stdout
  Match  c673f1e144a42bef9dab959465e5a0e8.*
When using the
clusteroutput
CRD I am able to get logs to show up. So what I am assuming is that the filter isn't actually getting anything.
I saw in an earlier message that shouldn't even be using namespaced CRDs is that true?
My log JSONs don't have the key
kubernetes
? Am I suppose to add that to the JSON for the logs myself with a filter?
I had to add the kubernetes filter, I didn't find this in the README docs I'm going to make a PR to add this to the readme