Fluent-Bit Kubernetes metadata missing on log event.

163 views
Skip to first unread message

Balaji Rangarajan

unread,
Jan 19, 2022, 4:48:49 PM1/19/22
to Fluent Bit
Hello Team, I am using EKS 1.21 with fluent-bit 1.8 (latest) daemonset. 
Attached my config yaml which has the fluent-bit configuration.

I am trying to getting kubernetes metadata to be nested under kubernetes segment. 
But it doesn't seems to work. What am i missing here on the config (filter) that is causing this issue? 

Log printed on stdout
{
    "json": {
        "stream": "stdout",
        "time": "2022-01-19T21:41:36.407296909Z",
        "log_processed": {
            "instant": {
                "epochSecond": 1642628496,
                "nanoOfSecond": 406000000
            },
            "thread": "simpleMessageListenerContainer-7",
            "level": "INFO",
            "loggerName": "com.processor.PayloadProcessor",
            "message": "Handling S3Key",
            "endOfBatch": true,
            "loggerFqcn": "org.apache.logging.slf4j.Log4jLogger",
            "threadId": 13,
            "threadPriority": 5,
            "app_name": "adapter"
        }
    }
}

fluent-bit-configmap.yaml
Reply all
Reply to author
Forward
0 new messages