Skip to content

Commit

Permalink
change log folder
Browse files Browse the repository at this point in the history
change the folder for the sensitive logger so it is not collected by
the monitoring Filebeat.
  • Loading branch information
belimawr committed Jan 25, 2024
1 parent 3cd5004 commit 74ac78b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/core/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func DefaultSensitiveLoggingConfig() *Config {
cfg.Level = DefaultLogLevel
cfg.ToFiles = true
// That's the same path useb by MakeInternalFileOutput
cfg.Files.Path = filepath.Join(paths.Home(), DefaultLogDirectory)
cfg.Files.Path = filepath.Join(paths.Home(), DefaultLogDirectory, "sensitive")
cfg.Files.Name = agentName + "-sensitive"
cfg.Files.MaxSize = 5 * 1024 * 1024
cfg.Files.MaxBackups = 2
Expand Down

0 comments on commit 74ac78b

Please sign in to comment.