# lightweight-curator **Repository Path**: mirrors_openshift/lightweight-curator ## Basic Information - **Project Name**: lightweight-curator - **Description**: Lightweight job to delete old Elasticsearch indices from logging based on percentage - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-12-03 - **Last Updated**: 2026-02-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Lightweight Curator for Elasticsearch Simplistic cousin of [Elasticsearch curator](https://github.com/elastic/curator), created for one purpose only: Delete log indices created by fluentd which are above threshold of 80% calculated from total disk size. ## Prerequisite - OpenShift user is able to create pods in *openshift-logging* namespace. ## Deployment ### Comand-line options Dry_run prints the list of indices which would be passed onto deletion process, but do not execute. -d --debug -v --verbose -n --dry_run ### Manually running script for development purposes Result of running following commands would be newly created *lightweight-curator* pod in *openshift-logging* namespace. From within this pod you can run *lightweight_curator.py* script. $ oc apply src/cronjob.yaml -n openshift-logging $ oc rsh deploy/lightweight-curator /bin/bash $ python /home/lightweight_curator.py