From 8b281241d5f93538c87b5a81ff4a6e788df7b7e9 Mon Sep 17 00:00:00 2001 From: Pier-Hugues Pellerin Date: Wed, 29 Apr 2020 09:21:08 -0400 Subject: [PATCH] [Elatic Agent] Enable debug level logging for Metricbeat and Filebeat for Alpha (#17935) * Enable debug level logging for Metricbeat and Filebeat for Alpha * Changelog --- x-pack/elastic-agent/CHANGELOG.asciidoc | 1 + x-pack/elastic-agent/pkg/agent/program/supported.go | 2 +- x-pack/elastic-agent/spec/filebeat.yml | 2 +- x-pack/elastic-agent/spec/metricbeat.yml | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/x-pack/elastic-agent/CHANGELOG.asciidoc b/x-pack/elastic-agent/CHANGELOG.asciidoc index 545344ceb4a..57d32663d12 100644 --- a/x-pack/elastic-agent/CHANGELOG.asciidoc +++ b/x-pack/elastic-agent/CHANGELOG.asciidoc @@ -51,3 +51,4 @@ - Follow home path for all config files {pull}18161[18161] - Do not require unnecessary configuration {pull}18003[18003] - Use nested objects so fleet can handle metadata correctly {pull}18234[18234] +- Enable debug log level for Metricbeat and Filebeat when run under the Elastic Agent. {pull}17935[17935] diff --git a/x-pack/elastic-agent/pkg/agent/program/supported.go b/x-pack/elastic-agent/pkg/agent/program/supported.go index b8b5ddd3a40..ca70abd8771 100644 --- a/x-pack/elastic-agent/pkg/agent/program/supported.go +++ b/x-pack/elastic-agent/pkg/agent/program/supported.go @@ -19,7 +19,7 @@ func init() { // Packed Files // spec/filebeat.yml // spec/metricbeat.yml - unpacked := packer.MustUnpack("eJzsV1tzq7rZvv9+Rq6/6QYR0tKZdWHI5mSHLONEErqzJAewJczE2Bg6/e8dCRsfstbu3u30ptOLjB2Q3uPzvs/jvz3s6hX75aMUK7paNn/qpHj46wOVfkPetnkqxY6gWGR4Ps2AuXktXblER5FJWPBJXTDJ+9fSpVFp+lHZ5lGVCB7CdibFji5sQaVf0gBuviNS0DAR+sz92SoVFLu7DKdiJuE+Q/GOoLlDpL9j4L2ceZNy9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+/vE0LbmQC5ZOvtIG6WuofkeRuSht3kc/yHxIBtQowqcBMV/JLn3ND5oZ5Db02XWcksZOhcjuIG1QmJDL1fKPa6BGTlfIjhIogCV3wkmH4ky+Hz8EKkd0vq8srNfv754e//948AAAD//7sC+54=") SupportedMap = make(map[string]bool) for f, v := range unpacked { diff --git a/x-pack/elastic-agent/spec/filebeat.yml b/x-pack/elastic-agent/spec/filebeat.yml index 3c1adf7d7a9..0ed7bd422d4 100644 --- a/x-pack/elastic-agent/spec/filebeat.yml +++ b/x-pack/elastic-agent/spec/filebeat.yml @@ -1,6 +1,6 @@ name: Filebeat cmd: filebeat -args: ["-E", "setup.ilm.enabled=false", "-E", "setup.template.enabled=false", "-E", "management.mode=x-pack-fleet", "-E", "management.enabled=true"] +args: ["-E", "setup.ilm.enabled=false", "-E", "setup.template.enabled=false", "-E", "management.mode=x-pack-fleet", "-E", "management.enabled=true", "-E", "logging.level=debug"] configurable: grpc rules: - inject_index: diff --git a/x-pack/elastic-agent/spec/metricbeat.yml b/x-pack/elastic-agent/spec/metricbeat.yml index b9085c8fbb6..3dc7f6507d5 100644 --- a/x-pack/elastic-agent/spec/metricbeat.yml +++ b/x-pack/elastic-agent/spec/metricbeat.yml @@ -1,6 +1,6 @@ name: Metricbeat cmd: metricbeat -args: ["-E", "setup.ilm.enabled=false", "-E", "setup.template.enabled=false", "-E", "management.mode=x-pack-fleet", "-E", "management.enabled=true"] +args: ["-E", "setup.ilm.enabled=false", "-E", "setup.template.enabled=false", "-E", "management.mode=x-pack-fleet", "-E", "management.enabled=true", "-E", "logging.level=debug"] configurable: grpc post_install: - move_file: