Python script to delete indices older than a set number of days or hours

Description

Technically, this is more of an ES script, but it has been designed to work with logstash and the default 1 index per day created.

This requires the pyes module. After configuring the variables in the script (decided it was easier this way for the sake of cron) just run the script and it will purge all indices older than the specified number of days using the ES API.

Environment

None

Status

Assignee

Jordan Sissel

Reporter

Aaron Mildenstein

Priority