Logging Diameter and MDC Gateway Errors
Configure MATRIXX Engine to generate log files to hold Diameter Gateway and MDC Gateway errors.
The Diameter Gateway log has Diameter message MATRIXX
Data Containers (MDCs) that report a non-successful result (a Diameter result value other than 2001
). Logging Diameter MDCs is useful in troubleshooting when a
high-level service operation is successful but a child service context is not. Diameter error MDC logs are in compact MDC (CMDC) format and are written to the ${MTX_ERROR_MDC_LOG_DIR}. The MDC Gateway log has message MDCs sent from the MDC Gateway to a network application that report a non-successful result (a nonzero Result
field
value). The MDCs are typically SubMan API messages but can also be any MDC based on the
MtxMsg MDC. MDC Gateway error MDC logs are in CMDC format and are written to the
${MTX_ERROR_MDC_LOG_DIR}.
Setting up Diameter Gateway and MDC Gateway logging is part of the overall system configuration. It involves enabling the logging, specifying an error log location, and specifying how closing of the logs is triggered.
For information about configuring Diameter and MDC Gateway logs, see the discussion about Diameter configuration parameters and MDC Gateway configuration in MATRIXX Installation and Upgrade.
For more information about the MATRIXX environment variables, see the discussion about installation directories, navigation shortcuts, and environment variables in MATRIXX Installation and Upgrade.
You cannot configure the Diameter and MDC Gateway log files to be rotated, but you can configure a crontab to remove them. For example:
# delete MDC GW error files older than 7 days 30
1 * * * /bin/find /var/log/mtx/ -name 'mdc_gateway_error*' -type f -mtime +7 | xargs rm -rf
# delete Diameter error files older than 7 days 30
1 * * * /bin/find /var/log/mtx/ -name 'diameter_error_mdc*' -type f -mtime +7 | xargs rm -rf