Files
ServerManagementUtils/logstash/conf.d/21-power-usage.conf
T

18 lines
304 B
Plaintext

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