Automatically delete 1 month old records/documents(without deleting index) in elastic search/kibana

When i try to create time based index for filebeats,it says "unable to fetch mapping , do you have indices matching that pattern". However the normal index is getting created when i type in filebeat-*.
Can anybody please tell what's wrong here!

Capture