Skip to content

Commit

Permalink
Remove functionbeat
Browse files Browse the repository at this point in the history
This PR is a manual backport of #41506 removing functionbeat.
Relates #40745
  • Loading branch information
dliappis committed Mar 6, 2025
1 parent 3d83df1 commit 316f3bc
Show file tree
Hide file tree
Showing 131 changed files with 4 additions and 29,461 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/check-xpack-functionbeat.yml

This file was deleted.

10 changes: 0 additions & 10 deletions .github/workflows/updatecli.d/bump-golang-7.17.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,16 +157,6 @@ targets:
keyword: "FROM"
matcher: "golang"
file: ./packetbeat/Dockerfile
update-functionbeat-dockerfile:
name: "Update Functionbeat Dockerfile"
sourceid: latestGoVersion
scmid: githubConfig
kind: dockerfile
spec:
instruction:
keyword: "FROM"
matcher: "golang"
file: ./x-pack/functionbeat/Dockerfile
update-nats-module-dockerfile:
name: "Update NATS module Dockerfile"
sourceid: latestGoVersion
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/updatecli.d/bump-golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,16 +166,6 @@ targets:
keyword: "FROM"
matcher: "golang"
file: ./packetbeat/Dockerfile
update-functionbeat-dockerfile:
name: "Update Functionbeat Dockerfile"
sourceid: latestGoVersion
scmid: githubConfig
kind: dockerfile
spec:
instruction:
keyword: "FROM"
matcher: "golang"
file: ./x-pack/functionbeat/Dockerfile
update-nats-module-dockerfile:
name: "Update NATS module Dockerfile"
sourceid: latestGoVersion
Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*beat/logs
*beat/data
**/ironbank/build/
x-pack/functionbeat/pkg

# Files
.DS_Store
Expand All @@ -24,8 +23,6 @@ beat.db
*.keystore
go_env.properties
mage_output_file.go
x-pack/functionbeat/*/fields.yml
x-pack/functionbeat/provider/*/functionbeat-*
x-pack/dockerlogbeat/temproot.tar

# Editor swap files
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ otherwise no tag is added. {issue}42208[42208] {pull}42403[42403]

*Functionbeat*

- Removal of functionbeat binaries from CI pipelines {issue}40745[40745] {pull}TODO[TODO]

