#!/bin/bash

# clean graphite logs that are not totated like it should
export GRAPHITE_DAYS=6
export GRAPHITE_LOG_DIR=/opt/graphite/storage/log/carbon-cache
find $GRAPHITE_LOG_DIR  -name "*.log*" -type f -mtime +$GRAPHITE_DAYS | xargs /bin/rm -f


