Loading

How to locate the Mule Application Logfile on Runtime Fabric

Дата публикации: Aug 5, 2025
Задача

GOAL

Getting the logs from RTF to support from a specific application is currently not documented. 
Действия
Below are listed the various potential methods to get the log files from an application pod or RTF node.

1) The simplest way to gather the logs for support is to run the diagnostics debug report from the ops centre. This contains them, but this file can be very large and takes time to upload to us. Once uncompressed the log files are all located under <controller_node>-k8s-logs.tar

2) running the following commands on the controller node will get the log files.
kubectl get pods --all-namespaces -o wide
returns a list of the pods, from this you can find the <app-pod-name> and the <app-pod-namespace> and plug them in below
kubectl log <app-pod-name> -n<app-pod-namespace> -capp >> mule.log
Which you can the sftp off the controller

3) you can run a bash shell to get into the application pod
kubectl exec -it test-api-kit-testcase-78c7f64c74-gqkk6 -nc02acd76-ede4-4781-9480-fee183883f18 -capp -- /bin/bash
This give you command line access and per any other Mule runtime, the log files are located under $MULE_HOME/logs.
NOTE: while there are log files in this folder, the actual application logs are not available here for RTF. The application logs can only be obtained using kubectl logs.

4) You can copy the logs from the pod to the controller using 
kubectl cp <app-pod-namespace>/<app-pod-name>:/opt/mule/logs/* /tmp/*
Which you can then sftp off the controller

5) On the worker where the pod is located you can see the logs by doing
find . -name <app-name>
which will return out put similar to the following.
./var/lib/gravity/local/packages/unpacked/gravitational.io/planet/5.5.31-11312/rootfs/var/lib/kubelet/pods/efbda1cf-0f96-11ea-918f-0285ef255828/volumes/kubernetes.io~empty-dir/overlay/opt/mule/apps/<app-name>
./var/lib/gravity/local/packages/unpacked/gravitational.io/planet/5.5.31-11312/rootfs/var/lib/kubelet/pods/efbda1cf-0f96-11ea-918f-0285ef255828/volumes/kubernetes.io~empty-dir/overlay/opt/mule/.mule/<appname>
That points you the shared directory where the Mule Runtime is installed, the logs would be stored in a location similar to this 
/var/lib/gravity/local/packages/unpacked/gravitational.io/planet/5.5.31-11312/rootfs/var/lib/kubelet/pods/efbda1cf-0f96-11ea-918f-0285ef255828/volumes/kubernetes.io~empty-dir/overlay/opt/mule/logs
Номер статьи базы знаний

001116919

 
Загрузка
Salesforce Help | Article