我的配置文件输入定义为:
input {
file {
path => “/Users/user/Desktop/user/apache_logs”
}
}
configtest引发了我的错误:
The given configuration is invalid. Reason: Expected one of #, ", ', -, [, { at line 3, column 11 (byte 27) after input {
file {
path => {:level=>:fatal}
我在这里做错了什么?
答案 0 :(得分:1)
您没有使用ASCII双引号字符,即您使用”
代替"
请改为尝试:
input {
file {
path => "/Users/user/Desktop/user/apache_logs"
}
}