<-- Back

How to Implement Log Rotation and Storage for Mendix Applications on Kubernetes

Introduction

The article explains how to retain Mendix application logs for historical analysis in a Mendix on Kubernetes (MxOK) deployment when file-based log storage and application-level log rotation are required.

Environment

Applications hosted in Mendix on Kubernetes

Instructions/Procedure

Use an external logging solution. MxOK writes application logs to standard output streams (stdout and stderr) instead of local log files, requiring external log management. 

  1. Use a log aggregation tool like Grafana to capture logs from Pods
  2. Configure automatic upload to object storage service like Amazon S3 for historical log retention
  3. Set up retention policy to maintain desired retention period

Outcome

Application logs are collected from Kubernetes Pods and retained in an external logging platform for the configured period.

Internal information related

267553

Additional information

Mendix documentation: Monitoring Environments in Mendix on Kubernetes

Have more questions? Submit a request

0 Comments

Article is closed for comments.

To provide feedback, please open a ticket here. Don't forget to include the article's URL along with the feedback you would like to provide.