# Ingest a text file as a single log with the help of filebeat

**URL:** <https://discuss.elastic.co/t/ingest-a-text-file-as-a-single-log-with-the-help-of-filebeat/167790>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 11, 2019, 5:27am UTC](https://discuss.elastic.co/t/ingest-a-text-file-as-a-single-log-with-the-help-of-filebeat/167790 "2019-02-11T05:27:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shrikantgulia](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shrikantgulia](https://discuss.elastic.co/u/shrikantgulia)\
**Post date:** [February 11, 2019, 5:27am UTC](https://discuss.elastic.co/t/ingest-a-text-file-as-a-single-log-with-the-help-of-filebeat/167790/1 "2019-02-11T05:27:08Z")

</div>

I want to ingest a text file as a single log in elasticsearch any input would be really appreciated

Best Regards  
Shrikant

---

<div class="post-metadata">

**Author:** ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)\
**Post date:** [February 11, 2019, 2:18pm UTC](https://discuss.elastic.co/t/ingest-a-text-file-as-a-single-log-with-the-help-of-filebeat/167790/2 "2019-02-11T14:18:54Z")

</div>

Just so I'm clear, you want to ingest the entire text file as a single log **entry** , as in a single document in Elasticsearch? If so, you might want to try adjusting the [multiline settings](https://www.elastic.co/guide/en/beats/filebeat/master/multiline-examples.html) in Filebeat appropriately.

---

<div class="post-metadata">

**Author:** ![shrikantgulia](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shrikantgulia](https://discuss.elastic.co/u/shrikantgulia)\
**Post date:** [February 14, 2019, 5:32am UTC](https://discuss.elastic.co/t/ingest-a-text-file-as-a-single-log-with-the-help-of-filebeat/167790/3 "2019-02-14T05:32:42Z")

</div>

@shaunak,  
Thankyou Yes I did the same  
I adjusted multiline.

If possible can you suggest me any way to compare two config file with the help of ELK Stack

---

<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 14, 2019, 5:32am UTC](https://discuss.elastic.co/t/ingest-a-text-file-as-a-single-log-with-the-help-of-filebeat/167790/4 "2019-03-14T05:32:49Z")

</div>

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