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