Index format change daily to weekly

Hi ,

I am currently send logs from NLog to ElasticSearch.
So , my index format default seems like this - > " logstash-yyyy.MM.dd"
I want to change to weekly ,

My Nlog config file like this:

  <target xsi:type="ElasticSearch" 
          index = "logstash-${date:format=yyyy.MM.dd}"
          layout="${logger} | ${threadid} | ${message}" 
          includeAllProperties ="true">

I tried add index like this :

index = "logstash-${date:format=xxxx.ww}"

But nothing happened.

This seems like an nlog problem not translating that time format, I am not sure if we can help here sorry!

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