In AAKE, each AE server process runs in its own Kubernetes pod. Pods are named dynamically. They get names like ae-wp-5ff48fd795-rrnvh
.
AAKE process log files are named based on the value of the AUTOMIC_GLOBAL_LOGGING
variable.
logging=${AUTOMIC_GLOBAL_LOGGING:../temp/$$srv_log_*_##.txt}
The documentation for ucsrv.ini describes the three special placeholders one can use:
Full file name pattern for log file names
$$
is replaced by the purpose of a Process (CP or WP or JWP or DBSERVICE). No replacements in other components
*
is replaced by the 3 digit number of a Worker Process.
#
is replaced by the log file sequence number after the existing log files' corresponding numbers have been raised by one during startup of the component.
Is there a way to include the pod name in the log file name? This would make it easier to find out which AE server process wrote each file.
Note that the pod name is not mentioned anywhere in the log file.
Correction: There are some messages that include the host name, which is the same as the pod name:
20240918/150021.496 - 24 U02000066 Host information: Host name='jcp-ws-867d67f4dd-9qm8r', IP address='172.17.34.23'
20240918/150021.496 - 24 U00003492 Server has been started on Host 'jcp-ws-867d67f4dd-9qm8r' ('172.17.34.23') with process ID '1'.