Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The REST JMS

...

Log Monitoring feature enables you to check all errors

...

and warnings

...

that occur during JMS configuration.

...

...

REST JMS Logging monitoring feature is under beta-testing. Be aware, it can be changed later.

To get JMS Log info from particular mc2To retrieve JMS Log information from a particular MC2-worker instance, you have to must execute a GET request by either of these two methods:

  • Execute for a particular MC2-worker instance through http://host:port/eagle/v2/jms/log.

...

  • Retrieve all logs from all active

...

  • MC2-workers in cluster by

...

  • executing for any MC2-lb instance through http://host:port/eagle/v2/jms/logs.

...

Info

The JSON format of log

...

See how to get mc2 port: 

...

information is supported.

See Calculate MC2 Endpoints Port Numbers for information about how to calculate the MC2 port number.

Example JMS Logs from of a JMS Log for a MC2-worker:

REST JMS Log
Code Block
languagejs
themeRDark
titleREST JMS Log
{
  "JMS" : {
    "CONFIG" : [ {
      "LEVEL" : "ERROR",
      "MSG" : "Exception occurred while creation of [wmq-my.jndi.wmq.connection] bean instance: com.ibm.mq.jms.MQConnectionFactory"
    }, {
      "LEVEL" : "ERROR",
      "MSG" : "Exception occurred while creation of [wmqssl-wmq.ssl.connection] bean instance: com.ibm.mq.jms.MQConnectionFactory"
    } ],
    "STREAMS" : [ {
      "LEVEL" : "WARN",
      "MSG" : "Could not find definition for connection 'myactivemq2.connection' of 'mc2_jms_out' stream. Check the connection configuration files in tpe/dynamic/mc2/eaglejms/connections"
    }, {
      "LEVEL" : "WARN",
      "MSG" : "Passwords for KeyStore & TrustStore were NOT provided! SSL Connection name: 'eglwwvm22.amq.ssl.connection'"
    } ]
  }
}

Example

...

of a JMS Log for all MC2 workers:

Aggregated REST JMS Logs
Code Block
languagejs
themeRDark
titleAggregated REST JMS Logs
[
	{
		"HOST": "inno-jenever01.eagleinvsys.com",
		"PID": "17262",
		"LOG": {
			"JMS": {
				"CONFIG": [
					{
						"LEVEL": "ERROR",
						"MSG": "Exception occurred while creation of [wmq-my.jndi.wmq.connection] bean instance: com.ibm.mq.jms.MQConnectionFactory"
					},
					{
						"LEVEL": "ERROR",
						"MSG": "Exception occurred while creation of [wmqssl-wmq.ssl.connection] bean instance: com.ibm.mq.jms.MQConnectionFactory"
					}
				],
				"STREAMS": [
					{
						"LEVEL": "WARN",
						"MSG": "Could not find definition for connection 'myactivemq2.connection' of 'mc2_jms_out' stream. Check the connection configuration files in tpe/dynamic/mc2/eaglejms/connections"
					},
					{
						"LEVEL": "WARN",
						"MSG": "Passwords for KeyStore & TrustStore were NOT provided! SSL Connection name: 'eglwwvm22.amq.ssl.connection'"
					}
				],
				"SINGLE_CONSUMER": [
					{
						"LEVEL": "INFO",
						"MSG": "Started Sequential-Reading JMS-Consumer Stream [!vp_test_jms_consumer_2] on this mc2-worker instance at [2019-Jun-06 01:50:59]"
					}
				]
			}
		}
	},
	{
		"HOST": "inno-jenever01.eagleinvsys.com",
		"PID": "17292",
		"LOG": {
			"JMS": {
				"CONFIG": [
					{
						"LEVEL": "ERROR",
						"MSG": "Exception occurred while creation of [wmq-my.jndi.wmq.connection] bean instance: com.ibm.mq.jms.MQConnectionFactory"
					},
					{
						"LEVEL": "ERROR",
						"MSG": "Exception occurred while creation of [wmqssl-wmq.ssl.connection] bean instance: com.ibm.mq.jms.MQConnectionFactory"
					}
				],
				"STREAMS": [
					{
						"LEVEL": "WARN",
						"MSG": "Could not find definition for connection 'myactivemq2.connection' of 'mc2_jms_out' stream. Check the connection configuration files in tpe/dynamic/mc2/eaglejms/connections"
					},
					{
						"LEVEL": "WARN",
						"MSG": "Passwords for KeyStore & TrustStore were NOT provided! SSL Connection name: 'eglwwvm22.amq.ssl.connection'"
					}
				]
			}
		}
	}
]

...