Hi Donald,
You can peruse the logs from outside of the running pod by creating a volume
" Running with the default configuration and a volume "
you can create a volume with the following command:
docker volume create qm1data
You can then run a queue manager using this volume as follows:
docker run \
--env LICENSE=accept \
--env MQ_QMGR_NAME=QM1 \
--publish 1414:1414 \
--publish 9443:9443 \
--detach \
--volume qm1data:/mnt/mqm \
ibmcom/mq
The Docker image always uses /mnt/mqm
for MQ data, which is correctly linked for you under /var/mqm
at runtime. This is to handle problems with file permissions on some platforms.
Please refer to the link below:
https://github.com/ibm-messaging/mq-docker/blob/master/README.md
Thank you,
Regards,
Prema U Lakshmanachar
Release Effectiveness MQ Team, India Software Lab,
IBM India Pvt. Ltd., 1st Floor, Block D,
EGL, Bangalore – 560071
------------------------------
Prema Laxmanachar
------------------------------
Original Message:
Sent: Tue March 07, 2023 11:08 AM
From: Donald Thomas
Subject: Logging options for MQ running in K8s pods.
Hi MQ community,
We are working with running queue managers in kubernetes pods and we're wondering if it's possible to direct MQ to instead of writing the AMQERR*.LOG files to the standard /var/mqm/qmgrname/errors directory to a different location or if it's possible to pump that type of output into something like splunk. Given the dynamic nature of k8s pod we would prefer the ability to be able to peruse the logs from outside of the running pod. Has anyone been down this path?
TIA,
Don
------------------------------
Donald Thomas
------------------------------