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}" uri="http://localhost:9200" includeAllProperties ="true"> </target>
I tried add index like this :
index = "logstash-${date:format=xxxx.ww}"
But nothing happened.