File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -83,8 +83,9 @@ var libbeatConfigOverrides = func() []cfgfile.ConditionalOverride {
83
83
return common .MustNewConfigFrom (map [string ]interface {}{
84
84
"output" : map [string ]interface {}{
85
85
"elasticsearch" : map [string ]interface {}{
86
- "worker" : cloudMatrix [cap ].worker ,
87
- "bulk_max_size" : cloudMatrix [cap ].bulkMaxSize ,
86
+ "compression_level" : 5 , //default to medium compression on cloud
87
+ "worker" : cloudMatrix [cap ].worker ,
88
+ "bulk_max_size" : cloudMatrix [cap ].bulkMaxSize ,
88
89
},
89
90
},
90
91
"queue" : map [string ]interface {}{
Original file line number Diff line number Diff line change @@ -45,6 +45,10 @@ func TestCloudEnv(t *testing.T) {
45
45
require .NoError (t , err )
46
46
assert .Equal (t , int64 (5 ), workers )
47
47
48
+ compression , err := cfg .Int ("output.elasticsearch.compression_level" , - 1 )
49
+ require .NoError (t , err )
50
+ assert .Equal (t , int64 (5 ), compression )
51
+
48
52
// bad cloud environment value
49
53
os .Setenv (cloudEnv , "123" )
50
54
settings = DefaultSettings ()
You can’t perform that action at this time.
0 commit comments