Elasticsearch input plugin index date

I was thinking that might be the case. would you just query indexname-{now/d-1d{YYY.MM.dd}}?