# Error with filebeat log type that was working on different machine

**URL:** <https://discuss.elastic.co/t/error-with-filebeat-log-type-that-was-working-on-different-machine/187435>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [June 25, 2019, 9:49pm UTC](https://discuss.elastic.co/t/error-with-filebeat-log-type-that-was-working-on-different-machine/187435 "2019-06-25T21:49:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aviationfan](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@aviationfan](https://discuss.elastic.co/u/aviationfan)\
**Post date:** [June 25, 2019, 9:49pm UTC](https://discuss.elastic.co/t/error-with-filebeat-log-type-that-was-working-on-different-machine/187435/1 "2019-06-25T21:49:09Z")

</div>

I was working with a Filebeat setup on my laptop and decided to move it to my server for more permanent use. I keep getting this error:  
`Exiting: 1 error: setting 'filebeat.prospectors' has been removed`

The contents of filebeat.yml are as such:

```auto
filebeat.prospectors:
- type: log
  paths:
    - /usr/local/var/log/pihole.log.*

  registry_file: /usr/local/var/lib/filebeat/registry.json

output.logstash:
  hosts: ["localhost:5141"]

logging:
  files:
    rotateeverybytes: 10485760

```

I tried the export config just to see what it would produce  
`filebeat -path.home /usr/local/etc/filebeat/ export config`

```auto
﻿﻿filebeat:
  prospectors:
  - paths:
    - /usr/local/var/log/pihole.log.*
    registry_file: /usr/local/var/lib/filebeat/registry.json
    type: log
logging:
  files:
    rotateeverybytes: 10485760
output:
  logstash:
    hosts:
    - localhost:5141
path:
  config: /usr/local/etc/filebeat
  data: /usr/local/var/lib/filebeat
  home: /usr/local/etc/filebeat/
  logs: /usr/local/var/log/filebeat

```

I have checked file permissions and file paths are correct. The 1 thing that is different is the laptop has Filebeat 6.2.4 and the server has 7.2.0 which I did not think would be an issue but maybe it is.

---

<div class="post-metadata">

**Author:** ![Michael\_Madden](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael_madden/32/46640_2.png) [@Michael\_Madden](https://discuss.elastic.co/u/Michael_Madden)\
**Post date:** [June 26, 2019, 2:23am UTC](https://discuss.elastic.co/t/error-with-filebeat-log-type-that-was-working-on-different-machine/187435/2 "2019-06-26T02:23:44Z")

</div>

Hello, thanks for reaching out. On the box running 7.2.0 can you change this to `filebeat.inputs`?

[https://www.elastic.co/guide/en/beats/filebeat/current/configuration-filebeat-options.html](https://www.elastic.co/guide/en/beats/filebeat/current/configuration-filebeat-options.html)

Thanks.

---

<div class="post-metadata">

**Author:** ![aviationfan](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@aviationfan](https://discuss.elastic.co/u/aviationfan)\
**Post date:** [June 26, 2019, 1:01pm UTC](https://discuss.elastic.co/t/error-with-filebeat-log-type-that-was-working-on-different-machine/187435/3 "2019-06-26T13:01:29Z")

</div>

That works much better, thank you.

---

<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 24, 2019, 1:01pm UTC](https://discuss.elastic.co/t/error-with-filebeat-log-type-that-was-working-on-different-machine/187435/4 "2019-07-24T13:01:40Z")

</div>

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