# Filebeat with local log apache2

**URL:** <https://discuss.elastic.co/t/filebeat-with-local-log-apache2/123267>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 9, 2018, 1:19pm UTC](https://discuss.elastic.co/t/filebeat-with-local-log-apache2/123267 "2018-03-09T13:19:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![franco.federico](https://avatars.discourse-cdn.com/v4/letter/f/67e7ee/32.png) [@franco.federico](https://discuss.elastic.co/u/franco.federico)\
**Post date:** [March 9, 2018, 1:19pm UTC](https://discuss.elastic.co/t/filebeat-with-local-log-apache2/123267/1 "2018-03-09T13:19:32Z")

</div>

Good evening  
I have a problem with loading access apache2.  
I installed filebeat and I did the following command  
sudo filebeat setup -e  
sudo filebeat modules enable apache2  
At the end I did the command  
sudo filebeat -e --module apache2 -M "apache2.access.var.paths=/home/franco/scenario1\_filebeat/apache\_logs"  
and I received the following error  
ERROR instance/beat.go:667 Exiting: Error getting config for fielset apache2/access: Error interpreting the template of the prospector: template: text:3:22: executing "text" at \<.paths\>: range can't iterate over /home/franco/scenario1\_filebeat/apache\_logs  
Exiting: Error getting config for fielset apache2/access: Error interpreting the template of the prospector: template: text:3:22: executing "text" at \<.paths\>: range can't iterate over /home/franco/scenario1\_filebeat/apache\_logs

What is the error?

Thank you in advance  
Franco

---

<div class="post-metadata">

**Author:** ![franco.federico](https://avatars.discourse-cdn.com/v4/letter/f/67e7ee/32.png) [@franco.federico](https://discuss.elastic.co/u/franco.federico)\
**Post date:** [March 9, 2018, 1:54pm UTC](https://discuss.elastic.co/t/filebeat-with-local-log-apache2/123267/2 "2018-03-09T13:54:59Z")

</div>

I found the problem 🙂

There was 2 errors, the correct command is the followinf

sudo filebeat -e --module apache2 -M "apache2.access.var.paths=[/home/franco/scenario1\_filebeat/apache\_logs\*]"

For the other people that found the same error  
Bye  
Franco

---

<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 6, 2018, 1:55pm UTC](https://discuss.elastic.co/t/filebeat-with-local-log-apache2/123267/3 "2018-04-06T13:55:18Z")

</div>

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