一个grok中不能有多个match吗? 如果我把下面的两个match放到一个grok里,下面的match就没法匹配。
grok {
match => {
"message" => "^#(?<time>\d.*)\n(?<command>\w.*)"
}
overwrite => ["message"]
}
grok {
match => {
"source" => ".*/(?<user>\w.*)/.*"
}
}
grok {
match => {
"message" => "^#(?<time>\d.*)\n(?<command>\w.*)"
}
overwrite => ["message"]
}
grok {
match => {
"source" => ".*/(?<user>\w.*)/.*"
}
}
1 个回复
luohuanfeng
赞同来自: feiyalun