How to Create a weekly index from filebeat and daily for Metricbeat

See this - [Solved] Weekly indexes instead of daily