Hi,
I'm calculating the calenderweek with this:
| eval calenderweek=strftime(_time,"%Y-%V")
For some reason for 2017-01-01, the calenderweek is 2017-52, any ideas why?
Date -> Calenderweek
2017-01-03 -> 2017-01
2017-01-02 -> 2017-01
2017-01-01 -> 2017-52
2016-12-31 -> 2016-52
2017-12-30 -> 2016-52
Thanks in advance,
Heinz
Think I got it myself...
I'm calculating year & week separately. Better approach would be
| eval week=relative_time(_time,"@w1")
| eval week=strftime(week,"%Y-%m-%d")
Think I got it myself...
I'm calculating year & week separately. Better approach would be
| eval week=relative_time(_time,"@w1")
| eval week=strftime(week,"%Y-%m-%d")