input {
file {
path => ["日志路径"]
codec => "plain"
type => "functionLog"
#start_position => "beginning"
}
}
filter {
grok {
match => {
"message" => "<:\|\|:><:\|\|:>"
}
}
}
output {
kafka {
bootstrap_servers => "kafka地址"
topic_id => functionlog
codec => "plain"
}
}
file {
path => ["日志路径"]
codec => "plain"
type => "functionLog"
#start_position => "beginning"
}
}
filter {
grok {
match => {
"message" => "<:\|\|:><:\|\|:>"
}
}
}
output {
kafka {
bootstrap_servers => "kafka地址"
topic_id => functionlog
codec => "plain"
}
}