0
给定的配置无效。 Reason: Expected one of #, => at line 6, column 2 (byte 118) after
给出错误的Logstash脚本
input {
file {
path => ['/opt/logstash/logstash-tutorial.log']
start_position => 'beginning'
ignore_older => 0 2
}
}
将双引号放在字符串中会给出相同的错误消息。 我在代码的第六行得到错误。后面是ignore_older => 0 2行。由我执行运行配置文件
请帮助..
命令./logstash -f 'first-pipline.conf'
配置
input {
file {
path => ["/opt/logstash/logstash-tutorial.log"]
start_position => "beginning"
ignore_older => 0 2
}
}
这个文件的过滤器部分是注释,以表明它是
可选。
filter {
grok {
match => {"message" => "%{COMBINEDAPACHELOG}"}
}
}
output {
}
谢谢....非常感谢。它确实有效。 – Kanwar
很高兴帮助! – Val