Created
July 22, 2014 14:43
-
-
Save untergeek/e7e96b82d9a1c6063025 to your computer and use it in GitHub Desktop.
curator script info
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 2 * * * ~/bin/curator.sh &> /dev/null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Fast return | |
## Logstash | |
/usr/local/bin/curator -l /var/log/curator/curator.log delete --older-than 15 | |
/usr/local/bin/curator -l /var/log/curator/curator.log close --older-than 14 | |
/usr/local/bin/curator -l /var/log/curator/curator.log bloom --older-than 1 | |
/usr/local/bin/curator -l /var/log/curator/curator.log snapshot --delete-older-than 30 --repository Untergeek | |
## Marvel | |
/usr/local/bin/curator -l /var/log/curator/curator.log delete --older-than 15 --prefix .marvel- | |
/usr/local/bin/curator -l /var/log/curator/curator.log close --older-than 14 --prefix .marvel- | |
/usr/local/bin/curator -l /var/log/curator/curator.log bloom --older-than 1 --prefix .marvel- | |
/usr/local/bin/curator -l /var/log/curator/curator.log snapshot --delete-older-than 30 --repository Untergeek --prefix .marvel- | |
# Slow return | |
## Logstash | |
/usr/local/bin/curator -l /var/log/curator/curator.log optimize --older-than 1 --max_num_segments 1 | |
/usr/local/bin/curator -l /var/log/curator/curator.log snapshot --older-than 2 --repository Untergeek | |
## Marvel | |
/usr/local/bin/curator -l /var/log/curator/curator.log optimize --older-than 1 --max_num_segments 1 --prefix .marvel- | |
/usr/local/bin/curator -l /var/log/curator/curator.log snapshot --older-than 2 --repository Untergeek --prefix .marvel- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment