Skip to content

Non-English character got UNICODE-escaped when getting logs from EKS to Cloudwatch logs #825

Description

@ensean

Describe the question/issue

Non-English characters in EKS log got UNICODE-escaped in Cloudwatch logs.

  • Input logs
abc, today is a good day
好雨知时节
  • Cloudwatch logs view
    image

This issue may related to fluent/fluent-bit#8521, which can resolved via building fluent-bit on graviton with flag -DCMAKE_C_FLAGS="-fsigned-char"

Configuration

part of EKS daemon set yaml

---
apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: fluent-bit
  namespace: amazon-cloudwatch
  labels:
    k8s-app: fluent-bit
    version: v1
    kubernetes.io/cluster-service: "true"
spec:
  selector:
    matchLabels:
      k8s-app: fluent-bit
  template:
    metadata:
      labels:
        k8s-app: fluent-bit
        version: v1
        kubernetes.io/cluster-service: "true"
    spec:
      containers:
      - name: fluent-bit
        image: public.ecr.aws/aws-observability/aws-for-fluent-bit:stable
        imagePullPolicy: Always
...

Fluent Bit Log Output

Fluent Bit Version Info

Cluster Details

Application Details

Steps to reproduce issue

Related Issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions