# Filebeat.yml problem

**URL:** <https://discuss.elastic.co/t/filebeat-yml-problem/135883>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [June 14, 2018, 9:35am UTC](https://discuss.elastic.co/t/filebeat-yml-problem/135883 "2018-06-14T09:35:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![asalma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/asalma/32/32199_2.png) [@asalma](https://discuss.elastic.co/u/asalma)\
**Post date:** [June 14, 2018, 9:35am UTC](https://discuss.elastic.co/t/filebeat-yml-problem/135883/1 "2018-06-14T09:35:32Z")

</div>

Hi,

I did this configuration on filebeat.yml but I had this error when I started it :

```auto
- type: log
  enabled: true
  paths:
    - /var/log/network/FWEquin_WAN_R03-01M.log
  fields:
    log_type: fortigate
- type: log
  enabled: true
    - /var/log/network/frghcfwdmz01m.log
  fields:
    log_type: paloalto
- type: log
  enabled: true
    - /var/log/network/frghcfwint01m-fwcommon-2.log
  fields:
    log_type: cisco_asa

```

[root@frghcslnetv03 filebeat]# service filebeat start  
Starting filebeat: Exiting: error loading config file: yaml: line 26: did not find expected key

And the line 26 is :

```auto
log_type: fortigate
```

---

<div class="post-metadata">

**Author:** ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)\
**Post date:** [June 14, 2018, 2:58pm UTC](https://discuss.elastic.co/t/filebeat-yml-problem/135883/2 "2018-06-14T14:58:32Z")

</div>

Hi @asalma,

Your configuration looks fine at first, could you share the whole filebeat error logs?

---

<div class="post-metadata">

**Author:** ![asalma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/asalma/32/32199_2.png) [@asalma](https://discuss.elastic.co/u/asalma)\
**Post date:** [June 15, 2018, 7:29am UTC](https://discuss.elastic.co/t/filebeat-yml-problem/135883/3 "2018-06-15T07:29:10Z")

</div>

Can you give the path for the error logs ?

Because in : /var/log There is no filebeat file or directory. Filebeat hadn't start yet

---

<div class="post-metadata">

**Author:** ![asalma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/asalma/32/32199_2.png) [@asalma](https://discuss.elastic.co/u/asalma)\
**Post date:** [June 15, 2018, 9:05am UTC](https://discuss.elastic.co/t/filebeat-yml-problem/135883/4 "2018-06-15T09:05:25Z")

</div>

I resolve the problem by installing the new version of filebeat 😕

---

<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:** [July 13, 2018, 9:05am UTC](https://discuss.elastic.co/t/filebeat-yml-problem/135883/5 "2018-07-13T09:05:28Z")

</div>

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