Question & Answer
Question
After I configured Omnibus XML Gateway to send events to Log Analysis (LA), I observed the following error messages in the gateway log file:
2020-11-05T17:09:30: Debug: D-GJA-000-000: [ngjava]: XMLGateway: Time to flush event batch to Unity 'https://scala.ibmtest.com:9987/Unity/DataCollector'.
2020-11-05T17:09:30: Debug: D-GJA-000-000: [ngjava]: XMLGateway: [THREAD=45]: Sending JSON Msg To Data Collector 'https://scala.ibmtest.com:9987/Unity/DataCollector': [{"hostname":"OMNIBUS-DS","logpath":"MYOMNI", ...
2020-11-05T17:09:30: Debug: D-GJA-000-000: [ngjava]: XMLGateway: [THREAD=45]: [POST]: Using REST address: https://scala.ibmtest.com:9987/Unity/DataCollector
2020-11-05T17:09:30: Debug: D-GJA-000-000: [ngjava]: XMLGateway: [THREAD=45]: Response content is Error 404: {"RESPONSE_CODE":404,"BATCH_STATUS":"NONE","RESPONSE_MESSAGE":"CTGLA0401E : Missing data source"}
2020-11-05T17:09:30: Error: E-GJA-000-000: [ngjava]: XMLGateway: [THREAD=45]: Failed to send batch to data collector. HTTP response code != 200. [{ responseCode:404 responseMessage:Not Found responseException:null authenticationRequired:false cookieJar:null responseContent:{"RESPONSE_CODE":404,"BATCH_STATUS":"NONE","RESPONSE_MESSAGE":"CTGLA0401E : Missing data source"}
].
How do I fix it?
Answer
First, check the message that starts with "Sending JSON Msg To Data Collector". You can retrieve details about Log Analysis datasource from there.
For example,
Sending JSON Msg To Data Collector 'https://scala.ibmtest.com:9987/Unity/DataCollector': [{"hostname":"OMNIBUS-DS","logpath":"MYOMNI", ...
Referring to the example, the gateway tried to send events to Log Analysis at:
https://scala.ibmtest.com:9987/Unity/DataCollector
The hostname of the datasource was "OMNIBUS-DS" and the logpath was "MYOMNI".
You need to crosscheck the configured datasource to make sure the details are correct.
To correct the error, you need to make changes to the "scalaTransport.properties" configuration file of the gateway:
[scalaTransport.properties]
jsonMsgHostname=OMNIBUS-DS
jsonMsgPath=MYOMNI
jsonMsgHostname=OMNIBUS-DS
jsonMsgPath=MYOMNI
[{"Line of Business":{"code":"LOB45","label":"Automation"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSPFMY","label":"IBM Operations Analytics - Log Analysis"},"ARM Category":[{"code":"a8m0z000000bpvbAAA","label":"Log Analysis->Third Party Components->XML gateway"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"1.3.5;1.3.6"}]
Was this topic helpful?
Document Information
Modified date:
10 November 2020
UID
ibm16364993