*Elastic Logging Plugin*

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BUILD_DIR=$(CURDIR)/build
COVERAGE_DIR=$(BUILD_DIR)/coverage
BEATS?=auditbeat filebeat heartbeat metricbeat packetbeat winlogbeat x-pack/agentbeat x-pack/auditbeat x-pack/dockerlogbeat x-pack/filebeat x-pack/functionbeat x-pack/heartbeat x-pack/metricbeat x-pack/osquerybeat x-pack/packetbeat x-pack/winlogbeat
BEATS?=auditbeat filebeat heartbeat metricbeat packetbeat winlogbeat x-pack/agentbeat x-pack/auditbeat x-pack/dockerlogbeat x-pack/filebeat x-pack/heartbeat x-pack/metricbeat x-pack/osquerybeat x-pack/packetbeat x-pack/winlogbeat
PROJECTS=libbeat x-pack/libbeat $(BEATS)
PROJECTS_ENV=libbeat filebeat metricbeat
PYTHON_ENV?=$(BUILD_DIR)/python-env
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ Beat | Description
--- | ---
[Auditbeat](https://github.com/elastic/beats/tree/main/auditbeat) | Collect your Linux audit framework data and monitor the integrity of your files.
[Filebeat](https://github.com/elastic/beats/tree/main/filebeat) | Tails and ships log files
[Functionbeat](https://github.com/elastic/beats/tree/main/x-pack/functionbeat) | Read and ships events from serverless infrastructure.
[Heartbeat](https://github.com/elastic/beats/tree/main/heartbeat) | Ping remote services for availability
[Metricbeat](https://github.com/elastic/beats/tree/main/metricbeat) | Fetches sets of metrics from the operating system and services
[Packetbeat](https://github.com/elastic/beats/tree/main/packetbeat) | Monitors the network and applications by sniffing packets
Expand Down
1 change: 0 additions & 1 deletion dev-tools/cmd/update_go/update_go_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ var files = []string{
"libbeat/docs/version.asciidoc",
"metricbeat/Dockerfile",
"metricbeat/module/http/_meta/Dockerfile",
"x-pack/functionbeat/Dockerfile",
"x-pack/libbeat/Dockerfile",
}

Expand Down
3 changes: 1 addition & 2 deletions docs/devguide/documentation.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ doc collector scripts to regenerate the docs.
Make sure you
<<setting-up-dev-environment,set up your Beats development environment>> and use
the correct Go version. The Go version is listed in the `version.asciidoc` file
for the branch you want to update.
for the branch you want to update.

To run the docs collector scripts, change to the beats directory and run:

Expand Down Expand Up @@ -108,7 +108,6 @@ generates

* `auditbeat/docs/fields.asciidoc`
* `filebeat/docs/fields.asciidoc`
* `functionbeat/docs/fields.asciidoc`
* `heartbeat/docs/fields.asciidoc`
* `metricbeat/docs/fields.asciidoc`
* `packetbeat/docs/fields.asciidoc`
Expand Down
140 changes: 1 addition & 139 deletions libbeat/docs/command-reference.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,6 @@ more information, see https://www.elastic.co/subscriptions and
[options="header"]
|=======================
|Commands |
ifeval::["{beatname_lc}"=="functionbeat"]
|<<deploy-command,`deploy`>> | {deploy-command-short-desc}.
endif::[]
ifdef::apm-server[]
|<<apikey-command,`apikey`>> |{apikey-command-short-desc}.
endif::[]
Expand All @@ -114,10 +111,6 @@ endif::[]
ifndef::serverless[]
|<<keystore-command,`keystore`>> |{keystore-command-short-desc}.
endif::[]
ifeval::["{beatname_lc}"=="functionbeat"]
|<<package-command,`package`>> |{package-command-short-desc}.
|<<remove-command,`remove`>> |{remove-command-short-desc}.
endif::[]
ifdef::has_modules_command[]
|<<modules-command,`modules`>> |{modules-command-short-desc}.
endif::[]
Expand All @@ -126,9 +119,6 @@ ifndef::serverless[]
endif::[]
|<<setup-command,`setup`>> |{setup-command-short-desc}.
|<<test-command,`test`>> |{test-command-short-desc}.
ifeval::["{beatname_lc}"=="functionbeat"]
|<<update-command,`update`>> |{update-command-short-desc}.
endif::[]
|<<version-command,`version`>> |{version-command-short-desc}.
|=======================

Expand Down Expand Up @@ -232,39 +222,6 @@ For more information, see <<api-key>>.

endif::[]

ifeval::["{beatname_lc}"=="functionbeat"]
[[deploy-command]]
==== `deploy` command

{deploy-command-short-desc}. Before deploying functions, make sure the user has
the credentials required by your cloud service provider.

*SYNOPSIS*

["source","sh",subs="attributes"]
----
{beatname_lc} deploy FUNCTION_NAME [FLAGS]
----

*`FUNCTION_NAME`*::
Specifies the name of the function to deploy.

*FLAGS*

*`-h, --help`*::
Shows help for the `deploy` command.

{global-flags}

*EXAMPLES*

["source","sh",subs="attributes"]
-----
{beatname_lc} deploy cloudwatch
{beatname_lc} deploy sqs
-----
endif::[]

[[export-command]]
==== `export` command

Expand Down Expand Up @@ -521,68 +478,6 @@ See <<keystore>> for more examples.

endif::[]

ifeval::["{beatname_lc}"=="functionbeat"]
[[package-command]]
==== `package` command

{package-command-short-desc}.

*SYNOPSIS*

["source","sh",subs="attributes"]
----
{beatname_lc} package [FLAGS]
----

*FLAGS*

*`-h, --help`*::
Shows help for the `package` command.

*`-o, --output`*::
Specifies the full path pattern to use when creating the packages.

{global-flags}

*EXAMPLES*

["source","sh",subs="attributes"]
-----
{beatname_lc} package --output /path/to/folder/package-{{.Provider}}.zip
-----

[[remove-command]]
==== `remove` command

{remove-command-short-desc}. Before removing functions, make sure the user has
the credentials required by your cloud service provider.

*SYNOPSIS*

["source","sh",subs="attributes"]
----
{beatname_lc} remove FUNCTION_NAME [FLAGS]
----

*`FUNCTION_NAME`*::
Specifies the name of the function to remove.

*FLAGS*

*`-h, --help`*::
Shows help for the `remove` command.

{global-flags}

*EXAMPLES*

["source","sh",subs="attributes"]
-----
{beatname_lc} remove cloudwatch
{beatname_lc} remove sqs
-----
endif::[]

ifdef::has_modules_command[]
[[modules-command]]
==== `modules` command
Expand Down Expand Up @@ -748,7 +643,7 @@ endif::[]

*`--system.hostfs MOUNT_POINT`*::

Specifies the mount point of the host's filesystem for use in monitoring a host.
Specifies the mount point of the host's filesystem for use in monitoring a host.
This flag is depricated, and an alternate hostfs should be specified via the `hostfs` module config value.


Expand Down Expand Up @@ -961,39 +856,6 @@ ifeval::["{beatname_lc}"=="metricbeat"]
-----
endif::[]

ifeval::["{beatname_lc}"=="functionbeat"]
[[update-command]]
==== `update` command

{update-command-short-desc}. Before updating functions, make sure the user has
the credentials required by your cloud service provider.

*SYNOPSIS*

["source","sh",subs="attributes"]
----
{beatname_lc} update FUNCTION_NAME [FLAGS]
----

*`FUNCTION_NAME`*::
Specifies the name of the function to update.

*FLAGS*

*`-h, --help`*::
Shows help for the `update` command.

{global-flags}

*EXAMPLES*

["source","sh",subs="attributes"]
-----
{beatname_lc} update cloudwatch
{beatname_lc} update sqs
-----
endif::[]

[[version-command]]
==== `version` command

Expand Down
1 change: 0 additions & 1 deletion libbeat/docs/overview.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ for capturing:
[horizontal]
Audit data:: https://www.elastic.co/products/beats/auditbeat[Auditbeat]
Log files and journals:: https://www.elastic.co/products/beats/filebeat[Filebeat]
Cloud data:: https://www.elastic.co/products/beats/functionbeat[Functionbeat]
Availability:: https://www.elastic.co/products/beats/heartbeat[Heartbeat]
Metrics:: https://www.elastic.co/products/beats/metricbeat[Metricbeat]
Network traffic:: https://www.elastic.co/products/beats/packetbeat[Packetbeat]
Expand Down
Loading

0 comments on commit 316f3bc

Please sign in to comment.