Tweak logstash expiry
authorTom Hughes <tom@compton.nu>
Thu, 30 Jul 2015 07:16:36 +0000 (08:16 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 30 Jul 2015 07:16:36 +0000 (08:16 +0100)
cookbooks/logstash/templates/default/expire.erb

index fcfd85af53a3252678e3bbd03f8199ec9c2aadb8..582351933d1b0a76bf4692bf16c02c6e3c534dc7 100644 (file)
@@ -2,6 +2,6 @@
 
 # DO NOT EDIT - This file is being maintained by Chef
 
-D=$(date --date="4 days ago" +"%Y.%m.%d")
+D=$(date --date="3 days ago" +"%Y.%m.%d")
 
-curl -XDELETE "http://localhost:9200/logstash-${D}"
+curl -s -XDELETE "http://localhost:9200/logstash-${D}"