update logstash input kafka

main
ycz008 2024-02-23 16:23:36 +08:00
parent b523234207
commit 3a14e8e2de
1 changed files with 9 additions and 2 deletions

View File

@ -5,8 +5,12 @@ metadata:
data:
logstash.conf: |-
input {
beats {
port => 5044
kafka{
bootstrap_servers => "10.2.0.12:30002,10.2.0.12:30003,10.2.0.12:30004"
topics => ["beaconfire-logback-dev","beaconfire-logback-prod"]
group_id => "logstash-app"
auto_offset_reset => "earliest"
codec => json
}
}
@ -20,6 +24,9 @@ data:
split => { "[log][file][path]" => "/" }
add_field => { "env" => "%{[log][file][path][3]}" }
}
mutate {
join => { "[log][file][path]" => "/" }
}
}
output {