harvest only 7days old logs by default
diff --git a/cinder/files/heka.toml b/cinder/files/heka.toml
index e44a25e..8567c2b 100644
--- a/cinder/files/heka.toml
+++ b/cinder/files/heka.toml
@@ -5,6 +5,7 @@
file_match = 'cinder-scheduler\.log\.?(?P<Index>\d+)?(.gz)?'
priority = ["^Index"]
decoder = "openstack"
+oldest_duration: "168h"
[logstreamer_cinder_manage]
type = "LogstreamerInput"
@@ -12,6 +13,7 @@
file_match = 'cinder-manage\.log\.?(?P<Index>\d+)?(.gz)?'
priority = ["^Index"]
decoder = "openstack"
+oldest_duration: "168h"
{%- endif %}
{%- if pillar.cinder.volume is defined %}
@@ -21,6 +23,7 @@
file_match = 'cinder-volume\.log\.?(?P<Index>\d+)?(.gz)?'
priority = ["^Index"]
decoder = "openstack"
+oldest_duration: "168h"
{%- endif %}
[openstack]