# Kibana does not log all lines as json

**URL:** <https://discuss.elastic.co/t/kibana-does-not-log-all-lines-as-json/325627>\
**Category:** Kibana\
**Created:** [February 15, 2023, 2:36pm UTC](https://discuss.elastic.co/t/kibana-does-not-log-all-lines-as-json/325627 "2023-02-15T14:36:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![woodywoodsta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/woodywoodsta/32/107962_2.png) [@woodywoodsta](https://discuss.elastic.co/u/woodywoodsta)\
**Post date:** [February 15, 2023, 2:36pm UTC](https://discuss.elastic.co/t/kibana-does-not-log-all-lines-as-json/325627/1 "2023-02-15T14:36:24Z")

</div>

I have Kibana deployed as an ECK resource.

Despite the following config:

```yaml
config:
  logging:
    appenders:
      json-layout:
        type: console
        layout:
          type: json
    root:
      appenders: [json-layout]

```

I still get large blocks of output on stdout which look like this:

```auto
=== Debug: GET /internal/apm/observability_overview (10ms) ===
get_has_aggregated_transactions
GET metrics-apm*,apm-*/_search
{
  "track_total_hits": 1,
  "terminate_after": 1,
  "size": 0,
  "query": {
    "bool": {
      "filter": [
        {
          "exists": {
            "field": "transaction.duration.histogram"
          }
        },
        {
          "range": {
            "@timestamp": {
              "gte": 1676470456959,
              "lte": 1676471356959,
              "format": "epoch_millis"
            }
          }
        },
        {
          "terms": {
            "processor.event": [
              "metric"
            ]
          }
        }
      ]
    }
  }
}

```

How do I instruct Kibana to log these details as `ndjson`, like the rest of its logs are formatted?

At startup, kibana does logs as ndjson, so these blocks are incredibly noisy and annoying when trying to ingest the logs:

```auto
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-02-15T14:20:04.101+00:00","message":"Kibana process configured with roles: [background_tasks, ui]","log":{"level":"INFO","logger":"node"},"process":{"pid":7},"trace":{"id":"651be26645ffa6f703115a30aa18991e"},"transaction":{"id":"40f3d9ec5b0b8337"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-02-15T14:20:27.745+00:00","message":"Plugin \"cloudChat\" is disabled.","log":{"level":"INFO","logger":"plugins-service"},"process":{"pid":7},"trace":{"id":"651be26645ffa6f703115a30aa18991e"},"transaction":{"id":"40f3d9ec5b0b8337"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-02-15T14:20:27.746+00:00","message":"Plugin \"cloudExperiments\" is disabled.","log":{"level":"INFO","logger":"plugins-service"},"process":{"pid":7},"trace":{"id":"651be26645ffa6f703115a30aa18991e"},"transaction":{"id":"40f3d9ec5b0b8337"}}
...

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 15, 2023, 2:36pm UTC](https://discuss.elastic.co/t/kibana-does-not-log-all-lines-as-json/325627/2 "2023-03-15T14:36:44Z")

</div>

Closed on March 15, 2023, 2:36pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
