# Filebeat collects different formats in the same log file

**URL:** <https://discuss.elastic.co/t/filebeat-collects-different-formats-in-the-same-log-file/82390>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 14, 2017, 8:29am UTC](https://discuss.elastic.co/t/filebeat-collects-different-formats-in-the-same-log-file/82390 "2017-04-14T08:29:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fiz](https://avatars.discourse-cdn.com/v4/letter/f/41988e/32.png) [@fiz](https://discuss.elastic.co/u/fiz)\
**Post date:** [April 14, 2017, 8:29am UTC](https://discuss.elastic.co/t/filebeat-collects-different-formats-in-the-same-log-file/82390/1 "2017-04-14T08:29:28Z")

</div>

Filebeat collects different formats in the same log file ,  
the logs record all in one file ,line by line , but the formath is different ,anyone know how to solve this?

```
13:04:57.607 [send]{"servicetype":"verify","errorinfo":"Success","url":"verficatecode","email":"1562251984@qq.com"}

11-Apr-2017 14:52:39.803 INFO [http] com.starbucks.web.UserLoginServlet.doGet 14:52:39.792 [login] {"time":"1491893559"}

31-Mar-2017 14:29:55.645 INFO [http-nio-8080-exec-3] com.starbucks.web.WebDataServlet.doGet 14:29:55.644
```

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [April 14, 2017, 2:33pm UTC](https://discuss.elastic.co/t/filebeat-collects-different-formats-in-the-same-log-file/82390/2 "2017-04-14T14:33:33Z")

</div>

It's not clear what you are asking. It seems like you are asking how to change the format of your logger output?

---

<div class="post-metadata">

**Author:** ![fiz](https://avatars.discourse-cdn.com/v4/letter/f/41988e/32.png) [@fiz](https://discuss.elastic.co/u/fiz)\
**Post date:** [April 17, 2017, 2:17am UTC](https://discuss.elastic.co/t/filebeat-collects-different-formats-in-the-same-log-file/82390/3 "2017-04-17T02:17:46Z")

</div>

There are different formats of logs in the same file，  
i want to use different filed

---

<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:** [May 15, 2017, 2:21am UTC](https://discuss.elastic.co/t/filebeat-collects-different-formats-in-the-same-log-file/82390/4 "2017-05-15T02:21:48Z")

</div>

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