I am looking for output with "User" and "Nice" parameters as float. I am getting as "String" because of "%" I guess. Any suggestions appreciated.
$ ./logstash -e 'input { stdin { } } filter { grok { match => [ "message", "%{NUMBER:[CPU]User%:float} %{NUMBER:[CPU]Nice%:float}" ] } }'
Logstash startup completed
44.3 2.34
{
"message" => "44.3 2.34",
"@version" => "1",
"@timestamp" => "2015-11-25T00:23:55.252Z",
"host" => "lcam88",
"CPU" => {
"User" => "44.3",
"Nice" => "2.34"
}
}