Skip to content

Commit 9acf2f8

Browse files
committed
disable gzip for log input running as filestream
1 parent 28bd071 commit 9acf2f8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

filebeat/input/logv2/convert.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,12 @@ func convertConfig(logger *logp.Logger, cfg *config.C) (*config.C, error) {
163163
return nil, fmt.Errorf("cannot set 'take_over.enabled': %w", err)
164164
}
165165

166+
// disable GZIP decompression, log input does not support it, and it only
167+
// works with file identity fingerprint
168+
if err := newCfg.SetBool("gzip_disabled", -1, true); err != nil {
169+
return nil, fmt.Errorf("cannot set 'gzip_disabled': %w", err)
170+
}
171+
166172
return newCfg, nil
167173
}
168174

0 commit comments

Comments
 (0)