From fd3cac566cf782d1cebd6c69a4e09c460d484f6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9mi=20V=C3=A1nyi?= Date: Fri, 5 Nov 2021 11:58:13 +0100 Subject: [PATCH] Deprecate generating custom Beats (#28814) (cherry picked from commit 0f989b8dbc6e622f5b5e0124e7c56a82fcd829bb) --- CHANGELOG-developer.next.asciidoc | 1 + docs/devguide/creating-beat-from-metricbeat.asciidoc | 2 ++ docs/devguide/newbeat.asciidoc | 2 ++ generator/common/beatgen/beatgen.go | 2 ++ libbeat/docs/communitybeats.asciidoc | 2 ++ 5 files changed, 9 insertions(+) diff --git a/CHANGELOG-developer.next.asciidoc b/CHANGELOG-developer.next.asciidoc index a7b11ddc2d1d..d56d47d5877e 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] diff --git a/docs/devguide/creating-beat-from-metricbeat.asciidoc b/docs/devguide/creating-beat-from-metricbeat.asciidoc index 0dbf0e0cbcac..aef9e24de943 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 956183d453b2..e5fc685a31d8 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 diff --git a/generator/common/beatgen/beatgen.go b/generator/common/beatgen/beatgen.go index c16b1e309ae7..48c83958278e 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") diff --git a/libbeat/docs/communitybeats.asciidoc b/libbeat/docs/communitybeats.asciidoc index 930717c94f85..ded8e7282477 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.