Interview Prep/Monitoring & Observability/Logging: Loki, Fluent Bit and Elasticsearch

Fluent Bit logs `[error] [output:es:es.0] HTTP status=400 URI=/_bulk` with `mapper_parsing_exception`

AdvancedTroubleshootingLogging: Loki, Fluent Bit and Elasticsearch
Answer

Likely causes → Mapping conflict: one app sends status as a string, another as an object or number, and the index mapping rejects the document. Kubernetes labels with dots (app.kubernetes.io/name) also clash with object mappings.

Diagnose → Set Trace_Error On in the es output to print the ES response; check GET logs-*/_mapping/field/status.

Fix → Use Replace_Dots On in the es output, rename conflicting fields with a modify filter, or route the app to its own index.

Prevent → Index templates with explicit mappings and dynamic: false for unknown fields.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Logging: Loki, Fluent Bit and Elasticsearch