logstash 配置文件出错
Error in logstash configuration file
我的配置文件的输入定义为:
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}
我做错了什么?
您没有使用 ASCII 双引号字符,即您使用的是 ”
而不是 "
试试这个:
input {
file {
path => "/Users/user/Desktop/user/apache_logs"
}
}
我的配置文件的输入定义为:
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}
我做错了什么?
您没有使用 ASCII 双引号字符,即您使用的是 ”
而不是 "
试试这个:
input {
file {
path => "/Users/user/Desktop/user/apache_logs"
}
}