Deleting old Marvel Indices

Deleting old Marvel Indices

Last updated:

Depending on how you use Elasticsearch and Marvel, you may find out that Marvel itself is collecting so much data for statistics that it's eclipsing the actual data you want to store on Elasticsearch.

You have a few approaches to handle that:

Deleting old indices by hand

Marvel names its indices quite nicely (one for each day) so it's easy to delete only those that you don't need anymore.

The following command (executed from Sense) will delete all Marvel indices for September/2015:

delete old indices You can use wildcards like "" to delete many indices in one hit*

Preventing Marvel from collecting data altogether

You will still be able to use Sense

Set the following config option on elasticsearch.yml config file:

# disable from from collecting
# statistics data altogether
marvel.agent.enable: false

References