Skip to content

Commit c1cfeb6

Browse files
feat: enable compression by default (#87)
1 parent 82530ed commit c1cfeb6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Configuration options for fluent.conf are:
3434
* `proxy_uri` - Add the `uri` of the `proxy` environment if present.
3535
* `metric_data_format` - The format of metrics you will be sending, either `graphite` or `carbon2` or `prometheus` (Default is `graphite `)
3636
* `disable_cookies` - Option to disable cookies on the HTTP Client. (Default is `false `)
37-
* `compress` - Option to enable compression (default `false`)
37+
* `compress` - Option to enable compression (default `true`)
3838
* `compress_encoding` - Compression encoding format, either `gzip` or `deflate` (default `gzip`)
3939
* `custom_fields` - Comma-separated key=value list of fields to apply to every log. [more information](https://help.sumologic.com/Manage/Fields#http-source-fields)
4040
* `custom_dimensions` - Comma-separated key=value list of dimensions to apply to every metric. [more information](https://help.sumologic.com/03Send-Data/Sources/02Sources-for-Hosted-Collectors/HTTP-Source/Upload-Metrics-to-an-HTTP-Source#supported-http-headers)

lib/fluent/plugin/out_sumologic.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class Fluent::Plugin::Sumologic < Fluent::Plugin::Output
172172
desc 'Name of sumo client which is send as X-Sumo-Client header'
173173
config_param :sumo_client, :string, :default => 'fluentd-output'
174174
desc 'Compress payload'
175-
config_param :compress, :bool, :default => false
175+
config_param :compress, :bool, :default => true
176176
desc 'Encoding method of compresssion (either gzip or deflate)'
177177
config_param :compress_encoding, :string, :default => SumologicConnection::COMPRESS_GZIP
178178
# https://help.sumologic.com/03Send-Data/Sources/02Sources-for-Hosted-Collectors/HTTP-Source/Upload-Metrics-to-an-HTTP-Source#supported-http-headers

0 commit comments

Comments
 (0)