Apache2 模块 Filebeat
Apache2 module Filebeat
我正在关注此文档https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-apache2.html,以便使用 file beat 将 apache 网络服务器访问日志文件连接到 elasticsearch,一切正常,直到我更改 [=19 的路径=] 我收到以下错误:
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
此 ID apache2.yml 配置文件:
- module: apache2
access:
enabled: true
var.paths: ["C:\Program Files\filebeat-6.3.2-windows\logs\Apache\Access.log"]
如果您在
中使用双引号
"C:\Program Files\filebeat-6.3.2-windows\logs\Apache\Access.log"
您需要转义反斜杠字符
"C:\Program Files\filebeat-6.3.2-windows\logs\Apache\Access.log"
使用 / 而不是 。 \ 用于转义字符。
我有同样的问题
我正在关注此文档https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-apache2.html,以便使用 file beat 将 apache 网络服务器访问日志文件连接到 elasticsearch,一切正常,直到我更改 [=19 的路径=] 我收到以下错误:
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
此 ID apache2.yml 配置文件:
- module: apache2
access:
enabled: true
var.paths: ["C:\Program Files\filebeat-6.3.2-windows\logs\Apache\Access.log"]
如果您在
中使用双引号"C:\Program Files\filebeat-6.3.2-windows\logs\Apache\Access.log"
您需要转义反斜杠字符
"C:\Program Files\filebeat-6.3.2-windows\logs\Apache\Access.log"
使用 / 而不是 。 \ 用于转义字符。 我有同样的问题