Error reading compressed journal while streaming: gzip data truncated, provider=StdinGzDataProvider" error is because one or more archived journal.gz is corrupted.
If splunk suffers crash or an unclean shutdown (power loss, hardware failure, OS failure, etc) then some buckets can be left in a bad state where not all data is searchable. If bucket is corrupted locally on indexer, then archived bucket will also be corrupted.
Local splunk buckets can be fixed by following these instructions : http://docs.splunk.com/Documentation/Splunk/6.5.0/Indexer/Bucketissues
Currently there is no way to fix corrupted journal.gz that are archived.
There is fix so that search reads data from corrupted journal till it hits corrupted part of the journal. Error message will be logged in search.log suggesting that particular journal is corrupted.Also, with this fix, search will continue after reading corrupt journal, instead of stopping at corrupt journal.
The fix is available in latest maintenance versions 6.3.9 onward, 6.4.6 onward and 6.5.3 onward. The fix will be included in next major release. You need to upgrade your SH to apply the fix.
... View more