update logstash

main
ycz008 2023-09-27 14:59:04 +08:00
parent 4daec55d61
commit 6cb4e2f021
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ data:
}
mutate {
split => { "log.file.path" => "/" }
add_field => { "env" => "%{[hostlog.file.path][2]}" }
add_field => { "env" => "%{[log.file.path][2]}" }
}
}