Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

Commit 05c7ec7

Browse files
committed
chore: run metricbeat with same log level than the program
1 parent 7882cd5 commit 05c7ec7

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

cli/config/compose/services/metricbeat/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ services:
33
metricbeat:
44
command: [
55
"metricbeat", "-e",
6+
"-E", "logging.level=${logLevel}",
67
"-E", "setup.ilm.rollover_alias=${indexName}",
78
"-E", "output.elasticsearch.hosts=http://elasticsearch:9200",
89
"-E", "output.elasticsearch.password=p4ssw0rd",

e2e/metricbeat_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ func (mts *MetricbeatTestSuite) runMetricbeatService() error {
260260
env := map[string]string{
261261
"BEAT_STRICT_PERMS": "false",
262262
"indexName": mts.getIndexName(),
263+
"logLevel": log.GetLevel().String(),
263264
"metricbeatConfigFile": mts.configurationFile,
264265
"metricbeatTag": mts.Version,
265266
"stackVersion": stackVersion,

0 commit comments

Comments
 (0)