bug: fluentbit.io/parser annotation not working properly

Aperta
#1,370 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
helm, kubernetes

Direzione di ricerca

Non sono indicati né un file sorgente né un test. Inizia tracciando la gestione dell’annotazione k8sLoggingParser del filtro Kubernetes e la risoluzione del Parser CRD namespaced, usando la riproduzione con Fluent Operator 3.2.0 installato tramite Helm. Il lavoro è completato quando un’annotazione del pod fa sì che il campo di log venga analizzato dal parser personalizzato referenziato, mentre il comportamento esistente dell’annotazione di esclusione rimane invariato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Describe the issue

We have a fluent-operator installed on the cluster in the fluent namespace, with namespace-provided configuration (filters, parsers, and output).

We have been using the kubernetes filter with the k8sLoggingParser: true option set in the default namespace, so we can specify a custom parser on the resource level, in the pod annotation, as described here.

We configured and applied the custom parsers with the namespaced Parser CRD on the default namespace.

When specifying the annotation on the pod level, the log field (which was not parsed via Kubernetes filter), doesn't get parsed by the parser specified via annotation. I've also tried using the parser name and the parser name with hashed namespaced suffix in the end. Both of those options didn't work.

For comparisson, I've also enabled the k8sLoggingExclude option, and the exclusion annotation. This seems to work as expected.

To Reproduce

Create a namespaced Parser and add an annotation on the pod level that specifies that parser.

Expected behavior

Log field is properly parsed via the custom parser specified in the annotation.

Your Environment
- Fluent Operator version: 3.2.0
How did you install fluent operator?

Via helm.

Additional context

No response

Lingua principale
Go
Stelle
689
Fork
333
Merge medio
2g 6h
PR unite (30g)
43

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di fluent/fluent-operator

Tutte le issue di fluent/fluent-operator

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.