-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
Description
Describe the bug
Using these plugins to discard the duplicate logs from the fluentd.
Trying to remove duplicate logs from the k8s cluster microservices, reading logs from the /var/log/containers and removing duplicate log to improve readbility.
To Reproduce
<filter kubernetes.**>
@type suppress
log_suppress_interval 10 # Suppress duplicates for 10 seconds
num 1 # Suppress after 2 identical logs
max_slot_num 100000 # Max unique logs to track
attr_keys short_message # Attributes to check for duplicates
add_tag_prefix sp. # Prefix for suppressed logs
</filter>
<filter sp.*>
@type throttle
threshold 1 # Limit to 5 logs per interval
interval 300 # Time interval in seconds
add_tag_prefix th. # Prefix for throttled logs
enable_throttle true
discard_throttled true
</filter>Expected behavior
Memory shoot-up should not happen
Your Environment
- Fluentd version:5.9.11 (Chart: https://charts.bitnami.com/bitnami)
- Package version:
- Operating system:Ubuntu 22.04 LTS
- Kernel version::5.15.0-124-genericYour Configuration
<filter kubernetes.**>
@type suppress
log_suppress_interval 10 # Suppress duplicates for 10 seconds
num 1 # Suppress after 2 identical logs
max_slot_num 100000 # Max unique logs to track
attr_keys short_message # Attributes to check for duplicates
add_tag_prefix sp. # Prefix for suppressed logs
</filter>
<filter sp.*>
@type throttle
threshold 1 # Limit to 5 logs per interval
interval 300 # Time interval in seconds
add_tag_prefix th. # Prefix for throttled logs
enable_throttle true
discard_throttled true
</filter>.Your Error Log
No error logs only seeing memory spikeAdditional context
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done