No analytics data in UIs
How to check that your analytics subsystem is receiving API event data from the gateways.
- Use an SSH client to login as the
apicadmuser:ssh apicadm@<analytics VM FQDN> sudoto root:sudo -i
The kubectl commands in these operations specify a
<namespace> argument. On VMware, replace <namespace>
with default
. Alternatively you can omit -n
<namespace> from the commands completely.
- The
mtls-gwis the pod that receives the API events from the gateway. Identify the name of yourmtls-gwpod or pods with:
Expected output:kubectl get pods -n <namespace>NAME READY STATUS RESTARTS AGE ... analyt-mtls-gw-7665f5d445-4cx4n 1/1 Running 0 3d19h - For each
mtls-gwpod, run the following command to see the logs of that pod:kubectl logs <mtls-gw pod name> -n <namespace> - The gateway sends API event data to the
mtls-gwpod as an HTTP POST call to the path/x2020/v1/apievent/_bulk.Every time that themtls-gwpod receives API event data from the gateway, it logs the following message, known as a_bulkmessage:10.254.6.1 - - [22/Sep/2021:18:05:54 +0000] "POST /x2020/v1/apievent/_bulk HTTP/1.1" 200 2 "-""-" 2841 0.072 0.070Check the
mtls-gwpod logs for recent_bulkmessages.If you find no
_bulkmessages in themtls-gwlogs, then the analytics subsystem is not receiving API event data from the gateway. Check the network connection between your gateway and analytics subsystems, and review Analytics endpoints in the gateway documentation.The HTTP return code is shown in the
mtls-gwlog messages. In the example, this code is 200, which means the API event data was received successfully by the analytics subsystem. Whatever the return code is, if yourmtls-gwpod logs contain recent_bulk
messages and you do not see any analytics data for this time period in the UI, then gather postmortem logs and open an IBM support case.