skip to Main Content

I’m following this documentation https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-apache2.html in order to connect an apache web server access log file using file beat to elasticsearch, everything was ok until I changed the path of apache2.yml I got the following error :

2018-09-22T14:21:55.791+0100    ERROR   instance/beat.go:691    Exiting: 1 error: error
loading config file: invalid config: yaml: line 3: found unknown escape character
Exiting: 1 error: error loading config file: invalid config: yaml: line 3: found unknown escape character

this id apache2.yml configuration file :

    - module: apache2
  access:
    enabled: true
    var.paths: ["‪C:Program Filesfilebeat-6.3.2-windowslogsApacheAccess.log"]

2

Answers


  1. If you are using double quotes in

    "‪C:Program Filesfilebeat-6.3.2-windowslogsApacheAccess.log"
    

    you need to escape the backslash characters

    "‪C:\Program Files\filebeat-6.3.2-windows\logs\Apache\Access.log"
    
    Login or Signup to reply.
  2. Use / instead of . is used to escape characters.
    I had the same problem

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search