I match events like
[Sun Jan 11 10:43:35 2015][3205.51466981] user idp : testing 10.234.22.220 (10.234.22.220) [61673782]
from
%{SYSLOG5424SD:timestamp}%{GREEDYDATA}user %{WORD:user} : testing %{HOST:ip}
This works, I see various fields in elasticsearch / kibana. In particular, the timestamp in the above example maps to [Sun Jan 11 10:43:35 2015]
Now I would like to use this match with date to have @timestamp right.
I tried using in filter
date { match => [ "timestamp", "SYSLOG5424SD" ] }
but this causes logstash to crash with the exit offering an error report file - I opened the ticket .
In the meantime, I tried explicitly matching the pattern with
date { match => [ "timestamp", "\[EEE MMM dd HH:mm:ss y\]" ] }
As you suspect - it never matches, @timestamp set at the time the event is logstash.
Can you identify the problem or is there a smart way to debug such cases?
source share