# Issue while parsing the kubernetes container logs message to individual fields to root document

**URL:** <https://discuss.elastic.co/t/issue-while-parsing-the-kubernetes-container-logs-message-to-individual-fields-to-root-document/371009>\
**Category:** Logs\
**Created:** [November 25, 2024, 8:28am UTC](https://discuss.elastic.co/t/issue-while-parsing-the-kubernetes-container-logs-message-to-individual-fields-to-root-document/371009 "2024-11-25T08:28:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Subrahmanyam\_Veerank](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@Subrahmanyam\_Veerank](https://discuss.elastic.co/u/Subrahmanyam_Veerank)\
**Post date:** [November 25, 2024, 8:28am UTC](https://discuss.elastic.co/t/issue-while-parsing-the-kubernetes-container-logs-message-to-individual-fields-to-root-document/371009/1 "2024-11-25T08:28:04Z")

</div>

Sir,

below is the message field for the kubernetes container log.

{"level":"info","service":"go-treasury","request-id":"1b24ca3b-3ae6-43e6-8700-d7009ca38662","time":"2024-11-25T13:52:38+05:30","caller":"/app/handler/router.go:558","message":"Path /healthz is ignored for authorization"}

the requirement is to keep the message field as it is and the key value pairs are to be merged to the root level of the document for visualizations and searching.  
How to implement using the ingest pipeline in kibana

---

<div class="post-metadata">

**Author:** ![Kay\_Khan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kay_khan/32/45028_2.png) [@Kay\_Khan](https://discuss.elastic.co/u/Kay_Khan)\
**Post date:** [November 26, 2024, 4:29pm UTC](https://discuss.elastic.co/t/issue-while-parsing-the-kubernetes-container-logs-message-to-individual-fields-to-root-document/371009/2 "2024-11-26T16:29:07Z")

</div>

Hello

> [@Nginx ingress controller integration is not working](https://discuss.elastic.co/t/nginx-ingress-controller-integration-is-not-working/352592):
>
> Hi, we have enabled the kubernetes and nginx ingress controller integration on the elastic agent [managed with fleet] but the access & error logs are not coming and getting the below errors. 04:19.949 elastic\_agent [elastic\_agent][error] Unit state changed filestream-default-filestream-container-logs-9ddb18cb-f703-42b1-8593-e78dd99e6134-kubernetes-08d5e576-8558-4339-84a9-0e9891aba20d.speaker (HEALTHY-\>FAILED): Failed: pid '2393669' exited with code '-1' 14:04:19.949 elastic\_agent [elastic…

How did you resolve this issue? In the above thread?
