Skip to content

Commit

Permalink
Revert system module support for journald
Browse files Browse the repository at this point in the history
Revert the system module usage of the system-logs input that was
enabling it to run the Journald input. The revert is done in the
system module configuration, pipelines and documentation. The
system-logs input and its tests are kept.
  • Loading branch information
belimawr committed Oct 30, 2024
1 parent f5ecf88 commit ea61a44
Show file tree
Hide file tree
Showing 29 changed files with 98 additions and 894 deletions.
12 changes: 0 additions & 12 deletions filebeat/docs/include/use-journald.asciidoc

This file was deleted.

6 changes: 1 addition & 5 deletions filebeat/docs/modules/system.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ include::../include/gs-link.asciidoc[]
=== Compatibility

This module was tested with logs from OSes like Ubuntu 12.04, Centos 7, and
macOS Sierra. For Debian 12 Journald is used to read the system logs.
macOS Sierra.

This module is not available for Windows.

Expand Down Expand Up @@ -65,15 +65,11 @@ include::../include/config-option-intro.asciidoc[]

include::../include/var-paths.asciidoc[]

include::../include/use-journald.asciidoc[]

[float]
==== `auth` fileset settings

include::../include/var-paths.asciidoc[]

include::../include/use-journald.asciidoc[]

*`var.tags`*::

A list of tags to include in events. Including `forwarded` indicates that the
Expand Down
30 changes: 1 addition & 29 deletions filebeat/filebeat.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,7 @@ filebeat.modules:
# Filebeat will choose the paths depending on your OS.
#var.paths:

# Force using journald to collect system logs
#var.use_journald: true|false

# Force using log files to collect system logs
#var.use_files: true|false

# If use_journald and use_files are false, then
# Filebeat will autodetect whether use to journald
# to collect system logs.

# Input configuration (advanced).
# Any input configuration option
# Input configuration (advanced). Any input configuration option
# can be added under this section.
#input:

Expand All @@ -44,23 +33,6 @@ filebeat.modules:
# Filebeat will choose the paths depending on your OS.
#var.paths:

# Force using journald to collect system logs
#var.use_journald: true|false

# Force using log files to collect system logs
#var.use_files: true|false

# If use_journald and use_files are false, then
# Filebeat will autodetect whether use to journald
# to collect system logs.

# A list of tags to include in events. Including 'forwarded'
# indicates that the events did not originate on this host and
# causes host.name to not be added to events. Include
# 'preserve_orginal_event' causes the pipeline to retain the raw log
# in event.original. Defaults to [].
#var.tags: []

# Input configuration (advanced). Any input configuration option
# can be added under this section.
#input:
Expand Down
2 changes: 1 addition & 1 deletion filebeat/input/systemlogs/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func PluginV2(logger *logp.Logger, store cursor.StateStore) v2.Plugin {

return v2.Plugin{
Name: pluginName,
Stability: feature.Stable,
Stability: feature.Experimental,
Deprecated: false,
Info: "system-logs input",
Doc: "The system-logs input collects system logs on Linux by reading them from journald or traditional log files",
Expand Down
14 changes: 0 additions & 14 deletions filebeat/module/system/README.md

This file was deleted.

30 changes: 1 addition & 29 deletions filebeat/module/system/_meta/config.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,7 @@
# Filebeat will choose the paths depending on your OS.
#var.paths:

# Force using journald to collect system logs
#var.use_journald: true|false

# Force using log files to collect system logs
#var.use_files: true|false

# If use_journald and use_files are false, then
# Filebeat will autodetect whether use to journald
# to collect system logs.

# Input configuration (advanced).
# Any input configuration option
# Input configuration (advanced). Any input configuration option
# can be added under this section.
#input:

Expand All @@ -30,23 +19,6 @@
# Filebeat will choose the paths depending on your OS.
#var.paths:

# Force using journald to collect system logs
#var.use_journald: true|false

# Force using log files to collect system logs
#var.use_files: true|false

# If use_journald and use_files are false, then
# Filebeat will autodetect whether use to journald
# to collect system logs.

# A list of tags to include in events. Including 'forwarded'
# indicates that the events did not originate on this host and
# causes host.name to not be added to events. Include
# 'preserve_orginal_event' causes the pipeline to retain the raw log
# in event.original. Defaults to [].
#var.tags: []

# Input configuration (advanced). Any input configuration option
# can be added under this section.
#input:
27 changes: 0 additions & 27 deletions filebeat/module/system/_meta/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,10 @@
# Filebeat will choose the paths depending on your OS.
#var.paths:

# Force using journald to collect system logs
#var.use_journald: true|false

# Force using log files to collect system logs
#var.use_files: true|false

# If use_journald and use_files are false, then
# Filebeat will autodetect whether use to journald
# to collect system logs.

# Authorization logs
auth:
enabled: false

# Set custom paths for the log files. If left empty,
# Filebeat will choose the paths depending on your OS.
#var.paths:

# Force using journald to collect system logs
#var.use_journald: true|false

# Force using log files to collect system logs
#var.use_files: true|false

# If use_journald and use_files are false, then
# Filebeat will autodetect whether use to journald
# to collect system logs.

# A list of tags to include in events. Including forwarded
# indicates that the events did not originate on this host and
# causes host.name to not be added to events. Include
# preserve_orginal_event causes the pipeline to retain the raw log
# in event.original. Defaults to [].
#var.tags: []
6 changes: 1 addition & 5 deletions filebeat/module/system/_meta/docs.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ include::../include/gs-link.asciidoc[]
=== Compatibility

This module was tested with logs from OSes like Ubuntu 12.04, Centos 7, and
macOS Sierra. For Debian 12 Journald is used to read the system logs.
macOS Sierra.

This module is not available for Windows.

Expand Down Expand Up @@ -58,15 +58,11 @@ include::../include/config-option-intro.asciidoc[]

include::../include/var-paths.asciidoc[]

include::../include/use-journald.asciidoc[]

[float]
==== `auth` fileset settings

include::../include/var-paths.asciidoc[]

include::../include/use-journald.asciidoc[]

*`var.tags`*::

A list of tags to include in events. Including `forwarded` indicates that the
Expand Down
36 changes: 10 additions & 26 deletions filebeat/module/system/auth/config/auth.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,17 @@
type: system-logs
{{ if .use_journald }}
use_journald: true
type: log
paths:
{{ range $i, $path := .paths }}
- {{$path}}
{{ end }}
exclude_files: [".gz$"]

{{ if .use_files }}
use_files: true
{{ end }}
multiline:
pattern: "^\\s"
match: after

tags: {{ .tags | tojson }}
processors:
- add_locale: ~

publisher_pipeline.disable_host: {{ inList .tags "forwarded" }}

journald:
id: system-auth
facilities:
- 4
- 10

files:
id: system-auth
paths:
{{ range $i, $path := .paths }}
- {{$path}}
{{ end }}
exclude_files: [".gz$"]

multiline:
pattern: "^\\s"
match: after
tags: {{ .tags | tojson }}

publisher_pipeline.disable_host: {{ inList .tags "forwarded" }}
18 changes: 0 additions & 18 deletions filebeat/module/system/auth/ingest/entrypoint.yml

This file was deleted.

63 changes: 0 additions & 63 deletions filebeat/module/system/auth/ingest/files.yml

This file was deleted.

14 changes: 0 additions & 14 deletions filebeat/module/system/auth/ingest/grok-auth-messages.yml

This file was deleted.

33 changes: 0 additions & 33 deletions filebeat/module/system/auth/ingest/journald.yml

This file was deleted.

Loading

0 comments on commit ea61a44

Please sign in to comment.