Index Name pattern

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.

According to http://www.joda.org/joda-time/key_format.html it's "w" and not "W".

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.

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