Skip to content

Commit

Permalink
Remove Journalbeat (#29131)
Browse files Browse the repository at this point in the history
Use journald input instead.

(cherry picked from commit af2eb73)
  • Loading branch information
kvch committed Nov 30, 2021
1 parent abff3d2 commit 3bd51f3
Show file tree
Hide file tree
Showing 87 changed files with 19 additions and 21,031 deletions.
5 changes: 0 additions & 5 deletions .ci/packaging.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ pipeline {
'auditbeat',
'filebeat',
'heartbeat',
'journalbeat',
'metricbeat',
'packetbeat',
'winlogbeat',
Expand All @@ -111,7 +110,6 @@ pipeline {
'x-pack/filebeat',
'x-pack/functionbeat',
'x-pack/heartbeat',
// 'x-pack/journalbeat',
'x-pack/metricbeat',
'x-pack/osquerybeat',
'x-pack/packetbeat',
Expand Down Expand Up @@ -199,7 +197,6 @@ pipeline {
'auditbeat',
'filebeat',
'heartbeat',
'journalbeat',
'metricbeat',
'packetbeat',
'x-pack/auditbeat',
Expand Down Expand Up @@ -277,8 +274,6 @@ def pushCIDockerImages(Map args = [:]) {
tagAndPush(beatName: 'filebeat', arch: arch)
} else if (env?.BEATS_FOLDER?.endsWith('heartbeat')) {
tagAndPush(beatName: 'heartbeat', arch: arch)
} else if ("${env.BEATS_FOLDER}" == "journalbeat"){
tagAndPush(beatName: 'journalbeat', arch: arch)
} else if (env?.BEATS_FOLDER?.endsWith('metricbeat')) {
tagAndPush(beatName: 'metricbeat', arch: arch)
} else if (env?.BEATS_FOLDER?.endsWith('osquerybeat')) {
Expand Down
20 changes: 8 additions & 12 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Enable IMDSv2 support for `add_cloud_metadata` processor on AWS. {issue}22101[22101] {pull}28285[28285]
- Load index templates v2 (composable index templates) by default when talking to ES 7.16 or ES 8.x. Please note that you cannot load templates into Elasticsearch 7.8 or older with this default. To load templates to these ES version, set `setup.template.type` back to `legacy`. {pull}28538[28538]
- Previously, RE2 and thus Golang had a bug where `(|a)*` matched more characters than `(|a)+`. To stay consistent with PCRE, the bug was fixed. Configurations that rely on the old, buggy behaviour has to be adjusted. See more about Golang bug: https://github.com/golang/go/issues/46123 {pull}27543[27543]
- Update docker client. {pull}28716[28716]
- Remove `auto` from the available options of `setup.ilm.enabled` and set the default value to `true`. {pull}28671[28671]
- add_process_metadata processor: Replace usage of deprecated `process.ppid` field with `process.parent.pid`. {pull}28620[28620]
- add_docker_metadata processor: Replace usage of deprecated `process.ppid` field with `process.parent.pid`. {pull}28620[28620]
- Index template's default_fields setting is only populated with ECS fields. {pull}28596[28596] {issue}28215[28215]
- Remove deprecated `--template` and `--ilm-policy` flags. Use `--index-management` instead. {pull}28870[28870]
- Remove options `logging.files.suffix` and default to datetime endings. {pull}28927[28927]
- Remove Journalbeat. Use `journald` input of Filebeat instead. {pull}29131[29131]

*Auditbeat*

Expand Down Expand Up @@ -54,11 +62,6 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Remove long deprecated `watch_poll` functionality. {pull}27166[27166]
- Change behavior in case of duplicate monitor IDs in configs to be last monitor wins. {pull}29041[29041]

*Journalbeat*

- Rename field `journald.process.capabilites` to `journald.process.capabilities` to fix spelling. {pull}28065[28065]
- Rename field `log.syslog.facility.name` to `log.syslog.facility.code` because the value is numeric rather than the facility name. {pull}28065[28065]

*Metricbeat*

- kubernetes.container.cpu.limit.cores and kubernetes.container.cpu.requests.cores are now floats. {issue}11975[11975]
Expand Down Expand Up @@ -183,9 +186,6 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Remove accidentally included cups library in docker images. {pull}28853[pull]
- Fix broken monitors with newer versions of image relying on dup3. {pull}28938[pull

*Journalbeat*


*Metricbeat*

- Fix checking tagsFilter using length in cloudwatch metricset. {pull}14525[14525]
Expand Down Expand Up @@ -317,8 +317,6 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Experimental 'run once' mode. {pull}25972[25972]
- Add `keyword` multi-field mapping for `synthetics.step.name`. {pull}28452[28452]

*Journalbeat*

*Metricbeat*

- Move the windows pdh implementation from perfmon to a shared location in order for future modules/metricsets to make use of. {pull}15503[15503]
Expand Down Expand Up @@ -360,8 +358,6 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d

*Heartbeat*

*Journalbeat*

*Metricbeat*


Expand Down
2 changes: 0 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,6 @@ def pushCIDockerImages(Map args = [:]) {
tagAndPush(beatName: 'filebeat', arch: arch)
} else if (beatsFolder.endsWith('heartbeat')) {
tagAndPush(beatName: 'heartbeat', arch: arch)
} else if ("${beatsFolder}" == "journalbeat"){
tagAndPush(beatName: 'journalbeat', arch: arch)
} else if (beatsFolder.endsWith('metricbeat')) {
tagAndPush(beatName: 'metricbeat', arch: arch)
} else if ("${beatsFolder}" == "packetbeat"){
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 journalbeat metricbeat packetbeat winlogbeat x-pack/functionbeat x-pack/elastic-agent x-pack/osquerybeat
BEATS?=auditbeat filebeat heartbeat metricbeat packetbeat winlogbeat x-pack/functionbeat x-pack/elastic-agent x-pack/osquerybeat
PROJECTS=libbeat $(BEATS)
PROJECTS_ENV=libbeat filebeat metricbeat
PYTHON_ENV?=$(BUILD_DIR)/python-env
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ Beat | Description
[Filebeat](https://github.com/elastic/beats/tree/master/filebeat) | Tails and ships log files
[Functionbeat](https://github.com/elastic/beats/tree/master/x-pack/functionbeat) | Read and ships events from serverless infrastructure.
[Heartbeat](https://github.com/elastic/beats/tree/master/heartbeat) | Ping remote services for availability
[Journalbeat](https://github.com/elastic/beats/tree/master/journalbeat) | Read and ships event from Journald.
[Metricbeat](https://github.com/elastic/beats/tree/master/metricbeat) | Fetches sets of metrics from the operating system and services
[Packetbeat](https://github.com/elastic/beats/tree/master/packetbeat) | Monitors the network and applications by sniffing packets
[Winlogbeat](https://github.com/elastic/beats/tree/master/winlogbeat) | Fetches and ships Windows Event logs
Expand All @@ -45,7 +44,6 @@ on the [elastic.co site](https://www.elastic.co/guide/):
* [Filebeat](https://www.elastic.co/guide/en/beats/filebeat/current/index.html)
* [Functionbeat](https://www.elastic.co/guide/en/beats/functionbeat/current/index.html)
* [Heartbeat](https://www.elastic.co/guide/en/beats/heartbeat/current/index.html)
* [Journalbeat](https://www.elastic.co/guide/en/beats/journalbeat/current/index.html)
* [Metricbeat](https://www.elastic.co/guide/en/beats/metricbeat/current/index.html)
* [Packetbeat](https://www.elastic.co/guide/en/beats/packetbeat/current/index.html)
* [Winlogbeat](https://www.elastic.co/guide/en/beats/winlogbeat/current/index.html)
Expand Down
2 changes: 1 addition & 1 deletion auditbeat/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func AuditbeatSettings() instance.Settings {
}
}

// Initialize initializes the entrypoint commands for journalbeat
// Initialize initializes the entrypoint commands for auditbeat
func Initialize(settings instance.Settings) *cmd.BeatsRootCmd {
create := beater.Creator(
beater.WithModuleOptions(
Expand Down
11 changes: 0 additions & 11 deletions deploy/docker/journalbeat.docker.yml

This file was deleted.

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 @@ -30,7 +30,6 @@ var files = []string{
"auditbeat/Dockerfile",
"filebeat/Dockerfile",
"heartbeat/Dockerfile",
"journalbeat/Dockerfile",
"libbeat/Dockerfile",
"libbeat/docs/version.asciidoc",
"metricbeat/Dockerfile",
Expand Down
14 changes: 0 additions & 14 deletions dev-tools/ecs-migration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2103,20 +2103,6 @@
alias: true
beat: heartbeat

# Journalbeat
- from: host.name
to: host.hostname
alias: false
beat: journalbeat
comment: This field should not be renamed as it would cause issue some Beats and Journalbeat does not have dashboards
# This field should not be renamed as it would cause issue some Beats and Journalbeat does not have dashboards
rename: false

- from: read_timestamp
to: event.created
alias: true
beat: journalbeat

## Winlogbeat

# Alias to ECS fields
Expand Down
4 changes: 2 additions & 2 deletions filebeat/input/journald/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (
"errors"
"time"

"github.com/elastic/beats/v7/journalbeat/pkg/journalfield"
"github.com/elastic/beats/v7/journalbeat/pkg/journalread"
"github.com/elastic/beats/v7/filebeat/input/journald/pkg/journalfield"
"github.com/elastic/beats/v7/filebeat/input/journald/pkg/journalread"
)

// Config stores the options of a journald input.
Expand Down
2 changes: 1 addition & 1 deletion filebeat/input/journald/conv.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ package journald
import (
"time"

"github.com/elastic/beats/v7/journalbeat/pkg/journalfield"
"github.com/elastic/beats/v7/filebeat/input/journald/pkg/journalfield"
"github.com/elastic/beats/v7/libbeat/beat"
"github.com/elastic/beats/v7/libbeat/logp"
)
Expand Down
4 changes: 2 additions & 2 deletions filebeat/input/journald/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ import (
"github.com/coreos/go-systemd/v22/sdjournal"
"github.com/urso/sderr"

"github.com/elastic/beats/v7/filebeat/input/journald/pkg/journalfield"
"github.com/elastic/beats/v7/filebeat/input/journald/pkg/journalread"
input "github.com/elastic/beats/v7/filebeat/input/v2"
cursor "github.com/elastic/beats/v7/filebeat/input/v2/input-cursor"
"github.com/elastic/beats/v7/journalbeat/pkg/journalfield"
"github.com/elastic/beats/v7/journalbeat/pkg/journalread"
"github.com/elastic/beats/v7/libbeat/common"
"github.com/elastic/beats/v7/libbeat/common/backoff"
"github.com/elastic/beats/v7/libbeat/feature"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 0 additions & 9 deletions journalbeat/.gitignore

This file was deleted.

23 changes: 0 additions & 23 deletions journalbeat/Dockerfile

This file was deleted.

15 changes: 0 additions & 15 deletions journalbeat/Makefile

This file was deleted.

5 changes: 0 additions & 5 deletions journalbeat/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions journalbeat/_meta/config/beat.docker.yml.tmpl

This file was deleted.

62 changes: 0 additions & 62 deletions journalbeat/_meta/config/beat.reference.yml.tmpl

This file was deleted.

57 changes: 0 additions & 57 deletions journalbeat/_meta/config/beat.yml.tmpl

This file was deleted.

Loading

0 comments on commit 3bd51f3

Please sign in to comment.