Delete logs in ElasticSearch after certain period

Ok. You can have a look at Curator (https://www.elastic.co/guide/en/elasticsearch/client/curator/5.0/index.html).