mirror of
https://github.com/AlexMacocian/ServerManagementUtils.git
synced 2026-07-15 15:19:58 +00:00
19 lines
360 B
Plaintext
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" }
|
|
}
|
|
}
|
|
}
|