Hi,
I am trying to get the day of the week(Sun,Mon..) from the timestamp field in the log with the below code:
ruby {
code => 'event.set("day_of_week", event.get('@timestamp').time.strftime '%a')'
}
But getting " ERROR logstash.agent - fetched an invalid config".
Please suggest.