Filebeat with local log apache2

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

I found the problem :slight_smile:

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

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