Im working on writing a logstash grok filter for syslog messages coming from my Synology box. An example message looks like this.
Jun 3 09:39:29 diskstation Connection user:\tUser [user] logged in from [192.168.1.121] via [DSM].
Im having a hard time filtering out the weirdly formatted timestamp. Could anyone give me a helping hand here? This is what I have so far.
if [type] == "syslog" and [message] =~ "diskstation" {
grok {
match => [ "message", "%{HOSTNAME:hostname} %{WORD:program} %{GREEDYDATA:syslog_message}" ]
}
}
As you can probably tell I havent dealt with the timestamp yet at all. Some help would be appreciated.