If you want the default value of a MDC lookup to be the result of a different MDC lookup (or any other variable/substitution) it does not work.
%X{mdcKey:-%X{defaultKey}} should be allowed. Instead if %X{mdcKey} is not defined the log output is the literal string "%X{defaultKey}" instead of performing an MDC lookup on the defaultKey.
For example, we are trying to use the following pattern.
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira