Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.

Commit 20d1a46

Browse files
author
Chris Wiechmann
committed
Added new parameter: FILEBEAT_COMPRESSION_LEVEL
#143
1 parent 5d64a88 commit 20d1a46

File tree

7 files changed

+19
-1
lines changed

7 files changed

+19
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77
## [Unreleased]
88
### Added
99
- Traffic-Monitor Authorization should support Multi-Organization [#141](https://github.com/Axway-API-Management-Plus/apigateway-openlogging-elk/issues/141)
10+
- New optional parameter: `FILEBEAT_COMPRESSION_LEVEL` for Filebeat to Logstash compression rate [#143](https://github.com/Axway-API-Management-Plus/apigateway-openlogging-elk/issues/143)
1011

1112
## [3.4.0] 2021-09-02
1213
### Fixed

UPDATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ On the other hand, the API builder Docker image, as a central component of the s
5656
| 3.3.1 | [X](#api-builderlogstashmemcached) | - | - | - | - | - | [X](#parameters)|- | 7.12.1 | |
5757
| 3.3.2 | [X](#api-builderlogstashmemcached) | - | - | - | - | - | - |- | 7.12.1 | |
5858
| 3.4.0 | [X](#api-builderlogstashmemcached) | [X](#api-builderlogstashmemcached) | - | - | - | [X](#dashboards)| [X](#parameters)|[X](#elastic-config)| 7.14.0 | |
59-
| 3.5.0 | [X](#api-builderlogstashmemcached) | - | - | - | - | - | - |- | 7.14.0 |Unreleased |
59+
| 3.5.0 | [X](#api-builderlogstashmemcached) | - | - | - | - | - | [X](#parameters)|- | 7.14.0 |Unreleased |
6060

6161
### Update from Version 1.0.0
6262

env-sample

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,14 @@ ELASTIC_VERSION=7.14.0
378378
# Defaults to false.
379379
# DISABLE_SETUP_FLOWS=true
380380

381+
# ----------------------------------------------------------------------------------------------
382+
# The gzip compression level. Setting this value to 0 disables compression. The compression level
383+
# must be in the range of 1 (best speed) to 9 (best compression).
384+
# Increasing the compression level will reduce the network usage but will increase the CPU usage.
385+
# Used-By: Filebeat
386+
# Defaults to 3
387+
# FILEBEAT_COMPRESSION_LEVEL=6
388+
381389
################################################################################################
382390
# Metricbeat
383391
################################################################################################

filebeat/docker-compose.filebeat.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ services:
2222
- GATEWAY_REGION=${GATEWAY_REGION}
2323
- FILEBEAT_WORKER=${FILEBEAT_WORKER}
2424
- SELF_MONITORING_ENABLED=${SELF_MONITORING_ENABLED}
25+
- FILEBEAT_COMPRESSION_LEVEL=${FILEBEAT_COMPRESSION_LEVEL:3}
2526
ports:
2627
- 5066:5066
2728
volumes:

filebeat/filebeat.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ output.logstash:
7979
hosts: ${LOGSTASH_HOSTS}
8080
worker: ${FILEBEAT_WORKERS:2}
8181
bulk_max_size: ${FILEBEAT_BULK_MAX_SIZE:3072}
82+
compression_level: ${FILEBEAT_COMPRESSION_LEVEL:3}
8283
loadbalance: true
8384
# TTL is only required for a Kubernetes deployment
8485
# ttl: 2m

helm/templates/elasticApimFilebeat/filebeat-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,7 @@ data:
1414
ELASTICSEARCH_CLUSTER_UUID: {{ .Values.filebeat.elasticsearchClusterUUID | quote }}
1515
ELASTICSEARCH_CRT: {{ required "The path to the CA for Logstash to Elasticsearch communication is missing" .Values.global.elasticsearchCa | quote }}
1616
FILEBEAT_WORKER: {{ .Values.filebeat.filebeatWorker | quote }}
17+
FILEBEAT_COMPRESSION_LEVEL: {{ .Values.filebeat.compressionLevel | quote }}
1718
SELF_MONITORING_ENABLED: {{ .Values.global.selfMonitoringEnabled | quote }}
19+
1820
{{- end }}

helm/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,10 @@ filebeat:
495495
elasticsearchClusterUUID: ""
496496
# The number of Filebeat worker threads sending data to Logstash. See parameter: FILEBEAT_WORKER in env-sample
497497
filebeatWorker: 2
498+
# The gzip compression level. Setting this value to 0 disables compression. The compression level must be in the
499+
# range of 1 (best speed) to 9 (best compression). Increasing the compression level will reduce the network usage but will
500+
# increase the CPU usage.
501+
compressionLevel: 3
498502
# Injects the environment variables from the ConfigMaps and Secrets into the
499503
# Filebeat container. Specify your own ConfigMaps or Secrets if you don't
500504
# provide Configuration and Secrets as part of this values.yaml.
@@ -644,6 +648,7 @@ filebeat:
644648
hosts: ${LOGSTASH_HOSTS}
645649
worker: ${FILEBEAT_WORKERS:2}
646650
bulk_max_size: ${FILEBEAT_BULK_MAX_SIZE:3072}
651+
compression_level: ${FILEBEAT_COMPRESSION_LEVEL:3}
647652
loadbalance: true
648653
ttl: 2m
649654
# Required to make TTL working

0 commit comments

Comments
 (0)