How to configure rancher-logging to send to a file
This document (000020946) is provided subject to the disclaimer at the end of this document.
Environment
Rancher 2.9.x+
Logging Operator V2
Situation
The rancher-logging operator includes an option to send logs to a file. While this approach is not ideal for production environments where logs should be shipped to a centralized location for storage and further processing. It can be a valuable tool for testing purposes to ensure that the operator is properly configured.
Resolution
apiVersion: logging.banzaicloud.io/v1beta1
kind: Output
metadata:
name: fileoutput
namespace: default
spec:
file:
path: /tmp/${tag}
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:000020946
- Creation Date: 20-Jan-2023
- Modified Date:15-Jan-2025
-
- SUSE Rancher
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com