# Unable to ingest apache2 logs through filebeat

**URL:** https://discuss.elastic.co/t/unable-to-ingest-apache2-logs-through-filebeat/146309
**Category:** Beats
**Tags:** filebeat
**Created:** [August 28, 2018, 9:46am UTC](https://discuss.elastic.co/t/unable-to-ingest-apache2-logs-through-filebeat/146309 "2018-08-28T09:46:19Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)
#### Post date: [August 28, 2018, 2:40pm UTC](https://discuss.elastic.co/t/unable-to-ingest-apache2-logs-through-filebeat/146309/3 "2018-08-28T14:40:46Z")

</div>

The `vars.paths` setting in the apache module requires an array. The template engine complaints about it being a plain string.

Update your modules setting to say:

```auto
filebeat.modules:

#------------------------------- Apache2 Module ------------------------------
- module: apache2
  access:
    enabled: true

    # Set custom paths for the log files. If left empty,
    # Filebeat will choose the paths depending on your OS.
    var.paths:
      - '/opt/bea/Logwarhouse/MarketApache/*access.log'

  error:
    enabled: true

    # Set custom paths for the log files. If left empty,
    # Filebeat will choose the paths depending on your OS.
    var.paths:
      - '/opt/bea/Logwarhouse/MarketApache/*error.log'

```

---

_[View the full topic](https://discuss.elastic.co/t/unable-to-ingest-apache2-logs-through-filebeat/146309)._
