Likhith
10/16/2025, 11:26 AM{
"timestamp": "2025-10-16 10:27:41.799",
"level": "INFO",
"log_session_id": "fbcbcaf7-9172-479f-b1cb-b5f2e1cbc394",
"fn_id": "LIST_IMAGES",
"location": "logger.info:152",
"vm_id": "abc",
"message": "All records fetched successfully.",
"time": "2025-10-16T10:27:41.799732772+00:00",
"stream": "stdout",
"logtag": "F",
"kubernetes_pod_name": "bl-db-o-r-pod-59d854848c-gzzgx",
"kubernetes_namespace_name": "bl-db-o-r",
"kubernetes_container_name": "bl-db-o-r-pod",
"tenancy": "child1"
}
this a log sample that is seen in grafana explore
Below is my fluent bit config
outputs:
- name: loki
match: kube*
host: 10.251.0.55
port: 80
labels: service=biz_pod_logs,cluster=$tenancy,sss_status=$sss_status,level=$level
structured_metadata: pod_name=$kubernetes_pod_name,namespace=$kubernetes_namespace_name,host_ip=${HOST_IP},request_path=$request_path,user_uuid=$user_uuid,vm_id=$vm_id,fn_id=$fn_id
line_format: json
I see only few of the fields are gettind added as structured metadata specifically these pod_name=$kubernetes_pod_name,namespace=$kubernetes_namespace_name,host_ip=${HOST_IP}
when i visit drill down i only see above fileds in structured metadata and rest are missing in both structured metadata and json fields. Am i configuring it wrong or missing something while trying to capture it as structured metadata. Thanks