Analytics tab empty in Worklight Console

2019-08-28 16:36发布

I've added an analytics server (Linux, accessible from the http:///iwap/worklight/v1/index.html) to use with my Worklight 6 server, but, the "Analytics" tab is now displaying, but, is empty.

The changed the wl.analytics.url under the war configuration for "Environment entries for web modules" and restarted the app.

The Worklight V6 Information Center (under "Installing and configuring the IBM Websphere Analytics PLatform"|"Configuring Worklight Server for analytics") says to use the format "http://<>iwap/v1/events/_bulk, but, the description column in the "Environment entries for web modules" settings says to use "http:///iwap/v1/events/app_activities". I've tried both, both with same result, empty screen under the Analytics tab.

Not sure where to go at this point, any one set this up successfully?

2条回答
唯我独甜
2楼-- · 2019-08-28 17:29

The IP address you enter is the IP address of the analytics server you installed independently of the Worklight server. Have you done this?

Installing and Configuring the analytics platform

The analytics tab in the Worklight console simply shows an iframe, using a slightly modified URL from the one you entered in the configuration. If you entered

http://<>/iwap/v1/events/_bulk (this the correct URL)

The URL you can visit is

http://<>/iwap/worklight/v1/index.html

You said you can visit it directly. Can you view the network tab or console in Firebug or Chrome developer tools to see if the URL it is attempting to visit from the Worklight console is correct?

查看更多
贪生不怕死
3楼-- · 2019-08-28 17:30

The correct syntax is:

http://${iwap.server.path}/iwap/v1/events/_bulk

If the analytics tab is blank, its possible that your IWAP server is not currently running or is unreachable from your worklight server.

In truth, the analytics tab just acts as an iFrame. You can visit the analytics console using the URL:

http://${iwap.server.path}/iwap/worklight/v1/index.html

If you are unable to visit that link, then the issue is with your IWAP server. Make sure that the server is started using the command "service analytics start" on the IWAP machine.

查看更多
登录 后发表回答