Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions filebeat/input/systemlogs/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func useJournald(c *conf.C) (bool, error) {

cfg := config{}
if err := c.Unpack(&cfg); err != nil {
return false, nil
return false, fmt.Errorf("cannot unpack 'system-logs' config: %w", err)
}

if cfg.UseJournald {
Expand Down Expand Up @@ -159,7 +159,7 @@ func useJournald(c *conf.C) (bool, error) {
return true, nil
}

func toJournaldConfig(cfg *conf.C) (*conf.C, error) {
func toJournaldConfig(cfg *conf.C) (*conf.C, error) { // nolint:unused // It's used on Linux
newCfg, err := cfg.Child("journald", -1)
if err != nil {
return nil, fmt.Errorf("cannot extract 'journald' block: %w", err)
Expand Down