I am trying to filter the output of the "last" command using grok
.
The grok
pattern is only matching the first variable "user" .
It is not matching any pattern after it.
Can you please let me know what i am missing here.
Log:
sam pts/0 172.19.16.3 Tue Mar 3 11:32 - 11:39 (00:07)
Grok pattern used :
match => [ "message", "%{USER:user} %{TTY:terminal} %{IPORHOST:client} %{TIMESTAMP_ISO8601:date} %{NUMBER:duration}" ]