SUSE Support

Here When You Need Us

Configuring a buffer with total_limit_size in Logging v2

This document (000020013) is provided subject to the disclaimer at the end of this document.

Situation

Task

Some users run into an issue where fluentd buffers grow indefinetely and fill up the disk on nodes. This documentation explains how to limit this size in V2 Logging.

Pre-requisites

  • Rancher 2.5.x and above
  • Logging App installed with Cluster Explorer

Resolution

When you're ready to configure your Output (the location that the logs are sent to) you can get there with the following steps after you have Logging installed:

  1. Cluster Explorer
  2. Dropdown in the top left
  3. Logging
  4. ClusterOutput/Output
  5. Create

From here, you can edit the Output as YAML to access the buffer configurations. Using ElasticSearch as an example you can fill out the form easily, but then Edit as YAML:

apiVersion: logging.banzaicloud.io/v1beta1
kind: ClusterOutput
metadata:
    name: "elasticsearch-output"
    namespace: "cattle-logging-system"
  elasticsearch:
    host: 1.2.3.4
    index_name: some-index
    port: 9200
    scheme: http
    buffer:
      type: file
      total_limit_size: 2GB

As far as the buffer size is concerned, the total_limit_size is the important parameter to change. 2GB is a good starting point and is unlikely to need to be changed, but you can adjust this based on your needs.

Further reading

As stated in the pre-reqs, this is only possible on the V2 Logging App which is available in Rancher 2.5. This uses the Banzai Cloud logging operator, which allows us to use CRDs to configure it.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000020013
  • Creation Date: 06-May-2021
  • Modified Date:25-Mar-2024
    • SUSE Rancher

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.