From 2682ec8d334cc75690c54160b4976bc65007e122 Mon Sep 17 00:00:00 2001 From: Pier-Hugues Pellerin Date: Mon, 13 Jul 2020 09:57:48 -0400 Subject: [PATCH] [Elastic Agent] Remove support for "logs" and only support logfile (#19761) * [Elastic Agent] Remove support for "logs" and only support logfile We want to move away from logs to `logfile` Reference: https://github.com/elastic/package-registry/issues/517 * Changelog --- x-pack/elastic-agent/CHANGELOG.asciidoc | 1 + x-pack/elastic-agent/pkg/agent/application/managed_mode_test.go | 2 +- x-pack/elastic-agent/pkg/agent/program/supported.go | 2 +- x-pack/elastic-agent/spec/filebeat.yml | 1 - 4 files changed, 3 insertions(+), 3 deletions(-) diff --git a/x-pack/elastic-agent/CHANGELOG.asciidoc b/x-pack/elastic-agent/CHANGELOG.asciidoc index a11165e2890..8bd232f20de 100644 --- a/x-pack/elastic-agent/CHANGELOG.asciidoc +++ b/x-pack/elastic-agent/CHANGELOG.asciidoc @@ -46,6 +46,7 @@ - Fix install service script for windows {pull}18814[18814] - Properly stops subprocess on shutdown {pull}19567[19567] - Forward revision number of the configuration to the endpoint. {pull}19759[19759] +- Remove support for logs type and use logfile {pull}19761[19761] ==== New features diff --git a/x-pack/elastic-agent/pkg/agent/application/managed_mode_test.go b/x-pack/elastic-agent/pkg/agent/application/managed_mode_test.go index f614bb5afff..4f7317aaebb 100644 --- a/x-pack/elastic-agent/pkg/agent/application/managed_mode_test.go +++ b/x-pack/elastic-agent/pkg/agent/application/managed_mode_test.go @@ -240,7 +240,7 @@ const fleetResponse = ` ] }, { - "type": "logs", + "type": "logfile", "enabled": true, "streams": [{ "id": "logs-system.auth", diff --git a/x-pack/elastic-agent/pkg/agent/program/supported.go b/x-pack/elastic-agent/pkg/agent/program/supported.go index 46175c0c64e..eaffca93015 100644 --- a/x-pack/elastic-agent/pkg/agent/program/supported.go +++ b/x-pack/elastic-agent/pkg/agent/program/supported.go @@ -20,7 +20,7 @@ func init() { // spec/endpoint.yml // spec/filebeat.yml // spec/metricbeat.yml -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fYnUSXwHexBO6calKrJsWkAj+aO4sCkVSAc5VYCShW3DbgBMF7ZBSVRtcJhB2SzklvRaF5ti6EVt9G8OJqhzJJ66KjnM+o0oqxh4bTGZj8f6cTV8aZkqWdMDaJNc1yoZcktWQuIikUuC+ZMdAO4Asuc582+D12SfyXXhv+6T9aWMQK/FZ7sKEmuxdkI3HM2u/pYt8UsTyuFNCB0sGluuBeUMUA1B3ZfQAxMNjGwT1RdDi3AyhMHqBKundI86gWuB9Eu3zo4qHTuMNzP94oru3gPCFF5exZe7ensNFP+eDebfwA9n4BGIyQEuEfmfgJ07dm3MwfN+L3vk5JZ02FTkmsYSu4tH3z3mPWwVDV1cehAs8/VdngZgWNGlne2WlFJwOXAreUIjHogG9zRCC5/yo/+DjOKaSNwfzA0vmvYxBIHAdMNVyinJO0HjA+adKXzjGRfvy9Ap2PW0+6HjeiPbV6/E4jRRgBprFy7oljItTf9/wDZC3SNr+eP9vJbO7T9eZEdD+9j1P40Zzzuk2D4/UkLYA2YjeGtG0BGa29NWOu3Hvhu0GCmK4A2MQmqmOw+zONeJwAyRnY1uXK1WQ/6Tz8Bh4P3fgZK777X+aPgt4+XHviwDSiyGz9G8WrzfxeTKNWxWqgBUCx/M+T/FGSxEUP8UNdHfXShPhpY+x75M8A27s+ffzf2nRLdQ+1K1+Jn0Dbyp/0yqKnH3wVuLay1kF81sPZjcPvvn/4XAAD//8d4/Os=") SupportedMap = make(map[string]Spec) for f, v := range unpacked { diff --git a/x-pack/elastic-agent/spec/filebeat.yml b/x-pack/elastic-agent/spec/filebeat.yml index 81c82e276ae..f9dc8bb4507 100644 --- a/x-pack/elastic-agent/spec/filebeat.yml +++ b/x-pack/elastic-agent/spec/filebeat.yml @@ -38,7 +38,6 @@ rules: - translate: path: type mapper: - logs: log logfile: log event/file: log event/stdin: stdin