Bug 2059996 - read_lines_limit needs to be adjusted according to the setting of buffer_chunk_size
Summary: read_lines_limit needs to be adjusted according to the setting of buffer_chun...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Logging
Version: 4.6.z
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.6.z
Assignee: Jeff Cantrill
QA Contact: Kabir Bharti
URL:
Whiteboard: logging-core
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-02 13:47 UTC by tmicheli
Modified: 2023-05-04 11:07 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-04 09:07:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-logging-operator pull 1391 0 None open Bug 2059996: Fix inability to tune read line limit when tuning buffers 2022-03-16 01:50:14 UTC
Red Hat Issue Tracker LOG-1415 0 None None None 2023-05-04 11:07:15 UTC
Red Hat Knowledge Base (Solution) 7010931 0 None None None 2023-05-04 10:54:14 UTC
Red Hat Product Errata RHSA-2022:1622 0 None None None 2022-05-04 09:07:24 UTC

Description tmicheli 2022-03-02 13:47:01 UTC
Description of problem:

When the `buffer_chunk_size` in fluentd is configured the following warnings are written to the log file:

2020-11-20 09:26:28 +0000 [warn]: chunk bytes limit exceeds for an emitted event stream: 1471470bytes

This is caused by the `read_lines_limit` setting in the `in_tail` plugin of fluentd. To avoid the warning message it is advised to set the `read_lines_limit` to a smaller value as can be found here. However this variable can not be set via the settings of the openshift-logging operator. For customers who need to set `buffer_chunk_size` to match their external backend it would be a benefit to avoid unnecessary warnings if they were able to configure this setting as well. Furthermore customers are experiencing data loss because of this.

Version-Release number of selected component (if applicable):
4.6

How reproducible:
1. Install OCP logging
2. Set buffer_chunk_size to 1M


Steps to Reproduce:
1.
2.
3.

Actual results:
Warning message occurs and log files are lost.


Expected results:
No data loss; no warning messages

Additional info:

Comment 1 Jeff Cantrill 2022-03-02 14:49:54 UTC
Moving the severity to High given there is a belief there is data loss

Comment 3 Anping Li 2022-04-12 15:21:56 UTC
Verified on clusterlogging.4.6.0-202204072326. readLinesLimit and be specified on clusterlogging resources.

apiVersion: logging.openshift.io/v1
kind: ClusterLogging
metadata:
  name: instance
  namespace: openshift-logging
spec:
  collection:
    logs:
      fluentd: {}
      type: fluentd
  forwarder:
    fluentd:
      buffer:
        chunkLimitSize: 1M
      inFile:
        readLinesLimit: 50

Comment 6 errata-xmlrpc 2022-05-04 09:07:18 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.6.57 security and extras update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:1622


Note You need to log in before you can comment on or make changes to this bug.