# Why Filebeat is treating the the whole content of the file as a single message?

**URL:** https://discuss.elastic.co/t/why-filebeat-is-treating-the-the-whole-content-of-the-file-as-a-single-message/225919
**Category:** Elasticsearch
**Created:** [March 31, 2020, 4:53pm UTC](https://discuss.elastic.co/t/why-filebeat-is-treating-the-the-whole-content-of-the-file-as-a-single-message/225919 "2020-03-31T16:53:17Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![muntazirabbas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/muntazirabbas/32/65416_2.png) [@muntazirabbas](https://discuss.elastic.co/u/muntazirabbas)
#### Post date: [March 31, 2020, 4:53pm UTC](https://discuss.elastic.co/t/why-filebeat-is-treating-the-the-whole-content-of-the-file-as-a-single-message/225919/1 "2020-03-31T16:53:18Z")

</div>

Hi,  
I am trying to send some custome logs to elasticsearch but it seems filebeat is treating the content of the file as a single message while the file has many log entries. The file name syntax is as follows:

F:\inetpub\logs\443\IMAS\_RequestLogger2.txt.20200325-15

 ![log](https://us1.discourse-cdn.com/elastic/original/3X/7/7/77696fff0e4e340c5191df7ca9cb4f4fbc11e361.png)

The filebeat conf is as follows, Please tell what I am doing wrong here?

```auto
filebeat.inputs:
- type: log
  enabled: true
  paths:
     - F:\inetpub\logs\443\*.txt.*
  #include_lines: ['^ERR', '^WARN']
  multiline.pattern: '^\2020-'
  multiline.negate: true
  multiline.match: after

```

---

<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: [April 28, 2020, 4:53pm UTC](https://discuss.elastic.co/t/why-filebeat-is-treating-the-the-whole-content-of-the-file-as-a-single-message/225919/2 "2020-04-28T16:53:19Z")

</div>

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