Files

19 lines
360 B
Plaintext

filter {
if [type] == "temperature" {
dissect {
mapping => {
"message" => "%{timestamp} %{system.temperature.sensor_name} %{system.temperature.value}°C"
}
}
date {
match => ["timestamp", "ISO8601"]
target => "@timestamp"
}
mutate {
convert => { "system.temperature.value" => "float" }
}
}
}