From a68567b1ce235c7c96a1d53d3a52e0622c25ee25 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Fri, 5 Nov 2021 13:08:11 +0100 Subject: [PATCH] Deprecate generating custom Beats (#28814) (#28838) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 0f989b8dbc6e622f5b5e0124e7c56a82fcd829bb) Co-authored-by: Noémi Ványi --- 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 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] 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 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") 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.