DayOfWeek from log timestamp using logstash


My log looks like this: - - [05/Feb/2014:17:11:55 +0530] "GET /mySite/HomePage.asmx HTTP/1.1" 200 110 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.5 Safari/535.19"

I am trying to extract the 'dayOfWeek' information for each log event with the below filters but no success.

date {
match => [ "timestamp", "dd/MMM/YYYY:HH:mm:ss +0530" ]
ruby {
code => "event.set('dayOfWeek',event.get('timestamp').strftime(%a))"

Please suggest.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.