import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Example {
public static void main(String[] args) {
final String regex = "(?ms)(?<date>[0-9]{1,2}\\/[0-9]{1,2}\\/[0-9]{4})\\s(?<time>[0-9]{2}:[0-9]{2}:[0-9]{2})\\s-\\sProcess\\((?<process>.*?)\\)\\sUser\\((?<user>.*?)\\)\\sProgram\\((?<program>.*?)\\)\\n\\s*Host\\((?<host>.*?)\\)\\sInstallation\\((?<installation>.*?)\\)\\s*VRMF\\((?<vrmf>.*?)\\)\\sQMgr\\((?<qmgr>.*?)\\)\\s*(?<errorCode>AMQ[0-9]{4}):\\s(?<errorDesc>.*?)EXPLANATION:\\s*(?<explanation>.*?)ACTION:\\s*(?<action>.*?)\\s-{1,10}\\s(?<source>.*?)\\s\\:\\s(?<linenumber>[0-9]{0,4})\\s-{50,60}";
final String string = "10/26/2021 12:39:50 - Process(8272.240) User(IBMWebSphMQ05) Program(runmqlsr.exe)\n"
+ " Host(IBMMQ02APWPDCL) Installation(Installation1)\n"
+ " VRMF(9.0.0.3) QMgr(DTCC)\n"
+ " \n"
+ "AMQ9616: The CipherSpec proposed is not enabled on the server.\n\n"
+ "EXPLANATION:\n"
+ "The SSL or TLS subsystem at the server end of a channel been configured in such\n"
+ "a way that it has rejected the CipherSpec proposed by an SSL or TLS client.\n"
+ "This rejection occurred during the secure socket handshake (i.e. it happened\n"
+ "before the proposed CipherSpec was compared with the CipherSpec in the server\n"
+ "channel definition). \n\n"
+ "This error most commonly occurs when the choice of acceptable CipherSpecs has\n"
+ "been limited in one of the following ways: \n"
+ "(a) The server queue manager SSLFipsRequired attribute is set to YES and the\n"
+ " channel is using a CipherSpec which is not FIPS-certified on the server. \n"
+ "(b) The server queue manager EncryptionPolicySuiteB attribute has been set to a\n"
+ " value other than NONE and the channel is using a CipherSpec which does not\n"
+ " meet the server's configured Suite B security level. \n"
+ "(c) The protocol used by the channel has been deprecated. Note that IBM may\n"
+ " need to deprecate a protocol via product maintenance in response to a\n"
+ " security vulnerability, for example SSLv3 has been deprecated. Continued use\n"
+ " of SSLv3 protocol is not recommended but may be enabled by setting\n"
+ " environment variable AMQ_SSL_V3_ENABLE=TRUE. \n"
+ "(d) The requested CipherSpec has been deprecated. Note that IBM may need to\n"
+ " deprecate a CipherSpec via product maintenance in response to a security\n"
+ " vulnerability, for example RC4_MD5_US has been deprecated. Continued use of\n"
+ " deprecated CipherSpecs is not recommended but may be enabled by setting\n"
+ " environment variable AMQ_SSL_WEAK_CIPHER_ENABLE=<CipherSpec>. For example,\n"
+ " AMQ_SSL_WEAK_CIPHER_ENABLE=RC4_MD5_US \n\n"
+ "The channel is '????'; in some cases its name cannot be determined and so is\n"
+ "shown as '????'. The channel did not start. \n\n"
+ "The remote host name is 'vmpqg17seapd (10.12.112.81)'.\n"
+ "ACTION:\n"
+ "Analyse why the proposed CipherSpec was not enabled on the server. Alter the\n"
+ "client CipherSpec, or reconfigure the server to accept the original client\n"
+ "CipherSpec. Restart the channel. \n\n"
+ "This message might occur after applying IBM MQ maintenance because the FIPS and\n"
+ "Suite B standards are updated periodically. When such changes occur, IBM MQ is\n"
+ "also updated to implement the latest standard. As a result, you might see\n"
+ "changes in behavior after applying maintenance. For more information about the\n"
+ "versions of FIPS and Suite B standards enforced by IBM MQ, refer to the readme:\n\n\n"
+ " http://www-01.ibm.com/support/docview.wss?rs=171&uid=swg27006097 \n"
+ "----- amqccisa.c : 7899 -------------------------------------------------------\n"
+ "10/26/2021 12:39:50 - Process(8272.240) User(IBMWebSphMQ05) Program(runmqlsr.exe)\n"
+ " Host(IBMMQ02APWPDCL) Installation(Installation1)\n"
+ " VRMF(9.0.0.3) QMgr(DTCC)\n"
+ " \n"
+ "AMQ9999: Channel '????' to host 'vmpqg17seapd (10.12.112.81)' ended abnormally.\n\n"
+ "EXPLANATION:\n"
+ "The channel program running under process ID 8272(22164) for channel '????'\n"
+ "ended abnormally. The host name is 'vmpqg17seapd (10.12.112.81)'; in some cases\n"
+ "the host name cannot be determined and so is shown as '????'.\n"
+ "ACTION:\n"
+ "Look at previous error messages for the channel program in the error logs to\n"
+ "determine the cause of the failure. Note that this message can be excluded\n"
+ "completely or suppressed by tuning the \"ExcludeMessage\" or \"SuppressMessage\"\n"
+ "attributes under the \"QMErrorLog\" stanza in qm.ini. Further information can be\n"
+ "found in the System Administration Guide. \n"
+ "----- amqrmrsa.c : 938 --------------------------------------------------------\n"
+ "10/26/2021 12:39:50 - Process(8272.241) User(IBMWebSphMQ05) Program(runmqlsr.exe)\n"
+ " Host(IBMMQ02APWPDCL) Installation(Installation1)\n"
+ " VRMF(9.0.0.3) QMgr(DTCC)\n"
+ " \n"
+ "AMQ9616: The CipherSpec proposed is not enabled on the server.\n\n"
+ "EXPLANATION:\n"
+ "The SSL or TLS subsystem at the server end of a channel been configured in such\n"
+ "a way that it has rejected the CipherSpec proposed by an SSL or TLS client.\n"
+ "This rejection occurred during the secure socket handshake (i.e. it happened\n"
+ "before the proposed CipherSpec was compared with the CipherSpec in the server\n"
+ "channel definition). \n\n"
+ "This error most commonly occurs when the choice of acceptable CipherSpecs has\n"
+ "been limited in one of the following ways: \n"
+ "(a) The server queue manager SSLFipsRequired attribute is set to YES and the\n"
+ " channel is using a CipherSpec which is not FIPS-certified on the server. \n"
+ "(b) The server queue manager EncryptionPolicySuiteB attribute has been set to a\n"
+ " value other than NONE and the channel is using a CipherSpec which does not\n"
+ " meet the server's configured Suite B security level. \n"
+ "(c) The protocol used by the channel has been deprecated. Note that IBM may\n"
+ " need to deprecate a protocol via product maintenance in response to a\n"
+ " security vulnerability, for example SSLv3 has been deprecated. Continued use\n"
+ " of SSLv3 protocol is not recommended but may be enabled by setting\n"
+ " environment variable AMQ_SSL_V3_ENABLE=TRUE. \n"
+ "(d) The requested CipherSpec has been deprecated. Note that IBM may need to\n"
+ " deprecate a CipherSpec via product maintenance in response to a security\n"
+ " vulnerability, for example RC4_MD5_US has been deprecated. Continued use of\n"
+ " deprecated CipherSpecs is not recommended but may be enabled by setting\n"
+ " environment variable AMQ_SSL_WEAK_CIPHER_ENABLE=<CipherSpec>. For example,\n"
+ " AMQ_SSL_WEAK_CIPHER_ENABLE=RC4_MD5_US \n\n"
+ "The channel is '????'; in some cases its name cannot be determined and so is\n"
+ "shown as '????'. The channel did not start. \n\n"
+ "The remote host name is 'vmpqg17seapd (10.12.112.81)'.\n"
+ "ACTION:\n"
+ "Analyse why the proposed CipherSpec was not enabled on the server. Alter the\n"
+ "client CipherSpec, or reconfigure the server to accept the original client\n"
+ "CipherSpec. Restart the channel. \n\n"
+ "This message might occur after applying IBM MQ maintenance because the FIPS and\n"
+ "Suite B standards are updated periodically. When such changes occur, IBM MQ is\n"
+ "also updated to implement the latest standard. As a result, you might see\n"
+ "changes in behavior after applying maintenance. For more information about the\n"
+ "versions of FIPS and Suite B standards enforced by IBM MQ, refer to the readme:\n\n\n"
+ " http://www-01.ibm.com/support/docview.wss?rs=171&uid=swg27006097 \n"
+ "----- amqccisa.c : 7899 -------------------------------------------------------\n"
+ "10/26/2021 12:39:50 - Process(8272.241) User(IBMWebSphMQ05) Program(runmqlsr.exe)\n"
+ " Host(IBMMQ02APWPDCL) Installation(Installation1)\n"
+ " VRMF(9.0.0.3) QMgr(DTCC)\n"
+ " \n"
+ "AMQ9999: Channel '????' to host 'vmpqg17seapd (10.12.112.81)' ended abnormally.\n\n"
+ "EXPLANATION:\n"
+ "The channel program running under process ID 8272(23212) for channel '????'\n"
+ "ended abnormally. The host name is 'vmpqg17seapd (10.12.112.81)'; in some cases\n"
+ "the host name cannot be determined and so is shown as '????'.\n"
+ "ACTION:\n"
+ "Look at previous error messages for the channel program in the error logs to\n"
+ "determine the cause of the failure. Note that this message can be excluded\n"
+ "completely or suppressed by tuning the \"ExcludeMessage\" or \"SuppressMessage\"\n"
+ "attributes under the \"QMErrorLog\" stanza in qm.ini. Further information can be\n"
+ "found in the System Administration Guide. \n"
+ "----- amqrmrsa.c : 938 --------------------------------------------------------\n"
+ "10/26/2021 12:39:50 - Process(8272.242) User(IBMWebSphMQ05) Program(runmqlsr.exe)\n"
+ " Host(IBMMQ02APWPDCL) Installation(Installation1)\n"
+ " VRMF(9.0.0.3) QMgr(DTCC)\n"
+ " \n"
+ "AMQ9616: The CipherSpec proposed is not enabled on the server.\n\n"
+ "EXPLANATION:\n"
+ "The SSL or TLS subsystem at the server end of a channel been configured in such\n"
+ "a way that it has rejected the CipherSpec proposed by an SSL or TLS client.\n"
+ "This rejection occurred during the secure socket handshake (i.e. it happened\n"
+ "before the proposed CipherSpec was compared with the CipherSpec in the server\n"
+ "channel definition). \n\n"
+ "This error most commonly occurs when the choice of acceptable CipherSpecs has\n"
+ "been limited in one of the following ways: \n"
+ "(a) The server queue manager SSLFipsRequired attribute is set to YES and the\n"
+ " channel is using a CipherSpec which is not FIPS-certified on the server. \n"
+ "(b) The server queue manager EncryptionPolicySuiteB attribute has been set to a\n"
+ " value other than NONE and the channel is using a CipherSpec which does not\n"
+ " meet the server's configured Suite B security level. \n"
+ "(c) The protocol used by the channel has been deprecated. Note that IBM may\n"
+ " need to deprecate a protocol via product maintenance in response to a\n"
+ " security vulnerability, for example SSLv3 has been deprecated. Continued use\n"
+ " of SSLv3 protocol is not recommended but may be enabled by setting\n"
+ " environment variable AMQ_SSL_V3_ENABLE=TRUE. \n"
+ "(d) The requested CipherSpec has been deprecated. Note that IBM may need to\n"
+ " deprecate a CipherSpec via product maintenance in response to a security\n"
+ " vulnerability, for example RC4_MD5_US has been deprecated. Continued use of\n"
+ " deprecated CipherSpecs is not recommended but may be enabled by setting\n"
+ " environment variable AMQ_SSL_WEAK_CIPHER_ENABLE=<CipherSpec>. For example,\n"
+ " AMQ_SSL_WEAK_CIPHER_ENABLE=RC4_MD5_US \n\n"
+ "The channel is '????'; in some cases its name cannot be determined and so is\n"
+ "shown as '????'. The channel did not start. \n\n"
+ "The remote host name is 'vmpqg17seapd (10.12.112.81)'.\n"
+ "ACTION:\n"
+ "Analyse why the proposed CipherSpec was not enabled on the server. Alter the\n"
+ "client CipherSpec, or reconfigure the server to accept the original client\n"
+ "CipherSpec. Restart the channel. \n\n"
+ "This message might occur after applying IBM MQ maintenance because the FIPS and\n"
+ "Suite B standards are updated periodically. When such changes occur, IBM MQ is\n"
+ "also updated to implement the latest standard. As a result, you might see\n"
+ "changes in behavior after applying maintenance. For more information about the\n"
+ "versions of FIPS and Suite B standards enforced by IBM MQ, refer to the readme:\n\n\n"
+ " http://www-01.ibm.com/support/docview.wss?rs=171&uid=swg27006097 \n"
+ "----- amqccisa.c : 7899 -------------------------------------------------------\n"
+ "10/26/2021 12:39:50 - Process(8272.242) User(IBMWebSphMQ05) Program(runmqlsr.exe)\n"
+ " Host(IBMMQ02APWPDCL) Installation(Installation1)\n"
+ " VRMF(9.0.0.3) QMgr(DTCC)\n"
+ " \n"
+ "AMQ9999: Channel '????' to host 'vmpqg17seapd (10.12.112.81)' ended abnormally.\n\n"
+ "EXPLANATION:\n"
+ "The channel program running under process ID 8272(25820) for channel '????'\n"
+ "ended abnormally. The host name is 'vmpqg17seapd (10.12.112.81)'; in some cases\n"
+ "the host name cannot be determined and so is shown as '????'.\n"
+ "ACTION:\n"
+ "Look at previous error messages for the channel program in the error logs to\n"
+ "determine the cause of the failure. Note that this message can be excluded\n"
+ "completely or suppressed by tuning the \"ExcludeMessage\" or \"SuppressMessage\"\n"
+ "attributes under the \"QMErrorLog\" stanza in qm.ini. Further information can be\n"
+ "found in the System Administration Guide. \n"
+ "----- amqrmrsa.c : 938 --------------------------------------------------------\n"
+ "10/26/2021 12:39:50 - Process(8272.243) User(IBMWebSphMQ05) Program(runmqlsr.exe)\n"
+ " Host(IBMMQ02APWPDCL) Installation(Installation1)\n"
+ " VRMF(9.0.0.3) QMgr(DTCC)\n"
+ " \n"
+ "AMQ9616: The CipherSpec proposed is not enabled on the server.\n\n"
+ "EXPLANATION:\n"
+ "The SSL or TLS subsystem at the server end of a channel been configured in such\n"
+ "a way that it has rejected the CipherSpec proposed by an SSL or TLS client.\n"
+ "This rejection occurred during the secure socket handshake (i.e. it happened\n"
+ "before the proposed CipherSpec was compared with the CipherSpec in the server\n"
+ "channel definition). \n\n"
+ "This error most commonly occurs when the choice of acceptable CipherSpecs has\n"
+ "been limited in one of the following ways: \n"
+ "(a) The server queue manager SSLFipsRequired attribute is set to YES and the\n"
+ " channel is using a CipherSpec which is not FIPS-certified on the server. \n"
+ "(b) The server queue manager EncryptionPolicySuiteB attribute has been set to a\n"
+ " value other than NONE and the channel is using a CipherSpec which does not\n"
+ " meet the server's configured Suite B security level. \n"
+ "(c) The protocol used by the channel has been deprecated. Note that IBM may\n"
+ " need to deprecate a protocol via product maintenance in response to a\n"
+ " security vulnerability, for example SSLv3 has been deprecated. Continued use\n"
+ " of SSLv3 protocol is not recommended but may be enabled by setting\n"
+ " environment variable AMQ_SSL_V3_ENABLE=TRUE. \n"
+ "(d) The requested CipherSpec has been deprecated. Note that IBM may need to\n"
+ " deprecate a CipherSpec via product maintenance in response to a security\n"
+ " vulnerability, for example RC4_MD5_US has been deprecated. Continued use of\n"
+ " deprecated CipherSpecs is not recommended but may be enabled by setting\n"
+ " environment variable AMQ_SSL_WEAK_CIPHER_ENABLE=<CipherSpec>. For example,\n"
+ " AMQ_SSL_WEAK_CIPHER_ENABLE=RC4_MD5_US \n\n"
+ "The channel is '????'; in some cases its name cannot be determined and so is\n"
+ "shown as '????'. The channel did not start. \n\n"
+ "The remote host name is 'vmpqg17seapd (10.12.112.81)'.\n"
+ "ACTION:\n"
+ "Analyse why the proposed CipherSpec was not enabled on the server. Alter the\n"
+ "client CipherSpec, or reconfigure the server to accept the original client\n"
+ "CipherSpec. Restart the channel. \n\n"
+ "This message might occur after applying IBM MQ maintenance because the FIPS and\n"
+ "Suite B standards are updated periodically. When such changes occur, IBM MQ is\n"
+ "also updated to implement the latest standard. As a result, you might see\n"
+ "changes in behavior after applying maintenance. For more information about the\n"
+ "versions of FIPS and Suite B standards enforced by IBM MQ, refer to the readme:\n\n\n"
+ " http://www-01.ibm.com/support/docview.wss?rs=171&uid=swg27006097 \n"
+ "----- amqccisa.c : 7899 -------------------------------------------------------\n"
+ "10/26/2021 12:39:50 - Process(8272.243) User(IBMWebSphMQ05) Program(runmqlsr.exe)\n"
+ " Host(IBMMQ02APWPDCL) Installation(Installation1)\n"
+ " VRMF(9.0.0.3) QMgr(DTCC)\n"
+ " \n"
+ "AMQ9999: Channel '????' to host 'vmpqg17seapd (10.12.112.81)' ended abnormally.\n\n"
+ "EXPLANATION:\n"
+ "The channel program running under process ID 8272(6588) for channel '????'\n"
+ "ended abnormally. The host name is 'vmpqg17seapd (10.12.112.81)'; in some cases\n"
+ "the host name cannot be determined and so is shown as '????'.\n"
+ "ACTION:\n"
+ "Look at previous error messages for the channel program in the error logs to\n"
+ "determine the cause of the failure. Note that this message can be excluded\n"
+ "completely or suppressed by tuning the \"ExcludeMessage\" or \"SuppressMessage\"\n"
+ "attributes under the \"QMErrorLog\" stanza in qm.ini. Further information can be\n"
+ "found in the System Administration Guide. \n"
+ "----- amqrmrsa.c : 938 --------------------------------------------------------\n"
+ "10/26/2021 12:39:50 - Process(8272.244) User(IBMWebSphMQ05) Program(runmqlsr.exe)\n"
+ " Host(IBMMQ02APWPDCL) Installation(Installation1)\n"
+ " VRMF(9.0.0.3) QMgr(DTCC)\n"
+ " \n"
+ "AMQ9616: The CipherSpec proposed is not enabled on the server.\n\n"
+ "EXPLANATION:\n"
+ "The SSL or TLS subsystem at the server end of a channel been configured in such\n"
+ "a way that it has rejected the CipherSpec proposed by an SSL or TLS client.\n"
+ "This rejection occurred during the secure socket handshake (i.e. it happened\n"
+ "before the proposed CipherSpec was compared with the CipherSpec in the server\n"
+ "channel definition). \n\n"
+ "This error most commonly occurs when the choice of acceptable CipherSpecs has\n"
+ "been limited in one of the following ways: \n"
+ "(a) The server queue manager SSLFipsRequired attribute is set to YES and the\n"
+ " channel is using a CipherSpec which is not FIPS-certified on the server. \n"
+ "(b) The server queue manager EncryptionPolicySuiteB attribute has been set to a\n"
+ " value other than NONE and the channel is using a CipherSpec which does not\n"
+ " meet the server's configured Suite B security level. \n"
+ "(c) The protocol used by the channel has been deprecated. Note that IBM may\n"
+ " need to deprecate a protocol via product maintenance in response to a\n"
+ " security vulnerability, for example SSLv3 has been deprecated. Continued use\n"
+ " of SSLv3 protocol is not recommended but may be enabled by setting\n"
+ " environment variable AMQ_SSL_V3_ENABLE=TRUE. \n"
+ "(d) The requested CipherSpec has been deprecated. Note that IBM may need to\n"
+ " deprecate a CipherSpec via product maintenance in response to a security\n"
+ " vulnerability, for example RC4_MD5_US has been deprecated. Continued use of\n"
+ " deprecated CipherSpecs is not recommended but may be enabled by setting\n"
+ " environment variable AMQ_SSL_WEAK_CIPHER_ENABLE=<CipherSpec>. For example,\n"
+ " AMQ_SSL_WEAK_CIPHER_ENABLE=RC4_MD5_US \n\n"
+ "The channel is '????'; in some cases its name cannot be determined and so is\n"
+ "shown as '????'. The channel did not start. \n\n"
+ "The remote host name is 'vmpqg17seapd (10.12.112.81)'.\n"
+ "ACTION:\n"
+ "Analyse why the proposed CipherSpec was not enabled on the server. Alter the\n"
+ "client CipherSpec, or reconfigure the server to accept the original client\n"
+ "CipherSpec. Restart the channel. \n\n"
+ "This message might occur after applying IBM MQ maintenance because the FIPS and\n"
+ "Suite B standards are updated periodically. When such changes occur, IBM MQ is\n"
+ "also updated to implement the latest standard. As a result, you might see\n"
+ "changes in behavior after applying maintenance. For more information about the\n"
+ "versions of FIPS and Suite B standards enforced by IBM MQ, refer to the readme:\n\n\n"
+ " http://www-01.ibm.com/support/docview.wss?rs=171&uid=swg27006097 \n"
+ "----- amqccisa.c : 7899 -------------------------------------------------------\n"
+ "10/26/2021 12:39:50 - Process(8272.244) User(IBMWebSphMQ05) Program(runmqlsr.exe)\n"
+ " Host(IBMMQ02APWPDCL) Installation(Installation1)\n"
+ " VRMF(9.0.0.3) QMgr(DTCC)\n"
+ " \n"
+ "AMQ9999: Channel '????' to host 'vmpqg17seapd (10.12.112.81)' ended abnormally.\n\n"
+ "EXPLANATION:\n"
+ "The channel program running under process ID 8272(12328) for channel '????'\n"
+ "ended abnormally. The host name is 'vmpqg17seapd (10.12.112.81)'; in some cases\n"
+ "the host name cannot be determined and so is shown as '????'.\n"
+ "ACTION:\n"
+ "Look at previous error messages for the channel program in the error logs to\n"
+ "determine the cause of the failure. Note that this message can be excluded\n"
+ "completely or suppressed by tuning the \"ExcludeMessage\" or \"SuppressMessage\"\n"
+ "attributes under the \"QMErrorLog\" stanza in qm.ini. Further information can be\n"
+ "found in the System Administration Guide. \n"
+ "----- amqrmrsa.c : 938 --------------------------------------------------------\n"
+ "10/26/2021 12:39:50 - Process(8272.245) User(IBMWebSphMQ05) Program(runmqlsr.exe)\n"
+ " Host(IBMMQ02APWPDCL) Installation(Installation1)\n"
+ " VRMF(9.0.0.3) QMgr(DTCC)\n"
+ " \n"
+ "AMQ9616: The CipherSpec proposed is not enabled on the server.\n\n"
+ "EXPLANATION:\n"
+ "The SSL or TLS subsystem at the server end of a channel been configured in such\n"
+ "a way that it has rejected the CipherSpec proposed by an SSL or TLS client.\n"
+ "This rejection occurred during the secure socket handshake (i.e. it happened\n"
+ "before the proposed CipherSpec was compared with the CipherSpec in the server\n"
+ "channel definition). \n\n"
+ "This error most commonly occurs when the choice of acceptable CipherSpecs has\n"
+ "been limited in one of the following ways: \n"
+ "(a) The server queue manager SSLFipsRequired attribute is set to YES and the\n"
+ " channel is using a CipherSpec which is not FIPS-certified on the server. \n"
+ "(b) The server queue manager EncryptionPolicySuiteB attribute has been set to a\n"
+ " value other than NONE and the channel is using a CipherSpec which does not\n"
+ " meet the server's configured Suite B security level. \n"
+ "(c) The protocol used by the channel has been deprecated. Note that IBM may\n"
+ " need to deprecate a protocol via product maintenance in response to a\n"
+ " security vulnerability, for example SSLv3 has been deprecated. Continued use\n"
+ " of SSLv3 protocol is not recommended but may be enabled by setting\n"
+ " environment variable AMQ_SSL_V3_ENABLE=TRUE. \n"
+ "(d) The requested CipherSpec has been deprecated. Note that IBM may need to\n"
+ " deprecate a CipherSpec via product maintenance in response to a security\n"
+ " vulnerability, for example RC4_MD5_US has been deprecated. Continued use of\n"
+ " deprecated CipherSpecs is not recommended but may be enabled by setting\n"
+ " environment variable AMQ_SSL_WEAK_CIPHER_ENABLE=<CipherSpec>. For example,\n"
+ " AMQ_SSL_WEAK_CIPHER_ENABLE=RC4_MD5_US \n\n"
+ "The channel is '????'; in some cases its name cannot be determined and so is\n"
+ "shown as '????'. The channel did not start. \n\n"
+ "The remote host name is 'vmpqg17seapd (10.12.112.81)'.\n"
+ "ACTION:\n"
+ "Analyse why the proposed CipherSpec was not enabled on the server. Alter the\n"
+ "client CipherSpec, or reconfigure the server to accept the original client\n"
+ "CipherSpec. Restart the channel. \n\n"
+ "This message might occur after applying IBM MQ maintenance because the FIPS and\n"
+ "Suite B standards are updated periodically. When such changes occur, IBM MQ is\n"
+ "also updated to implement the latest standard. As a result, you might see\n"
+ "changes in behavior after applying maintenance. For more information about the\n"
+ "versions of FIPS and Suite B standards enforced by IBM MQ, refer to the readme:\n\n\n"
+ " http://www-01.ibm.com/support/docview.wss?rs=171&uid=swg27006097 \n"
+ "----- amqccisa.c : 7899 -------------------------------------------------------\n"
+ "10/26/2021 12:39:50 - Process(8272.245) User(IBMWebSphMQ05) Program(runmqlsr.exe)\n"
+ " Host(IBMMQ02APWPDCL) Installation(Installation1)\n"
+ " VRMF(9.0.0.3) QMgr(DTCC)\n"
+ " \n"
+ "AMQ9999: Channel '????' to host 'vmpqg17seapd (10.12.112.81)' ended abnormally.\n\n"
+ "EXPLANATION:\n"
+ "The channel program running under process ID 8272(23808) for channel '????'\n"
+ "ended abnormally. The host name is 'vmpqg17seapd (10.12.112.81)'; in some cases\n"
+ "the host name cannot be determined and so is shown as '????'.\n"
+ "ACTION:\n"
+ "Look at previous error messages for the channel program in the error logs to\n"
+ "determine the cause of the failure. Note that this message can be excluded\n"
+ "completely or suppressed by tuning the \"ExcludeMessage\" or \"SuppressMessage\"\n"
+ "attributes under the \"QMErrorLog\" stanza in qm.ini. Further information can be\n"
+ "found in the System Administration Guide. \n"
+ "----- amqrmrsa.c : 938 --------------------------------------------------------\n"
+ "10/26/2021 12:39:50 - Process(8272.246) User(IBMWebSphMQ05) Program(runmqlsr.exe)\n"
+ " Host(IBMMQ02APWPDCL) Installation(Installation1)\n"
+ " VRMF(9.0.0.3) QMgr(DTCC)\n"
+ " \n"
+ "AMQ9616: The CipherSpec proposed is not enabled on the server.\n\n"
+ "EXPLANATION:\n"
+ "The SSL or TLS subsystem at the server end of a channel been configured in such\n"
+ "a way that it has rejected the CipherSpec proposed by an SSL or TLS client.\n"
+ "This rejection occurred during the secure socket handshake (i.e. it happened\n"
+ "before the proposed CipherSpec was compared with the CipherSpec in the server\n"
+ "channel definition). \n\n"
+ "This error most commonly occurs when the choice of acceptable CipherSpecs has\n"
+ "been limited in one of the following ways: \n"
+ "(a) The server queue manager SSLFipsRequired attribute is set to YES and the\n"
+ " channel is using a CipherSpec which is not FIPS-certified on the server. \n"
+ "(b) The server queue manager EncryptionPolicySuiteB attribute has been set to a\n"
+ " value other than NONE and the channel is using a CipherSpec which does not\n"
+ " meet the server's configured Suite B security level. \n"
+ "(c) The protocol used by the channel has been deprecated. Note that IBM may\n"
+ " need to deprecate a protocol via product maintenance in response to a\n"
+ " security vulnerability, for example SSLv3 has been deprecated. Continued use\n"
+ " of SSLv3 protocol is not recommended but may be enabled by setting\n"
+ " environment variable AMQ_SSL_V3_ENABLE=TRUE. \n"
+ "(d) The requested CipherSpec has been deprecated. Note that IBM may need to\n"
+ " deprecate a CipherSpec via product maintenance in response to a security\n"
+ " vulnerability, for example RC4_MD5_US has been deprecated. Continued use of\n"
+ " deprecated CipherSpecs is not recommended but may be enabled by setting\n"
+ " environment variable AMQ_SSL_WEAK_CIPHER_ENABLE=<CipherSpec>. For example,\n"
+ " AMQ_SSL_WEAK_CIPHER_ENABLE=RC4_MD5_US \n\n"
+ "The channel is '????'; in some cases its name cannot be determined and so is\n"
+ "shown as '????'. The channel did not start. \n\n"
+ "The remote host name is 'vmpqg17seapd (10.12.112.81)'.\n"
+ "ACTION:\n"
+ "Analyse why the proposed CipherSpec was not enabled on the server. Alter the\n"
+ "client CipherSpec, or reconfigure the server to accept the original client\n"
+ "CipherSpec. Restart the channel. \n\n"
+ "This message might occur after applying IBM MQ maintenance because the FIPS and\n"
+ "Suite B standards are updated periodically. When such changes occur, IBM MQ is\n"
+ "also updated to implement the latest standard. As a result, you might see\n"
+ "changes in behavior after applying maintenance. For more information about the\n"
+ "versions of FIPS and Suite B standards enforced by IBM MQ, refer to the readme:\n\n\n"
+ " http://www-01.ibm.com/support/docview.wss?rs=171&uid=swg27006097 \n"
+ "----- amqccisa.c : 7899 -------------------------------------------------------\n"
+ "10/26/2021 12:39:50 - Process(8272.246) User(IBMWebSphMQ05) Program(runmqlsr.exe)\n"
+ " Host(IBMMQ02APWPDCL) Installation(Installation1)\n"
+ " VRMF(9.0.0.3) QMgr(DTCC)\n"
+ " \n"
+ "AMQ9999: Channel '????' to host 'vmpqg17seapd (10.12.112.81)' ended abnormally.\n\n"
+ "EXPLANATION:\n"
+ "The channel program running under process ID 8272(21220) for channel '????'\n"
+ "ended abnormally. The host name is 'vmpqg17seapd (10.12.112.81)'; in some cases\n"
+ "the host name cannot be determined and so is shown as '????'.\n"
+ "ACTION:\n"
+ "Look at previous error messages for the channel program in the error logs to\n"
+ "determine the cause of the failure. Note that this message can be excluded\n"
+ "completely or suppressed by tuning the \"ExcludeMessage\" or \"SuppressMessage\"\n"
+ "attributes under the \"QMErrorLog\" stanza in qm.ini. Further information can be\n"
+ "found in the System Administration Guide. \n"
+ "----- amqrmrsa.c : 938 --------------------------------------------------------\n"
+ "10/26/2021 12:39:50 - Process(8272.247) User(IBMWebSphMQ05) Program(runmqlsr.exe)\n"
+ " Host(IBMMQ02APWPDCL) Installation(Installation1)\n"
+ " VRMF(9.0.0.3) QMgr(DTCC)\n"
+ " \n"
+ "AMQ9616: The CipherSpec proposed is not enabled on the server.\n\n"
+ "EXPLANATION:\n"
+ "The SSL or TLS subsystem at the server end of a channel been configured in such\n"
+ "a way that it has rejected the CipherSpec proposed by an SSL or TLS client.\n"
+ "This rejection occurred during the secure socket handshake (i.e. it happened\n"
+ "before the proposed CipherSpec was compared with the CipherSpec in the server\n"
+ "channel definition). \n\n"
+ "This error most commonly occurs when the choice of acceptable CipherSpecs has\n"
+ "been limited in one of the following ways: \n"
+ "(a) The server queue manager SSLFipsRequired attribute is set to YES and the\n"
+ " channel is using a CipherSpec which is not FIPS-certified on the server. \n"
+ "(b) The server queue manager EncryptionPolicySuiteB attribute has been set to a\n"
+ " value other than NONE and the channel is using a CipherSpec which does not\n"
+ " meet the server's configured Suite B security level. \n"
+ "(c) The protocol used by the channel has been deprecated. Note that IBM may\n"
+ " need to deprecate a protocol via product maintenance in response to a\n"
+ " security vulnerability, for example SSLv3 has been deprecated. Continued use\n"
+ " of SSLv3 protocol is not recommended but may be enabled by setting\n"
+ " environment variable AMQ_SSL_V3_ENABLE=TRUE. \n"
+ "(d) The requested CipherSpec has been deprecated. Note that IBM may need to\n"
+ " deprecate a CipherSpec via product maintenance in response to a security\n"
+ " vulnerability, for example RC4_MD5_US has been deprecated. Continued use of\n"
+ " deprecated CipherSpecs is not recommended but may be enabled by setting\n"
+ " environment variable AMQ_SSL_WEAK_CIPHER_ENABLE=<CipherSpec>. For example,\n"
+ " AMQ_SSL_WEAK_CIPHER_ENABLE=RC4_MD5_US \n\n"
+ "The channel is '????'; in some cases its name cannot be determined and so is\n"
+ "shown as '????'. The channel did not start. \n\n"
+ "The remote host name is 'vmpqg17seapd (10.12.112.81)'.\n"
+ "ACTION:\n"
+ "Analyse why the proposed CipherSpec was not enabled on the server. Alter the\n"
+ "client CipherSpec, or reconfigure the server to accept the original client\n"
+ "CipherSpec. Restart the channel. \n\n"
+ "This message might occur after applying IBM MQ maintenance because the FIPS and\n"
+ "Suite B standards are updated periodically. When such changes occur, IBM MQ is\n"
+ "also updated to implement the latest standard. As a result, you might see\n"
+ "changes in behavior after applying maintenance. For more information about the\n"
+ "versions of FIPS and Suite B standards enforced by IBM MQ, refer to the readme:\n\n\n"
+ " http://www-01.ibm.com/support/docview.wss?rs=171&uid=swg27006097 \n"
+ "----- amqccisa.c : 7899 -------------------------------------------------------\n"
+ "10/26/2021 12:39:50 - Process(8272.247) User(IBMWebSphMQ05) Program(runmqlsr.exe)\n"
+ " Host(IBMMQ02APWPDCL) Installation(Installation1)\n"
+ " VRMF(9.0.0.3) QMgr(DTCC)\n"
+ " \n"
+ "AMQ9999: Channel '????' to host 'vmpqg17seapd (10.12.112.81)' ended abnormally.\n\n"
+ "EXPLANATION:\n"
+ "The channel program running under process ID 8272(21620) for channel '????'\n"
+ "ended abnormally. The host name is 'vmpqg17seapd (10.12.112.81)'; in some cases\n"
+ "the host name cannot be determined and so is shown as '????'.\n"
+ "ACTION:\n"
+ "Look at previous error messages for the channel program in the error logs to\n"
+ "determine the cause of the failure. Note that this message can be excluded\n"
+ "completely or suppressed by tuning the \"ExcludeMessage\" or \"SuppressMessage\"\n"
+ "attributes under the \"QMErrorLog\" stanza in qm.ini. Further information can be\n"
+ "found in the System Administration Guide. \n"
+ "----- amqrmrsa.c : 938 --------------------------------------------------------\n"
+ "10/26/2021 12:39:51 - Process(8272.248) User(IBMWebSphMQ05) Program(runmqlsr.exe)\n"
+ " Host(IBMMQ02APWPDCL) Installation(Installation1)\n"
+ " VRMF(9.0.0.3) QMgr(DTCC)\n"
+ " \n"
+ "AMQ9616: The CipherSpec proposed is not enabled on the server.\n\n"
+ "EXPLANATION:\n"
+ "The SSL or TLS subsystem at the server end of a channel been configured in such\n"
+ "a way that it has rejected the CipherSpec proposed by an SSL or TLS client.\n"
+ "This rejection occurred during the secure socket handshake (i.e. it happened\n"
+ "before the proposed CipherSpec was compared with the CipherSpec in the server\n"
+ "channel definition). \n\n"
+ "This error most commonly occurs when the choice of acceptable CipherSpecs has\n"
+ "been limited in one of the following ways: \n"
+ "(a) The server queue manager SSLFipsRequired attribute is set to YES and the\n"
+ " channel is using a CipherSpec which is not FIPS-certified on the server. \n"
+ "(b) The server queue manager EncryptionPolicySuiteB attribute has been set to a\n"
+ " value other than NONE and the channel is using a CipherSpec which does not\n"
+ " meet the server's configured Suite B security level. \n"
+ "(c) The protocol used by the channel has been deprecated. Note that IBM may\n"
+ " need to deprecate a protocol via product maintenance in response to a\n"
+ " security vulnerability, for example SSLv3 has been deprecated. Continued use\n"
+ " of SSLv3 protocol is not recommended but may be enabled by setting\n"
+ " environment variable AMQ_SSL_V3_ENABLE=TRUE. \n"
+ "(d) The requested CipherSpec has been deprecated. Note that IBM may need to\n"
+ " deprecate a CipherSpec via product maintenance in response to a security\n"
+ " vulnerability, for example RC4_MD5_US has been deprecated. Continued use of\n"
+ " deprecated CipherSpecs is not recommended but may be enabled by setting\n"
+ " environment variable AMQ_SSL_WEAK_CIPHER_ENABLE=<CipherSpec>. For example,\n"
+ " AMQ_SSL_WEAK_CIPHER_ENABLE=RC4_MD5_US \n\n"
+ "The channel is '????'; in some cases its name cannot be determined and so is\n"
+ "shown as '????'. The channel did not start. \n\n"
+ "The remote host name is 'vmpqg17seapd (10.12.112.81)'.\n"
+ "ACTION:\n"
+ "Analyse why the proposed CipherSpec was not enabled on the server. Alter the\n"
+ "client CipherSpec, or reconfigure the server to accept the original client\n"
+ "CipherSpec. Restart the channel. \n\n"
+ "This message might occur after applying IBM MQ maintenance because the FIPS and\n"
+ "Suite B standards are updated periodically. When such changes occur, IBM MQ is\n"
+ "also updated to implement the latest standard. As a result, you might see\n"
+ "changes in behavior after applying maintenance. For more information about the\n"
+ "versions of FIPS and Suite B standards enforced by IBM MQ, refer to the readme:\n\n\n"
+ " http://www-01.ibm.com/support/docview.wss?rs=171&uid=swg27006097 \n"
+ "----- amqccisa.c : 7899 -------------------------------------------------------\n"
+ "10/26/2021 12:39:51 - Process(8272.248) User(IBMWebSphMQ05) Program(runmqlsr.exe)\n"
+ " Host(IBMMQ02APWPDCL) Installation(Installation1)\n"
+ " VRMF(9.0.0.3) QMgr(DTCC)\n"
+ " \n"
+ "AMQ9999: Channel '????' to host 'vmpqg17seapd (10.12.112.81)' ended abnormally.\n\n"
+ "EXPLANATION:\n"
+ "The channel program running under process ID 8272(5464) for channel '????'\n"
+ "ended abnormally. The host name is 'vmpqg17seapd (10.12.112.81)'; in some cases\n"
+ "the host name cannot be determined and so is shown as '????'.\n"
+ "ACTION:\n"
+ "Look at previous error messages for the channel program in the error logs to\n"
+ "determine the cause of the failure. Note that this message can be excluded\n"
+ "completely or suppressed by tuning the \"ExcludeMessage\" or \"SuppressMessage\"\n"
+ "attributes under the \"QMErrorLog\" stanza in qm.ini. Further information can be\n"
+ "found in the System Administration Guide. \n"
+ "----- amqrmrsa.c : 938 --------------------------------------------------------";
final Pattern pattern = Pattern.compile(regex, Pattern.MULTILINE);
final Matcher matcher = pattern.matcher(string);
while (matcher.find()) {
System.out.println("Full match: " + matcher.group(0));
for (int i = 1; i <= matcher.groupCount(); i++) {
System.out.println("Group " + i + ": " + matcher.group(i));
}
}
}
}
Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for Java, please visit: https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html