I am trying to give a name to my index, surprisingly the supported pattern is not working as well.
When I give the name in format appName-%{+YYYY.MM} - This works
When I try to append the week of the year by using appName-%{+YYYY.MM.W} - This does not works and logstash logs throws error "Illegal pattern component: W"
Please help.
Thanks Magnus! That worked.
Pardon my limited knowledge for this. What is this Joda pattern, I referred to the logstash date patterns and that had "W"
https://www.elastic.co/guide/en/logstash/current/plugins-filters-date.html
No, that page actually says "w". Look carefully.
Joda-Time is the underlying date parsing library that Logstash uses.