Skip to content

Commit

Permalink
[7.16](backport #28814) Deprecate generating custom Beats (#28837)
Browse files Browse the repository at this point in the history
* Deprecate generating custom Beats (#28814)

(cherry picked from commit 0f989b8)

* Based on origin/7.16

Co-authored-by: Noémi Ványi <kvch@users.noreply.github.com>
Co-authored-by: Noémi Ványi <sitbackandwait@gmail.com>
  • Loading branch information
3 people authored Nov 5, 2021
1 parent c958550 commit 8fbebba
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG-developer.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,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]
2 changes: 2 additions & 0 deletions docs/devguide/creating-beat-from-metricbeat.asciidoc
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 2 additions & 0 deletions docs/devguide/newbeat.asciidoc
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion generator/common/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ prepare-test:: mage
export NEWBEAT_FULL_NAME="Nicolas Ruflin" ; \
export NEWBEAT_TYPE=${BEAT_TYPE} ; \
export NEWBEAT_DEV=1 ; \
export NEWBEAT_BEATS_REVISION=$(shell git rev-parse origin/master) ; \
export NEWBEAT_BEATS_REVISION=$(shell git rev-parse origin/7.16) ; \
mage GenerateCustomBeat

# Runs test build for the created beat
Expand Down
2 changes: 2 additions & 0 deletions generator/common/beatgen/beatgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 2 additions & 0 deletions libbeat/docs/communitybeats.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 8fbebba

Please sign in to comment.