Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion pkg/config/schema/core_schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2253,7 +2253,7 @@ properties:
file_scan_period:
node_type: setting
type: number
default: 10
default: 1
tags:
- golang_type:float64
fingerprint_config:
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/setup/common_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -1882,7 +1882,7 @@ func logsagent(config pkgconfigmodel.Setup) {
// could happen while serializing large objects on log lines.
config.BindEnvAndSetDefault("logs_config.aggregation_timeout", 1000)
// Time in seconds
config.BindEnvAndSetDefault("logs_config.file_scan_period", 10.0)
config.BindEnvAndSetDefault("logs_config.file_scan_period", 1.0)

// Controls how wildcard file log source are prioritized when there are more files
// that match wildcard log configurations than the `logs_config.open_files_limit`
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
enhancements:
- |
The default for ``logs_config.file_scan_period`` is now **1** second instead of 10, so the Agent discovers new and rotated log files on disk more quickly. Set ``logs_config.file_scan_period`` explicitly if you need a slower scan to reduce filesystem load (for example on network file systems).
Loading