update logstash filter

main
ycz008 2024-02-22 18:08:07 +08:00
parent a0905234ae
commit f5df8aa922
1 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,10 @@ data:
}
filter {
date {
match => [ "start_time", "dd/MMM/yyyy:HH:mm:ss Z" ]
target => "@timestamp"
}
mutate {
add_field => { "env" => "%{[tags][0]}" }
remove_field => [ "tags" ]