# Filebeat include\_lines problem

**URL:** <https://discuss.elastic.co/t/filebeat-include-lines-problem/122200>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 2, 2018, 6:34am UTC](https://discuss.elastic.co/t/filebeat-include-lines-problem/122200 "2018-03-02T06:34:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![beitiantian](https://avatars.discourse-cdn.com/v4/letter/b/e68b1a/32.png) [@beitiantian](https://discuss.elastic.co/u/beitiantian)\
**Post date:** [March 2, 2018, 6:34am UTC](https://discuss.elastic.co/t/filebeat-include-lines-problem/122200/1 "2018-03-02T06:34:42Z")

</div>

I want to extract the logs that include the "FaceLogBean" ，Configuration file is：

```auto
filebeat.prospectors: 
    - input_type: log
      document_type: cloud
      paths:
           - /usr/logs/*.log
      include_lines:["FaceLogBean"]
      multiline.pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}'
      multiline.negate: true
      multiline.match: after
      multiline.timeout: 10s
    output.logstash:
       # The Logstash hosts
      hosts: ["localhost:5044"]

```

After the configuration, the filebeat startup failed：

```auto
 filebeat.service - filebeat
   Loaded: loaded (/usr/lib/systemd/system/filebeat.service; disabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since Fri 2018-03-02 11:41:14 CST; 27s ago
     Docs: https://www.elastic.co/guide/en/beats/filebeat/current/index.html
  Process: 12829 ExecStart=/usr/share/filebeat/bin/filebeat -c /etc/filebeat/filebeat.yml -path.home /usr/share/filebeat -path.config /etc/filebeat -path.data /var/lib/filebeat -path.logs /var/log/filebeat (code=exited, status=1/FAILURE)
 Main PID: 12829 (code=exited, status=1/FAILURE)

Mar 02 11:41:14 dongjingang-test3.syswin.com systemd[1]: filebeat.service: main process exited, code=exited, status=1/FAILURE
Mar 02 11:41:14 dongjingang-test3.syswin.com systemd[1]: Unit filebeat.service entered failed state.
Mar 02 11:41:14 dongjingang-test3.syswin.com systemd[1]: filebeat.service failed.
Mar 02 11:41:14 dongjingang-test3.syswin.com systemd[1]: filebeat.service holdoff time over, scheduling restart.
Mar 02 11:41:14 dongjingang-test3.syswin.com systemd[1]: start request repeated too quickly for filebeat.service
Mar 02 11:41:14 dongjingang-test3.syswin.com systemd[1]: Failed to start filebeat.
Mar 02 11:41:14 dongjingang-test3.syswin.com systemd[1]: Unit filebeat.service entered failed state.
Mar 02 11:41:14 dongjingang-test3.syswin.com systemd[1]: filebeat.service failed.

```

But annotate the code “ include\_lines:["FaceLogBean"]”and start the success.  
Hope to get help，thank！

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [March 6, 2018, 5:25am UTC](https://discuss.elastic.co/t/filebeat-include-lines-problem/122200/2 "2018-03-06T05:25:55Z")

</div>

Could you check your filebeat log file and share it here. This should contain some more info.

BTW: I tried to edit your post above to make the code parts readable.

---

<div class="post-metadata">

**Author:** ![beitiantian](https://avatars.discourse-cdn.com/v4/letter/b/e68b1a/32.png) [@beitiantian](https://discuss.elastic.co/u/beitiantian)\
**Post date:** [March 7, 2018, 1:56am UTC](https://discuss.elastic.co/t/filebeat-include-lines-problem/122200/3 "2018-03-07T01:56:22Z")

</div>

Thank you for your reply,I've solved this problem.I add a space behind "include\_lines:" and I can run 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:** [April 4, 2018, 1:56am UTC](https://discuss.elastic.co/t/filebeat-include-lines-problem/122200/4 "2018-04-04T01:56:23Z")

</div>

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