#!/bin/bash
#es_index_delete.sh
LAST_DATA=`date -d "-5 days" "+%Y.%m.%d"`
curl -u elastic:Yang18659250927  -XDELETE http://127.0.0.1:9200/*-${LAST_DATA}
