From 18c6a69090a843c5830a5b620cfe1a09aeb2c1e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9mi=20V=C3=A1nyi?= Date: Thu, 4 Nov 2021 17:18:21 +0100 Subject: [PATCH 1/4] deprecate generating custom beats --- generator/common/beatgen/beatgen.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/generator/common/beatgen/beatgen.go b/generator/common/beatgen/beatgen.go index c16b1e309ae..48c83958278 100644 --- a/generator/common/beatgen/beatgen.go +++ b/generator/common/beatgen/beatgen.go @@ -92,6 +92,8 @@ var configList = []ConfigItem{ // Generate generates a new custom beat func Generate() error { + fmt.Println("Generating custom Beats are going to be removed in 8.0.0.") + cfg, err := getConfig() if err != nil { return errors.Wrap(err, "error getting config") From 67ca9750603451056cd7453183e84743a2996c75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9mi=20V=C3=A1nyi?= Date: Thu, 4 Nov 2021 17:21:39 +0100 Subject: [PATCH 2/4] add changelog entry --- CHANGELOG-developer.next.asciidoc | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG-developer.next.asciidoc b/CHANGELOG-developer.next.asciidoc index a7b11ddc2d1..d56d47d5877 100644 --- a/CHANGELOG-developer.next.asciidoc +++ b/CHANGELOG-developer.next.asciidoc @@ -129,3 +129,4 @@ The list below covers the major changes between 7.0.0-rc2 and master only. ==== Deprecated - Deprecated the `common.Float` type. {issue}28279[28279] {pull}28280[28280] +- Deprecate Beat generators. {pull}28814[28814] From 117cfafb4b8211f677cd5fd24f7917eeb08be1d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9mi=20V=C3=A1nyi?= Date: Thu, 4 Nov 2021 17:23:49 +0100 Subject: [PATCH 3/4] add deprecation warning to docs --- docs/devguide/creating-beat-from-metricbeat.asciidoc | 2 ++ docs/devguide/newbeat.asciidoc | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docs/devguide/creating-beat-from-metricbeat.asciidoc b/docs/devguide/creating-beat-from-metricbeat.asciidoc index 0dbf0e0cbca..aef9e24de94 100644 --- a/docs/devguide/creating-beat-from-metricbeat.asciidoc +++ b/docs/devguide/creating-beat-from-metricbeat.asciidoc @@ -1,6 +1,8 @@ [[creating-beat-from-metricbeat]] === Creating a Beat based on Metricbeat +deprecated:[7.16.0] + The metricset Beat generator enables you to create a Beat that uses Metricbeat as a library and has your own metricsets. diff --git a/docs/devguide/newbeat.asciidoc b/docs/devguide/newbeat.asciidoc index 956183d453b..e5fc685a31d 100644 --- a/docs/devguide/newbeat.asciidoc +++ b/docs/devguide/newbeat.asciidoc @@ -1,6 +1,8 @@ [[new-beat]] == Creating a New Beat +deprecated:[7.16.0] + This guide walks you through the steps for creating a new Elastic Beat. The Beats are a collection of lightweight daemons that collect operational data from your servers and ship it to Elasticsearch or Logstash. The common parts for From 600882aca7900dd8a1c386089f145bddc00ea746 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9mi=20V=C3=A1nyi?= Date: Thu, 4 Nov 2021 17:51:18 +0100 Subject: [PATCH 4/4] deprecation note --- libbeat/docs/communitybeats.asciidoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libbeat/docs/communitybeats.asciidoc b/libbeat/docs/communitybeats.asciidoc index 930717c94f8..ded8e728247 100644 --- a/libbeat/docs/communitybeats.asciidoc +++ b/libbeat/docs/communitybeats.asciidoc @@ -6,6 +6,8 @@ [[community-beats]] == Community Beats +Please note that generating new Beats is deprecated since 7.16. + The open source community has been hard at work developing new Beats. You can check out some of them here.