logstash配置文件出错

时间:2016-06-10 06:29:13

标签: logstash elastic-stack logstash-configuration

我的配置文件输入定义为:

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}

我在这里做错了什么?

1 个答案:

答案 0 :(得分:1)

您没有使用ASCII双引号字符,即您使用代替"

请改为尝试:

input {
    file {
        path => "/Users/user/Desktop/user/apache_logs"
    }
}