# Kibana is showing only the first line of the txt log file

**URL:** <https://discuss.elastic.co/t/kibana-is-showing-only-the-first-line-of-the-txt-log-file/231542>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 7, 2020, 12:52pm UTC](https://discuss.elastic.co/t/kibana-is-showing-only-the-first-line-of-the-txt-log-file/231542 "2020-05-07T12:52:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![meniem](https://avatars.discourse-cdn.com/v4/letter/m/41988e/32.png) [@meniem](https://discuss.elastic.co/u/meniem)\
**Post date:** [May 7, 2020, 12:52pm UTC](https://discuss.elastic.co/t/kibana-is-showing-only-the-first-line-of-the-txt-log-file/231542/1 "2020-05-07T12:52:11Z")

</div>

I need to ship logs from 2 apps into ElasticSearch/Kibana, one of them is a Symfony app that generates logs in /var/www/html/logs/\*.log and they are displayed in the correct format on ES/Kibana. While the other is a NodeJS based app that generates the logs in the format of txt file, but in Kibana, it's showing only the first line of the log content in the message field.  
Below is a sample log.txt file:

```auto
fetchBlog called
request.body
[{"author":"1","permlink":"2"},"user435433","2020-5-1-2-43-53-441"]
Error:
[{"res":null,"error":"1"},{"message":"2","type":"3","errno":"4","code":"4"},"request to http://10.0.0.222:9675/ failed, reason: connect ECONNREFUSED 10.0.0.222:9675","system","ECON$"}]

```

And the output is just showing like below:

 ![Screen Shot 2020-05-07 at 2.35.44 PM](https://us1.discourse-cdn.com/elastic/original/3X/3/a/3af9beb3de33cbef4a0453d01a9539511d147fe5.jpeg)

So, how to fix the formatting issue to parse all of the contents of the txt log file into ES/Kibana

---

<div class="post-metadata">

**Author:** ![ChrsMark](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrsmark/32/55858_2.png) [@ChrsMark](https://discuss.elastic.co/u/ChrsMark)\
**Post date:** [May 8, 2020, 8:16am UTC](https://discuss.elastic.co/t/kibana-is-showing-only-the-first-line-of-the-txt-log-file/231542/2 "2020-05-08T08:16:38Z")

</div>

Hi @meniem!

It seems that you need to handle your multiline logs. You can follow the instructions in the respective documentation [here](https://www.elastic.co/guide/en/beats/filebeat/current/multiline-examples.html#multiline-examples).

Regards!

---

<div class="post-metadata">

**Author:** ![meniem](https://avatars.discourse-cdn.com/v4/letter/m/41988e/32.png) [@meniem](https://discuss.elastic.co/u/meniem)\
**Post date:** [May 8, 2020, 10:39pm UTC](https://discuss.elastic.co/t/kibana-is-showing-only-the-first-line-of-the-txt-log-file/231542/3 "2020-05-08T22:39:30Z")

</div>

Thanks @ChrsMark, appreciate it 🙂

---

<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:** [June 5, 2020, 10:50pm UTC](https://discuss.elastic.co/t/kibana-is-showing-only-the-first-line-of-the-txt-log-file/231542/4 "2020-06-05T22:50:01Z")

</div>

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