input{
kafka {
bootstrap_servers => "localhost:9092"
topics => ["test"]
consumer_threads => 1
}
}
filter{
mutate{
copy => {
"@timestamp" => "test"
}
}
}
output{
stdout { codec => rubydebug }
}
当用logstash的copy @timestamp时报错,其它字段(@version, message)都没有问题。