Template indexing issue

In that case, I tried the same by replacing the template name with metricbeat-* and filebeat-*. (to index logs on daily basis). So we noticed that when the logs are being generated for the next day it didn't index and stopped getting the data. Not sure what went wrong